MM

matthewhand/mcp-openapi-proxy

API development

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

157 stars 40 forks 품질 85 트렌드 14MIT

matthewhand/mcp-openapi-proxy는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

matthewhand/mcp-openapi-proxy는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

mcp-openapi-proxy는 모델 컨텍스트 프로토콜(MCP) 서버를 구현한 파이썬 패키지로, 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 및 레거시 stdio 지원.

0.4.0의 새로운 소식

MCP 2026-07-28 (SDK 2.x). 프록시는 듀얼 스택입니다: 최신 클라이언트가 전송합니다. 자립형 요청(initialize, Mcp-Session-Id없음) 및 결과 목록 ttlMs / cacheScope 를 가지고 있습니다. 여전히 악수를 유지하는 레거시 표준 클라이언트들 작동 중입니다. 네이티브 스트림 HTTP는 MCP_TRANSPORT=streamable-http에서 제공됩니다. 그리고 상태가 없어 라운드로빈 부하 분산은 스티키 세션이 필요 없습니다.

새로운 변경 사항에 대해서는 docs/MIGRATION-0.4.md를 참조하세요 ENV VAR와 Gateway 컷오버 노트가 포함되어 있습니다. 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}" } } } }