-
Notifications
You must be signed in to change notification settings - Fork 15
Implement MCP validator: MCP-001 to MCP-006 #39
Copy link
Copy link
Closed
Labels
complexity:mediumSome edge cases to handleSome edge cases to handlephase:3Phase 3: Core ValidatorsPhase 3: Core Validatorspriority:p0Critical - MVP blockerCritical - MVP blockersize:m1-2 hours1-2 hours
Description
Summary
Implement MCP (Model Context Protocol) validation rules. Rule IDs are defined in SARIF output but no validator exists.
Rules to Implement
- MCP-001: Invalid JSON-RPC version (must be 2.0)
- MCP-002: Missing required tool field
- MCP-003: Invalid JSON Schema in inputSchema
- MCP-004: Missing tool description
- MCP-005: Tool without user consent
- MCP-006: Untrusted annotations from server
Deliverables
- Create
crates/agnix-core/src/rules/mcp.rs - Add MCP file detection in lib.rs
- Add test fixtures in
tests/fixtures/mcp/ - Tests for each rule
References
- knowledge-base/VALIDATION-RULES.md
- https://modelcontextprotocol.io
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
complexity:mediumSome edge cases to handleSome edge cases to handlephase:3Phase 3: Core ValidatorsPhase 3: Core Validatorspriority:p0Critical - MVP blockerCritical - MVP blockersize:m1-2 hours1-2 hours