A request handler serving MCP over streamable HTTP, statelessly: each
request gets its own server and transport. Mount it on POST (and GET/DELETE,
which it answers with 405) at a path such as /mcp, after a JSON body parser.
Pass a function to serve whatever it returns for each request (given the request, e.g. to serve per-caller tools).
A request handler serving MCP over streamable HTTP, statelessly: each request gets its own server and transport. Mount it on POST (and GET/DELETE, which it answers with 405) at a path such as
/mcp, after a JSON body parser. Pass a function to serve whatever it returns for each request (given the request, e.g. to serve per-caller tools).