云项目管理工具

Codesphere MCP 是一个用于 Codesphere 云平台的服务器工具,使AI代理能够创建、部署和管理项目。

  • by Datata1
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 Datata1/codesphere-mcp

使用说明

codesphere mcp

MCP服务器 Codesphere 云平台。使AI代理能够在Codesphere上创建、部署和管理项目。

特性

  • 41工具 涵盖团队、工作区、部署、CI配置文件、环境变量、git、日志、元数据、域和使用情况
  • 3个引导提示 用于项目迁移、部署和故障排除
  • 3资源 公开平台元数据(计划、图像、数据中心)
  • 双重运输 --stdio(本地)和流式HTTP(远程)

快速开始

# Clone and install
git clone <repo-url> && cd codesphere-mcp
uv sync

# Set your API token
export CS_TOKEN=your-codesphere-api-token

# Run (stdio mode for Claude Desktop / VS Code)
uv run codesphere-mcp

配置

变量 必填 默认 描述
CS_TOKEN 是 - Codesphere API访问令牌
CS_BASE_URL 没有 https://codesphere.com/api API基本URL

复制 .env.example 到 .env 为了地方发展。

克劳德桌面

增添 claude_desktop_config.json:

{
  "mcpServers": {
    "codesphere": {
      "command": "uv",
      "args": ["--directory", "/path/to/codesphere-mcp", "run", "codesphere-mcp"],
      "env": { "CS_TOKEN": "your-token" }
    }
  }
}

VS代码

增添 .vscode/settings.json 或用户设置:

{
  "mcp": {
    "servers": {
      "codesphere": {
        "command": "uv",
        "args": ["--directory", "/path/to/codesphere-mcp", "run", "codesphere-mcp"],
        "env": { "CS_TOKEN": "your-token" }
      }
    }
  }
}

发展

uv sync                        # Install deps
CS_TOKEN=test uv run pytest    # Run tests

建筑

看 建筑.md 查看完整的设计文档。