介绍
这是 Anthropic 开发的一款符合 MCP 协议的示例应用。它旨在作为 Claude Desktop 中的 MCP 服务器运行,并允许用户检查 Airbyte 的连接状态。
配置您的 MCP 服务器
- 安装uv进行虚拟环境管理
- 创建虚拟环境
uv venv
source .venv/bin/activate
- 安装依赖项
pip install -r requirements.txt
- 创建一个
.env
文件并添加你的 Airbyte 密钥
AIRBYTE_WORKSPACE_ID=xxx
AIRBYTE_CLIENT_ID=xxx
AIRBYTE_CLIENT_SECRET=xxx
AIRBYTE_API_KEY=xxx
- 运行应用
uv run airbyte_status_checker.py
## Configure claude desktop to use your MCP server
1. set absolute paths to uv and and the python file in claude_desktop_settings.json. It should look similar to this:
```json
"mcpServers": {
"airbyte-status-checker": {
"command": "/Users/quintonwall/.local/bin/uv",
"args": [
"--directory",
"/Users/quintonwall/code/airbyte-mcp-list-sources",
"run",
"airbyte_status_checker.py"
]
}
}
}
- 将服务器添加到 Claude Desktop 的服务器列表中。打开 Claude Desktop 并导航到设置页面。点击“开发者设置”,然后点击“+”按钮添加新服务器。这将显示您的 claude_desktop_config.json 文件的位置。打开该文件并从此仓库粘贴 claude_desktop_config.json 文件的内容。然后重新启动 Claude Desktop。您可以通过查看文本输入框右下角的锤子图标来确认服务器已添加。
调试
如果您的 claude_desktop_config.json 文件配置正确,日志将写入 ~/Library/Logs/anthropic/claude-desktop-server.log 如果您没有看到任何日志或没有锤子图标,请检查您的 claude_desktop_config.json 文件是否与我在此 repo 中的内容完全匹配,并且路径正确。