java-sdk/mcp-core
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sergio del Amo d327fff6f7
fix: handle resource not found according to spec (#567)
see: https://modelcontextprotocol.io/specification/2025-06-18/server/resources#error-handling

Resource not found should send a JSON RPC response such as:

```json
{
  "jsonrpc": "2.0",
  "id": 5,
  "error": {
    "code": -32002,
    "message": "Resource not found",
    "data": {
      "uri": "file:///nonexistent.txt"
    }
  }
}
```

This PR also changes some instances where a `McpError` was thrown instead of being passed in the reactive chain with `Mono.error`

functional style
2025-09-22 16:43:44 +02:00
..
src fix: handle resource not found according to spec (#567) 2025-09-22 16:43:44 +02:00
pom.xml Next development version 2025-09-18 19:28:56 +02:00