Skip to main content
Glama

Unbundle OpenAPI Specs MCP

by auto-browse
Integrations
  • Used as the runtime environment for the MCP server, with specific version recommendations for compatibility.

  • Used for package management and running the MCP server, both locally and via npx for the latest version.

  • Used for development of the MCP server, with build steps to compile TypeScript code to JavaScript.

OpenAPI MCP サーバーのバンドル解除

このプロジェクトは、Model Context Protocol(MCP)サーバーに、OpenAPI仕様ファイルを複数のファイルに分割したり、特定のエンドポイントを新しいファイルに抽出したりするためのツールを提供します。これにより、MCPクライアント(AIアシスタントなど)がOpenAPI仕様をプログラム的に操作できるようになります。

前提条件

  • Node.js (LTS バージョンを推奨、例: v18 または v20)
  • npm (Node.js に付属)

使用法

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Unbundle OpenAPI MCP Server を自動的にインストールするには:

npx -y @smithery/cli install @auto-browse/unbundle_openapi_mcp --client claude

このサーバーを使用する最も簡単な方法はnpxを使用することです。これにより、グローバル インストールを必要とせずに常に最新バージョンを使用できます。

npx @auto-browse/unbundle-openapi-mcp@latest

あるいは、グローバルにインストールすることもできます (通常は推奨されません)。

npm install -g @auto-browse/unbundle-openapi-mcp # Then run using: unbundle-openapi-mcp

サーバーが起動し、標準入出力 (stdio) で MCP 要求をリッスンします。

クライアント構成

このサーバーをVS Code、Cline、Cursor、Claude DesktopなどのMCPクライアントで使用するには、それぞれの設定ファイルに構成を追加してください。推奨される方法はnpxを使用することです。

VS Code / クライン / カーソル

次のコードをユーザーsettings.json json ( Ctrl+Shift+P > Preferences: Open User Settings (JSON)アクセス可能) またはワークスペース ルートの.vscode/mcp.jsonファイルに追加します。

// In settings.json: "mcp.servers": { "unbundle_openapi": { // You can choose any key name "command": "npx", "args": [ "@auto-browse/unbundle-openapi-mcp@latest" ] } // ... other servers can be added here }, // Or in .vscode/mcp.json (omit the top-level "mcp.servers"): { "unbundle_openapi": { // You can choose any key name "command": "npx", "args": [ "@auto-browse/unbundle-openapi-mcp@latest" ] } // ... other servers can be added here }

クロードデスクトップ

claude_desktop_config.jsonファイルに次の内容を追加します。

{ "mcpServers": { "unbundle_openapi": { // You can choose any key name "command": "npx", "args": ["@auto-browse/unbundle-openapi-mcp@latest"] } // ... other servers can be added here } }

構成を追加した後、変更を有効にするためにクライアント アプリケーションを再起動します。

提供されるMCPツール

split_openapi

説明: redocly splitコマンドを実行し、OpenAPI 定義ファイルをその構造に基づいて複数の小さなファイルに分割します。

引数:

  • apiPath (文字列、必須): 入力 OpenAPI 定義ファイルへの絶対パス (例: openapi.yaml )。
  • outputDir (文字列、必須): 分割出力ファイルを保存するディレクトリへの絶対パス。このディレクトリが存在しない場合は作成されます。

戻り値:

  • 成功した場合: redocly splitコマンドからの標準出力を含むテキスト メッセージ (通常は確認メッセージ)。
  • 失敗した場合: コマンド実行からの標準エラーまたは例外の詳細を含むエラー メッセージ。isError isError: trueでマークされます。

使用例(概念的なMCPリクエスト):

{ "tool_name": "split_openapi", "arguments": { "apiPath": "/path/to/your/openapi.yaml", "outputDir": "/path/to/output/directory" } }

extract_openapi_endpoints

**説明:**大規模なOpenAPI定義ファイルから特定のエンドポイントを抽出し、それらのエンドポイントと参照コンポーネントのみを含む、新しい小さなOpenAPIファイルを作成します。これは、元のファイルを分割し、指定されたパスのみを保持するように構造を変更し、結果をバンドルすることで実現されます。

引数:

  • inputApiPath (文字列、必須): 大規模な入力 OpenAPI 定義ファイルへの絶対パス。
  • endpointsToKeep (文字列の配列、必須):最終出力に含めるエンドポイントパス(文字列)のリスト(例: ["/api", "/api/projects/{id}{.format}"] )。元の仕様に見つからないパスは無視されます。
  • outputApiPath (文字列、必須): 最終的な、より小さなバンドルされたOpenAPIファイルを保存する絶対パス。ディレクトリが存在しない場合は作成されます。

戻り値:

  • 成功した場合: 作成されたファイルのパスとredocly bundleコマンドからの標準出力を示すテキスト メッセージ。
  • 失敗時: 失敗したステップ (分割、変更、バンドル) の詳細を含むエラー メッセージ。isError isError: trueでマークされます。

使用例(概念的なMCPリクエスト):

{ "tool_name": "extract_openapi_endpoints", "arguments": { "inputApiPath": "/path/to/large-openapi.yaml", "endpointsToKeep": ["/users", "/users/{userId}/profile"], "outputApiPath": "/path/to/extracted-openapi.yaml" } }

**注:**このサーバーは、内部的にnpx @redocly/cli@latestを使用して、基盤となるsplitbundleコマンドを実行します。キャッシュされていない場合、 npx @redocly/cli extract_openapi_endpoints取得するにはインターネット接続が必要になる場合があります。extract_openapi_endpoints プロセス中に一時ファイルが作成され、自動的にクリーンアップされます。

発達

ソースから貢献したりサーバーを実行したりしたい場合は、次の手順に従ってください。

  1. **クローン:**このリポジトリをクローンします。
  2. ナビゲート: cd unbundle_openapi_mcp
  3. 依存関係のインストール: npm install
  4. ビルド: npm run build (TypeScript をdist/にコンパイルします)
  5. 実行: npm start ( dist/内のコンパイルされたコードを使用してサーバーを起動します)

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

OpenAPI 仕様の MCP をアンバンドルする

  1. 前提条件
    1. 使用法
      1. Smithery経由でインストール
    2. クライアント構成
      1. VS Code / クライン / カーソル
      2. クロードデスクトップ
    3. 提供されるMCPツール
      1. split_openapi
      2. extract_openapi_endpoints
    4. 発達

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A MCP server that exposes OpenAPI schema information to LLMs like Claude. This server allows an LLM to explore and understand large OpenAPI schemas through a set of specialized tools, without needing to load the whole schema into the context
        Last updated -
        37
        5
        JavaScript
        • Apple
        • Linux
      • -
        security
        F
        license
        -
        quality
        An MCP server that provides access to Naver OpenAPI services, enabling users to search blogs, news, books, images, and other content through standardized Model Context Protocol interfaces.
        Last updated -
        Python
      • -
        security
        A
        license
        -
        quality
        Generate an MCP server for any OpenAPI documented endpoint.
        Last updated -
        201
        Go
        Apache 2.0
        • Apple
        • Linux
      • -
        security
        A
        license
        -
        quality
        MCP server providing token-efficient access to OpenAPI/Swagger specs via MCP Resources for client-side exploration.
        Last updated -
        30
        12
        TypeScript
        MIT License

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/auto-browse/unbundle_openapi_mcp'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server