Implements HTTP transport for MCP communication using plumber. This transport allows MCP servers to be accessed over HTTP, enabling multi-client support and easier deployment.
Public fields
server
The MCP server instance
plumber_app
The plumber application instance
host
Host address to bind to
port
Port number to listen on
log_file
Optional log file path
log_level
Logging level ("debug", "info", "warn", "error")
Methods
Method new()
Create a new HTTP transport
Usage
HttpTransport$new(
server,
host = "127.0.0.1",
port = 8080,
log_file = NULL,
log_level = "info"
)
Method start()
Start the HTTP transport
Method get_app()
Get the plumber app (for testing or custom deployment)
Returns
The plumber API object Initialize logging Logger instance Create the plumber application Handle incoming JSON-RPC message Handle initialize request Handle tools/list request Handle tools/call request Handle resources/list request Handle resources/read request Handle prompts/list request Handle prompts/get request Create error response