MM

matthewhand/mcp-openapi-proxy

API development

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

157 stars 40 forks 品質 85 トレンド 14MIT

matthewhand/mcp-openapi-proxyは、https://github.com/matthewhand/mcp-openapi-proxy.からインポートされたMCPサーバー候補です。

概要

matthewhand/mcp-openapi-proxyは、https://github.com/matthewhand/mcp-openapi-proxy.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

mcp-openapi-proxyは、モデルコンテキストプロトコル(MCP)サーバーを実装したPythonパッケージであり、OpenAPI仕様で定義されたREST APIをMCPツールとして動的に公開することを目的としています。これにより、OpenAPIで記述されたAPIをMCPベースのワークフローにシームレスに統合することが可能となります。

v0.4.0 — 2026年9月6日タグ付け;GitHubリリース:2026年10月15日公開(AEDT): MCP SDK 2.x / プロトコル2026-07-28、ネイティブステートレスStreamable HTTPおよびレガシー標準サポート。

0.4.0の新ニュース

MCP 2026-07-28(SDK 2.x)。 プロキシはデュアルスタックで、現代のクライアントは送信します 自己完結型リクエスト(initializeなし、Mcp-Session-Idなし)および結果リスト キャリー ttlMs / cacheScope。レガシーのStdioクライアントでまだハンドセイクを保持しています 動作中です。ネイティブのStreamable HTTPはMCP_TRANSPORT=streamable-httpで利用可能です。 そしてステートレス(状態がありません)で、ラウンドロビン式のロードバランシングはスティッキーセッションを必要としません。

新たに更新された重大な変更についてはdocs/MIGRATION-0.4.mdを参照してください ENV変数、そしてゲートウェイのカットオーバーノート。0.3.4は最後のリリースとして残っています。 mcp 1.x('mcp>=1.2.0、📄詳細説明:検証ケーススタディ — プロキシとは何か、API + クライアントの行列、そして発見・修正されたすべての欠陥。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

mcp-openapi-proxy

mcp-openapi-proxy is a Python package that implements a Model Context Protocol (MCP) server, designed to dynamically expose REST APIs—defined by OpenAPI specifications—as MCP tools. This facilitates seamless integration of OpenAPI-described APIs into MCP-based workflows.

v0.4.0 — tagged September 6, 2026; GitHub Release published October 15, 2026 (AEDT): MCP SDK 2.x / protocol 2026-07-28, with native stateless Streamable HTTP and legacy stdio support.

What’s New in 0.4.0

MCP 2026-07-28 (SDK 2.x). The proxy is dual-stack: modern clients send self-contained requests (no initialize, no Mcp-Session-Id) and list results carry ttlMs / cacheScope. Legacy stdio clients that still handshake keep working. Native Streamable HTTP is available with MCP_TRANSPORT=streamable-http and is stateless — round-robin load balancing needs no sticky sessions.

See docs/MIGRATION-0.4.md for breaking changes, new env vars, and gateway cutover notes. 0.3.4 remains the last release on mcp 1.x (mcp>=1.2.0,<2).

What’s New in 0.2.0

Works with every modern MCP-enabled client we tested. Strict MCP clients can now discover and call tools — the low-level server advertises correct capabilities and no longer crashes during resource/prompt discovery, and a slow spec download no longer crash-loops short-timeout clients. Verified live against the full list of mainstream agent CLIs:

  • ✅ Codex, Gemini, Qwen, Kilocode, opencode — native tool calls over stdio
  • ✅ Vibe — native discovery and read calls (writes were CLI-flaky, not a proxy issue)
  • ✅ Letta — Cloud (via a remote streamable-HTTP MCP URL) and self-hosted (via stdio)

See the client matrix for attach mechanisms, models, and exact results.

📄 Full write-up: Verification case study — what the proxy is, the API + client matrices, and every defect found & fixed.

Prompts and resources are real now — including custom resources. Both MCP surfaces are functional and tested: the summarize_spec / whimsical_blog prompts and the spec_file resource, plus a new ADDITIONAL_RESOURCES env var that serves your own use-case documents (e.g. a NetBox naming policy or an Asana project-layout guide) as MCP resources — see examples/resources/.

Bug fixes (every one live-verified):

  • MCP client discovery: empty capability set + a crash in resource discovery left strict clients seeing zero tools (#23) — fixed, with a full stdio-handshake test harness.
  • IGNORE_SSL_TOOLS was ignored by the low-level dispatcher (#14) — fixed (original patch by @robbycochran, #15).
GitHub で README 全文を見る

インストール

uvx mcp-openapi-proxy
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "mcp-openapi-proxy": { "command": "uvx", "args": ["mcp-openapi-proxy"], "env": { "OPENAPI_SPEC_URL": "${OPENAPI_SPEC_URL}", "API_KEY": "${API_OPENAPI_KEY}" } } } }