Documentation
¶
Overview ¶
api-mcp serves any API as an MCP server: point it at the specification and the tools exist.
It reads OpenAPI 3.x, Swagger 2.0 and GraphQL — as JSON, YAML or SDL, from a file, a URL or stdin — and publishes one tool per operation. It was born out of needing to reach APIs with no MCP server at all, and out of refusing to hand credentials to a third party's server to get there.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
auth
Package auth decides how a request identifies itself to the API.
|
Package auth decides how a request identifies itself to the API. |
|
core
Package core defines what every dialect produces and what the server consumes.
|
Package core defines what every dialect produces and what the server consumes. |
|
dialect/graphql
Package graphql translates a GraphQL schema into callable operations.
|
Package graphql translates a GraphQL schema into callable operations. |
|
dialect/openapi
Package openapi translates OpenAPI 3.x and Swagger 2.0 into callable operations.
|
Package openapi translates OpenAPI 3.x and Swagger 2.0 into callable operations. |
|
mcpserver
Package mcpserver publishes operations as MCP tools.
|
Package mcpserver publishes operations as MCP tools. |
|
spec
Package spec brings a specification into the process and decides what it is.
|
Package spec brings a specification into the process and decides what it is. |
Click to show internal directories.
Click to hide internal directories.