Files
coder/coderd/mcp
Hugo Dutka fcaa14f456 fix: validate mcp input (#28702)
Addresses
[CODAGT-994](https://linear.app/codercom/issue/CODAGT-994/return-validation-errors-for-invalid-mcp-tool-arguments).

The MCP server currently does not validate tool call arguments against
the MCP JSON schema.

Additionally, when a client passes invalid arguments to a Coder MCP
server tool call, currently the server returns only:

```json
{
  "error": "MCP tool request failed."
}
```

In this PR we start validating arguments and returning an informative
validation error instead:

```json
{
  "error": "invalid arguments: ...",
  "expectedSchema": { ... }
}
```
2026-09-07 19:15:38 +02:00
..
2026-09-07 19:15:38 +02:00
2026-09-07 19:15:38 +02:00