v0.4.0 · Interface

server-handler

Server-side MCP request/response handler interface This interface defines the contract for processing MCP protocol messages on the server side. Components implementing this interface receive client requests, process them, and return server responses. They also handle bidirectional communication through responses and notifications. Handler components form a linear pipeline where each handler can: - Process requests it understands and return a response - Delegate unknown requests downstream by importing server-handler - Observe responses and notifications flowing back upstream