
这是一个基于OpenAI GPT模型和MCP工具服务的聊天客户端,它支持自动识别用户意图并调用本地工具功能.
概览
这是一个基于OpenAI GPT模型和MCP工具服务的聊天客户端,它支持自动识别用户意图并调用本地工具功能. 支持 OpenAI 函数调用并动态扩展工具功能. 1. openai 2. mcp(多元平台客户端库) 3. python-dotev 默认配置用于第二ME的MCP服务. 在使用SecondME的MCP服务前,请确保您已经下载了代码的最新版本并完成注册. 在完成上述步骤后,填写本地计算机路径到相应的配置项目开始使用. 下列图像出现后,证明了客户端正常运行. 接下来,您可以提问或请求访问工具.
概述(AI 翻译)
□ 概览
这是一个基于OpenAI GPT模型和MCP工具服务的聊天客户端,它支持自动识别用户意图并调用本地工具功能. 支持 OpenAI 函数调用并动态扩展工具功能.
□ 要求
QQ Python 版本
- Python 3.12 (英语).
需要的软件包
openai- [[T1] (多元平台客户端库)
python-dotenv
快开始
QQ 配置
QQ 1. 在[[T3]文件中填写 OpenAI API 密钥 :
- 在[[T4]中定义 MCP 服务器:
默认配置用于第二ME的MCP服务. 在使用SecondME的MCP服务前,请确保您已经下载了代码的最新版本并完成注册. 在完成上述步骤后,填写本地计算机路径到相应的配置项目开始使用.
使用量
下列图像出现后,证明了客户端正常运行.
接下来,您可以提问或请求访问工具.
本页由 AI 翻译,技术细节请以原文为准。
README
MCP Client
Overview
This is a chat client built on OpenAI GPT model and MCP tool service, which supports automatic recognition of user intent and calling local tool functions. Support OpenAI function calling and dynamically extending tool functionality.
Requirements
Python Version
- Python 3.12
Required Packages
openaimcp(Multi-Component Platform client library)python-dotenv
Quick start
Configuration
1. Fill in the OpenAI API key in the.env file:
OPENAI_API_KEY=your_api_key_here
2. Define MCP servers in config.json:
{
"mcpServers": {
"mindverse": {
"command": "python",
"args": ["{Local Path}/Second-Me/mcp/mcp_public.py"]
}
}
}
The default configuration is for the MCP service of SecondME. Before using the MCP service of SecondME, please ensure that you have downloaded the latest version of the code and completed registration. After completing the above steps, fill in the local computer path to the corresponding configuration item to start using.
Usage
python mcp_openai_client.py
When the following image appears, it proves that the client is running normally.
Next, you can ask questions or request access to tools.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →