feat(mcp): add MCP-027, MCP-028, MCP-029 TypeScript and PHP parity rules - #100
Open
Paramjeet-singh-neu wants to merge 1 commit into
Open
feat(mcp): add MCP-027, MCP-028, MCP-029 TypeScript and PHP parity rules#100Paramjeet-singh-neu wants to merge 1 commit into
Paramjeet-singh-neu wants to merge 1 commit into
Conversation
Close the remaining MCP language gaps: TypeScript mutating tools without an idempotency key, TypeScript ambiguous names, and PHP mutating tools without an idempotency key. Co-authored-by: Cursor <cursoragent@cursor.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
name_has_prefixwithout a trailing_+ negatedparam_name_matchesoninputSchema), matching CSDK-016 / LC-016 / MCP-007.name_inonregisterTool/tool), matching MCP-003 / MCP-016 / MCP-018 / MCP-020 / MCP-022. TypeScript was the only MCP language surface with a description rule (MCP-011) but no ambiguous-name rule.name_has_prefixwith_+ negatedparam_name_matcheson the#[McpTool]signature), matching MCP-007.IDs MCP-023..026 were already claimed in open PRs (#80 PHP untyped, #82 stdout, #85 TS timeout, #88 description quality), so this pack starts at 027. Original Track A items that are already filed (TS HTTP timeout, PHP untyped params) are not re-filed here.
No new predicates and no
schema_versionbump — both matches are already used by other packs. Discovery already captures TSParamNamesfrom ZodinputSchemaand PHPParamNamesfrom method signatures.Paired PRs (same branch name
feat/mcp-ts-php-parity):Test plan
trustabl rules validate .on this packgo test ./internal/rules/ -run TestPolicyRules(fire + silent cases for all three IDs)Made with Cursor