Refactor MCP server table management in Agent class#664
Conversation
Moved creation and deletion of the cf_agents_mcp_servers table from AgentMCPClientStorage to the Agent class. Removed redundant create and destroy methods from AgentMCPClientStorage and updated MCPClientManager to reflect these changes. Added comments to clarify usage in demo and test code.
🦋 Changeset detectedLatest commit: 375f212 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Claude Code ReviewSummary: This refactoring improves the architecture by centralizing table lifecycle management in the Issues Found: None. PR looks good. Analysis: The refactoring moves MCP table creation/deletion from
Testing coverage: Excellent - the test suite in packages/agents/src/tests/mcp/client-manager.test.ts comprehensively covers MCP storage operations without needing the removed methods, confirming they were redundant. |
commit: |
Moved creation and deletion of the cf_agents_mcp_servers table from AgentMCPClientStorage to the Agent class. Removed redundant create and destroy methods from AgentMCPClientStorage and updated MCPClientManager to reflect these changes. Added comments to clarify usage in demo and test code.
Moved creation and deletion of the cf_agents_mcp_servers table from AgentMCPClientStorage to the Agent class. Removed redundant create and destroy methods from AgentMCPClientStorage and updated MCPClientManager to reflect these changes. Added comments to clarify usage in demo and test code.