~/bend-docscommunity

src/openapi.bend fails

raw source on the hub · import ezmcp@0.1.0.0/src/openapi.bend as Openapi

ezmcp/src/openapi: an OpenAPI 3.0 or 3.1 document as an MCP tool table, and a tool call as the HTTP request it stands for, with no IO. Every operation of the document's paths is one tool: its name is the operation's id, its arguments are the operation's parameters by name and its request body as requestBody. A call's arguments are checked against the tool's input schema, then filled into the path template, the query string and the header fields. The caller reads the document and sends the request. Where the specifications leave a choice open, the choice is openapi-mcp-generator's (v4), so a server it generated keeps its tools. SPEC.md MCP-OAS lists what is guaranteed.

7 imports
import Base
import 0xa81e161008ecc2f297c0a3065cb9b188/main.bend as Json
import 0xa81e161008ecc2f297c0a3065cb9b188/src/value.bend as Value
import 0xedb2120a04a47dc18c3a756ec7c62750/src/http.bend as Http
import 0xedb2120a04a47dc18c3a756ec7c62750/src/pct.bend as Pct
import 0xedb2120a04a47dc18c3a756ec7c62750/src/qs.bend as Qs
import ./server.bend as Server