A standalone HTTP endpoint that serves an MCP server with Bandit.
This is both a Plug (routing the configured path to
Urchin.Transport.StreamableHTTP) and a supervisable process.
children = [{Urchin.Endpoint, server: MyServer, port: 4000, path: "/mcp"}]or, for a quick start, Urchin.start_link/2.
Options
:server(required) - theUrchin.Servermodule:port- listen port (default4000):ip- listen address (default{127, 0, 0, 1}; bind localhost only):path- the MCP endpoint path (default"/mcp"):scheme-:httpor:https(default:http)
Remaining options are forwarded to Urchin.Transport.StreamableHTTP. Requires the
optional :bandit dependency.
Summary
Functions
Starts the endpoint linked to the calling process.