Skip to content

fix: guard-scan MCP inputSchema strings and cap sizes (M-4)#61

Merged
jkyberneees merged 1 commit into
mainfrom
fix/m4-mcp-schema-guard
Jul 18, 2026
Merged

fix: guard-scan MCP inputSchema strings and cap sizes (M-4)#61
jkyberneees merged 1 commit into
mainfrom
fix/m4-mcp-schema-guard

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Closes the MCP inputSchema tool-poisoning channel (M-4).

Changes:

  • cmd/odek/mcp_approval.go: recursively guard-scans every string in an MCP tool's inputSchema; rejects schemas larger than 256 KiB; shows a SHA-256 hash + byte size in the approval prompt.
  • cmd/odek/main.go: passes the guard instance and config to approveMCPTools.
  • Added regression tests for schema hash display, tainted-schema skipping, and oversized-schema skipping.
  • Updated docs/SECURITY.md and AGENTS.md.

@jkyberneees
jkyberneees merged commit cb79f5a into main Jul 18, 2026
1 check was pending
@jkyberneees
jkyberneees deleted the fix/m4-mcp-schema-guard branch July 18, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant