使用说明
ChatGPT MCP服务器
一个最小的MCP服务器,通过OpenAI API连接到您的ChatGPT帐户。
设置
- 安装依赖项:
npm install
- 设置您的OpenAI API密钥:
export OPENAI_API_KEY="your-api-key-here"
- 添加到Kiro CLI:
/mcp add chatgpt-server node /Users/mmaxwell/chatgpt-mcp-server/index.js
用法
添加后,您可以使用 @chatgpt-server/chat_with_gpt 用于向ChatGPT发送消息的工具。
工具
chat_with_gpt:向ChatGPT发送消息并获得响应message(必填):要发送的消息model(可选):要使用的GPT模型(默认值:GPT-4)