-
Notifications
You must be signed in to change notification settings - Fork 293
MCP client refactor - storage adapter #652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Claude Code ReviewIssues Found:
Testing:
Architecture: |
commit: |
This PR introduces a storage adapter architecture for the MCP client manager, allowing custom storage backends for MCP server configurations. Changes: - Created advanced-client-api.mdx documenting the MCPStorageAdapter interface - Added security section to oauth-mcp-client.mdx about callback URL clearing - Updated mcp-client-api.mdx to link to advanced configuration guide These docs explain the new storage adapter pattern, OAuth security improvements, and provide examples for implementing custom storage backends. Related: cloudflare/agents#652
Documents the MCP client manager refactoring that introduces a storage adapter interface and implements automatic OAuth credential cleanup for enhanced security. Changes: - Add new mcp-storage.mdx explaining storage adapter architecture - Document automatic OAuth credential cleanup after authentication - Add security notes about replay attack prevention - Document automatic connection restoration after hibernation - Update OAuth guide with security information Related PR: cloudflare/agents#652 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
📚 Documentation SyncI've created a documentation PR to sync these changes to cloudflare-docs: Docs PR: cloudflare/cloudflare-docs#26535 Documentation ChangesThis PR introduces a storage adapter architecture for the MCP client manager. The documentation includes:
Why These Docs MatterThis refactoring introduces a breaking change in how The OAuth security improvements are also worth documenting for user awareness. This is an automated sync from the intelligent documentation workflow. |
📚 Documentation syncDocumentation has been updated in cloudflare-docs to reflect these changes: Docs PR: cloudflare/cloudflare-docs#26535 Changes documented
The documentation covers:
🤖 Auto-generated comment |
- Add new storage-adapter.mdx page documenting the MCPStorageAdapter interface - Update mcp-client-api.mdx to reference storage adapter pattern - Document breaking change: MCPClientManager now requires storage option - Include migration guide for direct MCPClientManager usage - Document security improvements in OAuth credential handling Related to cloudflare/agents#652
Documentation UpdatedThe documentation for this PR has been updated in cloudflare-docs#26535. Documentation changes:
Please review the documentation PR when you have a chance. |
📚 Documentation sync completedThe documentation for this PR has been updated in the cloudflare-docs repository. Documentation PR: cloudflare/cloudflare-docs#26535 Updated documentation:
Key changes documented:
The documentation is ready for review alongside this PR. |
part one in a long saga. This moves all the mcp storage control to the client manager with an interface to try and make it less platform specific.
also cleans up the
_connectMcpServersInternalandmcp.connectinto..tested with: https://search-mcp.parallel.ai/mcp on https://workers-ai-playground.mattzcarey.workers.dev/