Repository navigation
fix(agent-core/mcp): sanitize MCP JSON Schemas for Moonshot MFJS validator #830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
creatiVision
wants to merge
24
commits into
MoonshotAI:main
Choose a base branch
from
creatiVision:fix/mcp-schema-limits
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b759414
fix(mcp): sanitize MCP JSON schemas for Moonshot MFJS validator and m…
c285628
Merge branch 'main' into fix/mcp-schema-limits
creatiVision 57754ea
Merge branch 'main' into fix/mcp-schema-limits
creatiVision c561f26
Merge branch 'main' into fix/mcp-schema-limits
creatiVision 8b01448
fix(agent-core-v2): normalize coexisting union types and preserve boo…
creatiVision ae291f4
Merge branch 'main' into fix/mcp-schema-limits
creatiVision 2006db8
Merge branch 'main' into fix/mcp-schema-limits
creatiVision e79be78
Merge branch 'main' into fix/mcp-schema-limits
creatiVision 31066ad
Merge branch 'main' into fix/mcp-schema-limits
creatiVision 7ac49de
Merge remote-tracking branch 'origin/main' into fix/mcp-schema-limits
creatiVision 7228e16
revert: remove accidental edits to compactionHandoff and runner.test
creatiVision 3374898
Merge branch 'main' into fix/mcp-schema-limits
creatiVision a24e2b6
fix(agent-core-v2): sanitize boolean items, prefixItems, and non-obje…
creatiVision 177cd93
Merge branch 'main' into fix/mcp-schema-limits
creatiVision ea6d861
fix(agent-core/mcp): address review on items, combinators, ref siblin…
creatiVision 552724e
fix(agent-core/mcp): clamp maxItems, preserve boolean combinators, re…
creatiVision 3c2bfa4
fix(agent-core/mcp): conjoin ref sibling bounds and retain prefixItem…
creatiVision 9bca8dc
fix(agent-core/mcp): address review on ref activity, enum equality, d…
creatiVision d1b440d
Merge branch 'main' into fix/mcp-schema-limits
creatiVision c61021c
Merge branch 'main' into fix/mcp-schema-limits
creatiVision 8a522bc
Merge remote-tracking branch 'origin/main' into fix/mcp-schema-limits
creatiVision dada019
fix(agent-core/mcp): conjoin closed ref siblings, retain recursive co…
creatiVision 5a4d9f3
fix(agent-core/mcp): preserve empty contradictory enums, replace nest…
creatiVision ffbebea
Merge origin/main into fix/mcp-schema-limits
creatiVision File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| "@moonshot-ai/agent-core-v2": patch | ||
| "@moonshot-ai/kimi-code": patch | ||
| --- | ||
|
|
||
| Sanitize circular and non-standard MCP JSON schemas and map disabled field to enabled in MCP config. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When compaction retains a suffix beginning at a non-BMP character, the reverse scan first lands on its low surrogate, but
codePointAt(i - 1)returns the combined code point rather than the high-surrogate code unit. The pair is therefore counted twice and, with a one-token budget, an input such as😀is returned as the lone surrogate\ude00, silently corrupting the folded context; use code-unit access for this pair check or iterate code points backward.AGENTS.md reference: AGENTS.md:L133-L133
Useful? React with 👍 / 👎.