MCP.so
ログイン

OPENAPI Specifications => MCP (MCP) Tools

@2013xile

基本情報

カテゴリ

その他

ライセンス

MIT

トランスポート

stdio

作者

2013xile

OPENAPI Specifications => MCP (MCP) Tools について

OpenAPI specifications => MCP (Model Context Protocol) tools

OPENAPI Specifications => MCP (MCP) Tools の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

OPENAPI Specifications => MCP (MCP) Tools のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is OPENAPI Specifications => MCP (Model Context Protocol) Tools?

A utility library that converts OpenAPI specifications into MCP tools, enabling faster development of MCP servers based on OpenAPI definitions. It is designed for developers who want to expose REST APIs as tools in the Model Context Protocol ecosystem.

How to use OPENAPI Specifications => MCP (Model Context Protocol) Tools?

Install the package and import the Converter class. Instantiate it with optional baseURL and httpClient, then call converter.load({ specs }) to load OpenAPI specifications. Retrieve the tool list via converter.getToolsList() and the tool caller via converter.getToolsCaller(). Use these with an MCP server (e.g., StdioServerTransport) to handle tool listing and execution.

Key features of OPENAPI Specifications => MCP (Model Context Protocol) Tools

  • Converts OpenAPI specs into MCP tool definitions
  • Supports custom base URL and HTTP client
  • Provides both tool list and tool caller functions
  • Works seamlessly with StdioServerTransport
  • Enables rapid MCP server development from APIs

Use cases of OPENAPI Specifications => MCP (Model Context Protocol) Tools

  • Create an MCP server from any REST API that has an OpenAPI specification
  • Expose API operations as tools for AI assistants or agents
  • Prototype MCP integrations quickly without writing boilerplate code

よくある質問

1

What does this library do?

It converts OpenAPI specifications into MCP tools, providing a tool list and a tool caller that can be used to build an MCP server.

2

What are the runtime dependencies?

The library requires TypeScript/Node.js and the `@modelcontextprotocol/sdk` package for the MCP server infrastructure.

3

Can I use a custom HTTP client?

Yes, you can pass an `httpClient` that implements the `HTTPClient` interface, which includes a `request` method. Example: `new Converter({ httpClient: axios })`.

4

How do I load multiple OpenAPI specifications?

Pass the specifications as an object to `converter.load({ specs })`. The `specs` parameter can be a single spec or multiple specs depending on your implementation.

5

Is StdioServerTransport the only supported transport?

The example uses `StdioServerTransport`, but the library is transport‑agnostic; other MCP transports can be used as long as the server is built with the generated tools.

コメント

「その他」の他のコンテンツ