Class McpException

Assembly: redb.Route.Llm.Mcp.dll

Thrown when an MCP server returns a JSON-RPC error, the transport fails,
or the protocol is violated. Catch at the MCP boundary; do not surface raw
JSON-RPC errors to the agent.

public class McpException : Exception, ISerializable

Inheritance

Object→Exception→McpException

Implements

Constructors

McpException(string, Exception)

Creates a new with a message and inner exception.

McpException(string)

Creates a new with a message.