NexusMCP.Transport (NexusMCP v0.3.0)

Copy Markdown View Source

Plug-based HTTP transport for the MCP Streamable HTTP spec (2025-11-25).

Routes HTTP methods:

  • POST — JSON-RPC requests/notifications (tools, prompts, resources)
  • GET — SSE stream for server-to-client push
  • DELETE — Session termination

Usage in Router

forward "/mcp", NexusMCP.Transport, server: MyApp.MCP

Options

  • :server — The module implementing NexusMCP.Server (required)
  • :allowed_origins — List of allowed Origin header values (optional, defaults to all)