fix(kosong): repair mismatched schema types from Xcode 26.5 MCP#343
fix(kosong): repair mismatched schema types from Xcode 26.5 MCP#343youngxhui wants to merge 8 commits into
Conversation
Xcode 26.5 (17F42) mcpbridge generates contradictory JSON Schemas where String-backed Swift enums carry type: 'object' alongside string enum values. Moonshot rejects these as invalid. Detect and repair the mismatch in normalizeKimiToolSchema, stripping irrelevant structure keys after the fix. Closes MoonshotAI#302
🦋 Changeset detectedLatest commit: 7c65c75 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d213ebb203
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b624390a69
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Related Issue
Resolve #302
Problem
Xcode 26.5 (17F42)
xcrun mcpbridgegenerates contradictory JSON Schemas where String-backed Swift enums incorrectly carrytype: "object"alongside stringenumvalues (e.g.["move", "copy"]). Moonshot's tool validator rejects these as invalid, returning a 400 error that blocks all conversation after connecting the Xcode MCP server.What changed
normalizeKimiToolSchemato detect and repair explicittypedeclarations that contradict theirenumorconstvalues.properties,required,items, etc.) that are irrelevant for the new scalar type.console.warndiagnostic so future mismatches are visible in logs.Checklist