Merge pull request #370 from koic/fix_exception_reporter_server_context

[Doc] Fix `server_context` description for Exception Reporting
This commit is contained in:
Koichi ITO 2026-06-14 00:16:14 +09:00 • committed by GitHub
commit 6929d52472
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -453,10 +453,10 @@ The exception reporter receives two arguments:
- `exception`: The Ruby exception object that was raised
- `server_context`: A hash containing contextual information about where the error occurred
The server_context hash includes:
The `server_context` hash includes:
- For tool calls: `{ tool_name: "name", arguments: { ... } }`
- For general request handling: `{ request: { ... } }`
- For request handling failures: `{ request: { ... } }` (the raw JSON-RPC request hash)
- For notification delivery failures: `{ notification: "tools_list_changed" }` (or the relevant notification name)
When an exception occurs: