fix(mcp): support large tool catalogs - #2086
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThe MCP implementation now validates large tool catalogs with independent item limits, applies strict or legacy schema policies by connection type, preserves external legacy schemas, and omits legacy output schemas from tool calls. Specifications and regression tests document and verify the behavior. ChangesMCP catalog compatibility
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant MCPServer
participant MCPClient
participant schemaValidation
participant ToolManager
MCPServer->>MCPClient: Return tools/list response
MCPClient->>schemaValidation: Validate bounded response and tool schemas
schemaValidation-->>MCPClient: Return cloned tools
MCPClient->>ToolManager: Register discovered tools
MCPClient->>MCPServer: Call tool without outputSchema for external legacy connections
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Testing
Closes #2085
Summary by CodeRabbit
Bug Fixes
Documentation