Skip to content

Commit 6929d52

Browse files
authored
Merge pull request #370 from koic/fix_exception_reporter_server_context
[Doc] Fix `server_context` description for Exception Reporting
2 parents 3d7046a + 8c91130 commit 6929d52

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,10 @@ The exception reporter receives two arguments:
453453
- `exception`: The Ruby exception object that was raised
454454
- `server_context`: A hash containing contextual information about where the error occurred
455455

456-
The server_context hash includes:
456+
The `server_context` hash includes:
457457

458-
- For tool calls: `{ tool_name: "name", arguments: { ... } }`
459-
- For general request handling: `{ request: { ... } }`
458+
- For request handling failures: `{ request: { ... } }` (the raw JSON-RPC request hash)
459+
- For notification delivery failures: `{ notification: "tools_list_changed" }` (or the relevant notification name)
460460

461461
When an exception occurs:
462462

0 commit comments

Comments
 (0)