Skip to content

Commit 1c4659e

Browse files
authored
docs: update crates/rmcp/src/handler/server.rs
1 parent b4a8ba5 commit 1c4659e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

crates/rmcp/src/handler/server.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,9 @@ macro_rules! server_handler_methods {
276276
///
277277
/// - `Err(`[`McpError`]`)` — a JSON-RPC protocol error. Use this
278278
/// only when the request itself is unroutable: unknown tool
279-
/// ([`ErrorCode::METHOD_NOT_FOUND`]), unparsable or
280-
/// schema-invalid parameters ([`ErrorCode::INVALID_PARAMS`],
281-
/// `-32602`), or a server-internal failure that means the server
282-
/// cannot serve any request right now
279+
/// ([`ErrorCode::METHOD_NOT_FOUND`]), malformed request shape that
280+
/// cannot be treated as a valid `tools/call`, or a server-internal
281+
/// failure that means the server cannot serve any request right now
283282
/// ([`ErrorCode::INTERNAL_ERROR`], `-32603`). MCP clients
284283
/// typically render protocol errors opaquely; **the caller will
285284
/// not see your message** — they see something like "Tool result

0 commit comments

Comments
 (0)