使用说明
Daisys MCP服务器
Daisys mcp是一个测试版,还没有稳定的版本。但您可以通过执行以下操作来尝试:
- 在上注册帐户 Daisys 并创建用户名和密码。
如果你在mac操作系统上运行,请运行以下命令:
brew install portaudio
如果在linux上运行,请运行以下命令:
sudo apt install portaudio19-dev libjack-dev
- 将以下配置添加到mcp客户端的mcp配置文件中(克劳德桌面, 光标, mcp-cli, mcp vscode等等):
{
"mcpServers": {
"daisys-mcp": {
"command": "uvx",
"args": ["daisys-mcp"],
"env": {
"DAISYS_EMAIL": "{Your Daisys Email}",
"DAISYS_PASSWORD": "{Your Daisys Password}",
"DAISYS_BASE_STORAGE_PATH": "{Path where you want to store your audio files}"
}
}
}
}
要从源代码构建,请执行以下操作:
-
克隆存储库:
git clone https://github.com/daisys-ai/daisys-mcp.git -
将cd放入存储库:
cd daisys-mcp -
安装
uv(Python包管理器),安装curl -LsSf https://astral.sh/uv/install.sh | sh或查看uv仓库 有关其他安装方法。 -
创建虚拟环境并安装依赖项 使用紫外线:
uv venv
# source .venv/Scripts/activate (Windows)
source .venv/bin/activate (mac and linux)
uv pip install -e .
- 将以下内容添加到MCP客户端的配置文件中(克劳德桌面, 光标, mcp-cli, mcp vscode等等):
{
"mcpServers": {
"daisys-mcp": {
"command": "uv",
"args": [
"--directory",
"{installation_path}/daisys-mcp",
"run",
"-m",
"daisys_mcp.server"
],
"env": {
"DAISYS_EMAIL": "{Your Daisys Email}",
"DAISYS_PASSWORD": "{Your Daisys Password}",
"DAISYS_BASE_STORAGE_PATH": "{Path where you want to store your audio files}"
}
}
}
}
常见问题
如果你在linux上遇到任何关于portaudio的问题,你可以尝试手动安装它:
sudo apt-get update
sudo apt-get install -y portaudio19-dev
贡献
如果你想贡献或从源代码运行:
- 克隆存储库:
git clone https://github.com/daisys-ai/daisys-mcp.git
cd daisys_mcp
- 创建虚拟环境并安装依赖项 使用紫外线:
uv venv
source .venv/bin/activate
uv pip install -e .
uv pip install -e ".[dev]"
- 复制
.env.example向.env并添加您的DAISYS用户名和密码:
cp .env.example .env
# Edit .env and add your DAISYS username and password
- 通过运行以下测试来测试服务器:
uv run pytest
您还可以使用以下工具运行完整的集成测试:
uv run pytest -m 'requires_credentials' # ⚠️ Running full integration tests does costs tokens on the Daisys platform
- 使用MCP检查器进行本地调试和测试:
uv run mcp dev daisys_mcp/server.py
