音频文件管理服务

Daisys MCP服务器是一个用于管理和存储音频文件的开发工具,适用于需要集成音频处理功能的开发者。

  • by daisys-ai
  • Python
  • 本地部署
  • 14 星标
  • 更新于
在 GitHub 查看 daisys-ai/daisys-mcp

使用说明

Daisys MCP服务器

Daisys mcp是一个测试版,还没有稳定的版本。但您可以通过执行以下操作来尝试:

  1. 在上注册帐户 Daisys 并创建用户名和密码。

如果你在mac操作系统上运行,请运行以下命令:

brew install portaudio

如果在linux上运行,请运行以下命令:

sudo apt install portaudio19-dev libjack-dev
  1. 将以下配置添加到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}"
      }
    }
  }
}

要从源代码构建,请执行以下操作:

  1. 克隆存储库: git clone https://github.com/daisys-ai/daisys-mcp.git

  2. 将cd放入存储库: cd daisys-mcp

  3. 安装 uv (Python包管理器),安装 curl -LsSf https://astral.sh/uv/install.sh | sh 或查看 uv 仓库 有关其他安装方法。

  4. 创建虚拟环境并安装依赖项 使用紫外线:

uv venv
# source .venv/Scripts/activate (Windows)
source .venv/bin/activate (mac and linux)
uv pip install -e .
  1. 将以下内容添加到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

贡献

如果你想贡献或从源代码运行:

  1. 克隆存储库:
git clone https://github.com/daisys-ai/daisys-mcp.git
cd daisys_mcp
  1. 创建虚拟环境并安装依赖项 使用紫外线:
uv venv
source .venv/bin/activate
uv pip install -e .
uv pip install -e ".[dev]"
  1. 复制 .env.example 向 .env 并添加您的DAISYS用户名和密码:
cp .env.example .env
# Edit .env and add your DAISYS username and password
  1. 通过运行以下测试来测试服务器:
uv run pytest

您还可以使用以下工具运行完整的集成测试:

uv run pytest -m 'requires_credentials' # ⚠️ Running full integration tests does costs tokens on the Daisys platform 
  1. 使用MCP检查器进行本地调试和测试: uv run mcp dev daisys_mcp/server.py