fix(mcp): reject unknown MCP tool inputs (#975)

* fix(mcp): reject unknown official tool inputs

* fix(mcp): reject unknown native tool inputs

* test(mcp): follow native contract module move

* fix(mcp): reject unknown remaining tool inputs

* fix(mcp): satisfy strict unknown and browser input schemas

Remove obsolete approval fields from residual-unknown fixtures, project update inputs explicitly, and stop passing target_id to list-targets parsing.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
morluto
2026-10-08 01:10:53 +08:00
committed by GitHub
co-authored by Cursor Agent
parent ae0f725fad
commit fe64fd65d9
18 changed files with 267 additions and 25 deletions
-2
View File
@@ -21,7 +21,6 @@ const makeUnknown = (
dependency?: string,
) => {
const input = recordUnknownInputSchema.parse({
approved: true,
question,
severity: "medium",
domain: "bundle-projection",
@@ -95,7 +94,6 @@ describe("evidenceBundleForTarget", () => {
const unknowns = [foreignRoot.unknown, middle.unknown];
for (let index = 0; index < 125_000; index += 1) {
const input = recordUnknownInputSchema.parse({
approved: true,
question: `Target child ${index}`,
severity: "medium",
domain: "bundle-projection",