ExMCP.Client.RequestHandler (ex_mcp v0.9.2)
View SourceRequest/response processing for ExMCP client.
This module handles all request processing, batch operations, message parsing, and response handling for MCP clients.
Summary
Functions
Handles batch MCP requests.
Handles a batch of responses from the transport.
Handles a notification to be sent to the server.
Handles individual MCP requests.
Handles server-to-client requests by routing them to the appropriate handler callback.
Handles a single response from the transport.
Parses a message from the transport.
Encodes and sends a message via the transport.
Functions
Handles batch MCP requests.
Processes multiple MCP requests in a single batch operation.
Handles a batch of responses from the transport.
Handles a notification to be sent to the server.
Handles individual MCP requests.
Processes a single MCP request and returns the appropriate GenServer response.
Handles server-to-client requests by routing them to the appropriate handler callback.
Handles a single response from the transport.
Parses a message from the transport.
This function is intended to be called from the client's handle_info/2 callback.
It decodes the message and delegates to the appropriate response handler.
Encodes and sends a message via the transport.