You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement JSON-RPC message parsing for accurate MCP event type detection #552
Currently, the audit middleware cannot accurately determine MCP event types because it doesn't parse the JSON-RPC message body to extract the method field. The extractMCPMethod function in pkg/audit/auditor.go is a stub that always returns an empty string.
Current Behavior
All MCP requests to /messages endpoint are classified as generic mcp_request events
Specific MCP operations (tools/call, resources/read, etc.) cannot be distinguished
Event filtering based on specific MCP methods is not possible
Expected Behavior
The audit middleware should:
Parse JSON-RPC messages from the request body
Extract the method field (e.g., "tools/call", "resources/read")
Map methods to specific event types (e.g., mcp_tool_call, mcp_resource_read)
Handle edge cases like batch requests and malformed JSON
Activity
docs: add TODO for JSON-RPC parsing implementation
docs: add TODO for JSON-RPC parsing implementation
docs: add TODO for JSON-RPC parsing implementation
docs: add TODO for JSON-RPC parsing implementation