The MCP tool schemas mark arguments as required, but dispatch silently replaces missing or wrongly typed values with "" or 0 (src/mcp/mod.rs:94-127). This makes malformed requests look successful: a missing search_symbols.query returns [], while a missing index_create.path becomes Path::new("") and can index the server's current working directory. Invalid JSON messages are also discarded without a JSON-RPC error (src/mcp/mod.rs:23-25).
Please validate tool names and argument types at the protocol boundary and return an explicit MCP error for invalid params. Required paths, queries, IDs, and ranges should never silently become empty values or current-directory operations.
The MCP tool schemas mark arguments as required, but `dispatch` silently replaces missing or wrongly typed values with `""` or `0` (`src/mcp/mod.rs:94-127`). This makes malformed requests look successful: a missing `search_symbols.query` returns `[]`, while a missing `index_create.path` becomes `Path::new("")` and can index the server's current working directory. Invalid JSON messages are also discarded without a JSON-RPC error (`src/mcp/mod.rs:23-25`).
Please validate tool names and argument types at the protocol boundary and return an explicit MCP error for invalid params. Required paths, queries, IDs, and ranges should never silently become empty values or current-directory operations.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The MCP tool schemas mark arguments as required, but
dispatchsilently replaces missing or wrongly typed values with""or0(src/mcp/mod.rs:94-127). This makes malformed requests look successful: a missingsearch_symbols.queryreturns[], while a missingindex_create.pathbecomesPath::new("")and can index the server's current working directory. Invalid JSON messages are also discarded without a JSON-RPC error (src/mcp/mod.rs:23-25).Please validate tool names and argument types at the protocol boundary and return an explicit MCP error for invalid params. Required paths, queries, IDs, and ranges should never silently become empty values or current-directory operations.
Fixed in commit
4338e28.