BA

brizzai/auto-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

194 stars 23 forks 质量 73 趋势 0Apache-2.0

brizzai/auto-mcp 是从 https://github.com/brizzai/auto-mcp. 导入的 MCP 服务器候选。

概览

brizzai/auto-mcp 是从 https://github.com/brizzai/auto-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

访问汽车MCP主页

将任何 OpenAPI/Swagger 定义转换为功能齐全的 **模型上下文协议(MCP)**服务器——可本地、Claude Desktop 内部或云端运行。

该服务读取 Swagger(OpenAPI v2)或 OpenAPI v3 文档,实时生成路由,向你配置的上游端点代理请求,并通过 MCP 通过 MCP 使用 MCP 定义的 STDIO、HTTP 或 SSE 传输方式进行暴露。


✨ 为什么是自动MCP?

  • 零锅炉板 – 带上你的swagger.json开始上菜。
  • 灵活部署——可作为CLI、长寿命守护进程,或在Docker/Kubernetes中运行。
  • 所有交通方式 –
  • stdio(默认)。
  • http - StreamableHttp,最新的MCPprototcol。
  • sse – 自托管的长期活动源。
  • 可插拔认证 – 承载令牌、基本认证、API密钥、OAuth2或无认证。
  • 运行时配置 – YAML 文件、CLI 标志或环境变量(前缀 AUTO_MCP_)。

🛠️ 使用 Auto MCP

轻松定制你的 Swagger/OpenAPI 文件,实现最佳的 MCP 集成。MCP 配置构建器让你:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Auto MCP

Visit the Auto MCP Homepage

Transform any OpenAPI/Swagger definition into a fully-featured Model Context Protocol (MCP) server – ready to run locally, inside Claude Desktop, or in the cloud.

The service reads a Swagger (OpenAPI v2) or OpenAPI v3 document, generates routes on-the-fly, proxies requests to the upstream endpoint you configure, and exposes them through MCP using either the STDIO or HTTP or SSE transport defined in the MCP specification.


✨ Why Auto MCP?

  • Zero boiler-plate – bring your swagger.json and start serving.
  • Flexible deployment – run as a CLI, long-lived daemon, or within Docker/Kubernetes.
  • All transport modes –
    • stdio (default).
    • http - StreamableHttp, newest MCP prototcol.
    • sse – self-hosted long-running event source.
  • Pluggable auth – bearer token, basic auth, API keys, OAuth2 or no auth.
  • Runtime configuration – YAML file, CLI flags, or environment variables (prefixed AUTO_MCP_).

🛠️ Using Auto MCP

Easily tailor your Swagger/OpenAPI file for optimal MCP integration. The MCP Config Builder lets you:

  • Edit endpoint descriptions for clearer, more helpful documentation.
  • Filter out unnecessary routes to streamline your API exposure.
  • Preview and customize how endpoints appear to LLMs and clients.
  • Generate an adjustment file (--adjustment-file) for use with Auto MCP, applying your customizations automatically.

How it works

  1. Install the MCP Config Builder:
    go install ./cmd/mcp-config-builder
    
    This will build and install the mcp-config-builder binary to your $GOPATH/bin (usually ~/go/bin). Make sure this directory is in your PATH.
  2. Launch the tool:
    mcp-config-builder --swagger-file=/path/to/swagger.json
    
  3. Interactively review and edit endpoints in a user-friendly TUI (Terminal User Interface).
  4. Save your adjustments to a file for future use or sharing.
在 GitHub 查看完整 README

安装

docker run -i --rm -v /Users/you/path/to/swagger.json:/server/swagger.json ghcr.io/brizzai/auto-mcp:latest" "--swagger-file=/server/swagger.json
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "YourMCP": { "command": "docker", "args": [ "run", "-i", "--rm", "-v", "/Users/you/path/to/swagger.json:/server/swagger.json", "ghcr.io/brizzai/auto-mcp:latest" "--swagger-file=/server/swagger.json" ] } }, "globalShortcut": "" }