Integrations
Integrates with OpenAI's API to provide LLM capabilities that can be queried through the MCP server, allowing for tools like weather information retrieval to be called via the client interface.
定制MCP项目
该项目利用具有 CLI 支持的mcp
库并与 OpenAI 的 API 集成。
要求
确保在运行项目之前安装所需的依赖项:
Copy
用法
- 将您的 OpenAI API 密钥配置为环境变量:Copy
- 启动 MCP 服务器:Copy
- 使用客户端与服务器进行交互:Copy
- 或者,使用协调器查询 LLM 和工具:Copy
例子
查询天气工具
运行客户端并调用get_weather
工具:
Copy
交互示例:
Copy
依赖项
openai==1.70.0
mcp[cli]==1.6.0
执照
该项目已获得 MIT 许可。
This server cannot be installed
将 MCP 库与 OpenAI 的 API 集成在一起的服务器,允许用户通过自然语言查询与各种工具(例如天气工具)进行交互。