内容
# @totoy/totoy-mcp
## MCP 客户端配置
将以下内容添加到 `~/Library/Application\ Support/Claude/claude_desktop_config.json`:
```json
{
"mcpServers": {
"totoy-mcp": {
"command": "npx",
"args": ["-y", "@totoy/totoy-mcp"],
"env": {
"API_KEY": "..."
}
}
}
}
```
## 自定义基础 URL
设置环境变量 `OPEN_MCP_BASE_URL` 以覆盖每个工具的基础 URL。如果您的 OpenAPI 规范定义了相对服务器 URL,这将非常有用。
## 其他环境变量
- `API_KEY`
## 工具
### createexplanation
### createknowledgebase
### listknowledgebases
### getknowledgebase
### modifyknowledgebase
### deleteknowledgebase
### chatwithknowledgebase
### addknowledgebasesources
### listknowledgebasesources
### getknowledgebasesource
### deleteknowledgebasesource
### createtextsource
### createdocumentsource
### listsources
### getsource
### modifysource
### deletesource
### getsourcecontent
### createproject
### listprojects
### getproject
### modifyproject
### deleteproject
### getorganization
## Inspector
需要访问 3000 端口以运行代理服务器,如果 http://localhost:3000 已经被占用,将会失败。
```bash
npx -y @modelcontextprotocol/inspector npx -y @totoy/totoy-mcp
```
- 打开 http://localhost:5173
- 传输类型:`STDIO`
- 命令:`npx`
- 参数:`-y @totoy/totoy-mcp`
- 点击 `Environment Variables` 添加
- 点击 `Connect`
应该会显示红色的 _MCP Server running on stdio_。
- 点击 `List Tools`