What are the prerequisites for using this server?
Python 3.x, pip, and an Anthropic API key (for MCP clients) or a Google API key (for ADK agents). The server also requires the dependencies listed in `requirements.txt`.
@rajeshm7910
基本情報
概要はまだありません
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-server-from-openapi": {
"command": "python3",
"args": [
"-m",
"venv",
"venv"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
MCP Server from OpenAPI is a Model Context Protocol (MCP) server implementation that generates endpoints from OpenAPI specifications, supporting both Server-Sent Events (SSE) and streaming responses. It is designed for developers who want to interact with APIs through MCP clients or Google ADK agents using natural language queries.
Install Python 3.x and pip, create a virtual environment, and run pip install -r requirements.txt. Start the server in SSE mode (python server/mcp_server_sse.py --spec <file> --name <name> --base-url <url>) or streaming mode (python server/mcp_server_stream.py ...). Then launch either the SSE client (python client/sse_client.py) or streaming client (python client/stream_client.py). For ADK agents, install google-adk, replace a mcp_session_manager.py file, and configure .env files with the appropriate API keys.
Python 3.x, pip, and an Anthropic API key (for MCP clients) or a Google API key (for ADK agents). The server also requires the dependencies listed in `requirements.txt`.
Run `python server/mcp_server_sse.py --spec server/httpbin_openapi.yaml --name httpbin --base-url https://httpbin.org`. Replace the spec file, name, and base URL with your own values.
Install ADK (`pip install google-adk`), download the latest `mcp_session_manager.py` from the Google ADK repository and replace the existing file in your ADK installation. Then create `.env` files in the agent directories with `GOOGLE_GENAI_USE_VERTEXAI="False"` and `GOOGLE_API_KEY="your_key"`. Start the ADK web interface with `adk web`.
Verify you have replaced the `mcp_session_manager.py` file, check that your Google API key is correctly set in the `.env` files, and ensure you are using the latest version of ADK.
Yes, you can provide any OpenAPI specification file using the `--spec` flag and set the appropriate base URL with `--base-url`.
Free moving quotes for AI agents from Next Generation Movers, a licensed interstate mover (USDOT 3764697). US long-distance nationwide and local DC/MD/VA. Indicative ballpark price and booking options; optional $0.01 x40
🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
🚀 The fast, Pythonic way to build MCP servers and clients.
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
コメント