fix(core): unwrap double-wrapped object parameters from MCP SDK#15
Conversation
SonarQube Remediation AgentSonarQube found 2 issues in this PR that the agent can fix for you. Est. time saved: ~15 min 2 issues found
|
b69064c to
49ef238
Compare
49ef238 to
f5a258a
Compare
fix the failing test cases GH-14
SonarQube reviewer guideSummary: Comprehensive documentation update for the loopback4-mcp extension, adding detailed integration guides, practical examples, troubleshooting, and test improvements for parameter handling. Review Focus: The README expansion is substantial (~500 new lines) covering integration steps, hook configuration, controller examples with auth/authz, MCP endpoint usage, and parameter decorator guidelines. Ensure the documented patterns (particularly the multi-decorator stacking with Start review at:
|
|
🎉 This PR is included in version 1.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |



Description
Support was previously limited to @get methods, and has now been extended to other HTTP methods in mcp-inspector.
While testing, an issue was identified with how the MCP SDK passes object parameters to tools. The SDK automatically introduces an extra layer of nesting, leading to double-wrapped inputs.
Screen.Recording.2026-04-20.at.7.21.55.PM.mov
Type of change
Please delete options that are not relevant.
Checklist: