McpServer.HttpPlug (MCP SSE v0.1.0)

View Source

This module implements the streamable HTTP standard for MCP servers.

Example Usage

{Bandit, plug: {McpServer.HttpPlug, router: MyRouter, server_info: %{name: "MyServer", version: "1.0.0"}}, port: port}

Summary

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

handle_body(conn, body)

handle_request(conn, request)

init(opts)

Callback implementation for Plug.init/1.