fix: support MCP json schema tools #4553
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 263 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4553"
general
weight: 0.35
liugddx
Summary
Fixes #4334
Maka Desktop now accepts MCP proxy tools that expose
ai.jsonSchema()wrappers instead of requiring every tool schema to be a Zod instance.This change covers both parts of the failure:
The MCP server remains the sole authority for validating the complete JSON Schema, including its dialect and composition keywords. Runtime Host owns the protocol projection and keeps malformed dynamic MCP tools isolated from healthy capabilities.
Verification
Ran locally:
npm --workspace @maka/mcp run buildnpm --workspace @maka/computer-use run buildnpm --workspace @maka/desktop run build:mainnode --test packages/runtime/dist/__tests__/mcp-tools.test.js apps/desktop/dist/main/__tests__/runtime-host-native-capabilities.test.js apps/desktop/dist/main/__tests__/runtime-host-desktop-candidate.test.js apps/desktop/dist/main/__tests__/mcp-runtime-e2e.test.js(64 passed, 0 failed)npx biome checkon the changed filesgit diff --checkThe isolated local worktree could not complete the full Runtime/Runtime Host build because its existing dependency graph is incomplete. GitHub CI for
105a79fc79fe11b2971e90fb89260b82c80b5be0has already passed Build and Typecheck; the remaining CI stages are still running.AI use
Tool(s) and scope:
Checklist
Does this PR entail a change in behavior?