Repository navigation
feat(mcp): support tool output schema - #466
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 (10)
📝 WalkthroughWalkthroughMCP tools now support optional output schemas. Metadata, response types, server registration, structured output, and validation tests were updated across controller and service-worker implementations. ChangesMCP output schema support
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant MCPClient
participant MCPServerHelper
participant RegisteredMCPTool
participant OutputSchema
MCPClient->>MCPServerHelper: call MCP tool
MCPServerHelper->>RegisteredMCPTool: execute handler
RegisteredMCPTool->>OutputSchema: validate structuredContent
OutputSchema-->>RegisteredMCPTool: valid output or validation error
RegisteredMCPTool-->>MCPClient: return content and structuredContent or error
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
core/controller-decorator/src/model/MCPToolMeta.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. core/controller-decorator/test/MCPMeta.test.tsESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox. core/controller-decorator/test/fixtures/MCPController.tsESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox.
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 |
Checklist
npm testpassesAffected core subsystem(s)
Description of change
Summary by CodeRabbit
New Features
Documentation