MCP服务器代理

Autoplans MCP Server是一个将HTTP API转换为MCP Registry所需的stdio接口的代理服务,适用于需要通过MCP协议集成Autoplans.dev功能的开发者。

  • by mohamedgb00714
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 mohamedgb00714/autoplansdev-mcp

使用说明

自动规划MCP服务器

我们建造了什么

此仓库包含将Autoplans.dev MCP服务器发布到官方注册表所需的一切:

  1. server.json -使用最新2025-10-17模式的MCP注册表清单
  2. package.json -npm包配置
  3. index.js -代理到您的HTTP API的stdio包装器
  4. mcp.json -原始舱单(留作参考)

运作原理

您的服务器在以下位置以HTTP运行 https://autoplans.dev/api/v1/mcp,但MCP注册表需要基于stdio的软件包。我们的包装器通过以下方式解决了这个问题:

  • 发布一个提供stdio传输的npm包
  • 代理MCP stdio调用到您的HTTP API
  • 要求用户设置 AUTOPLANS_API_KEY 环境变量
  • 通过官方MCP注册表实现发现

发布状态

  • ✅ GitHub仓库:https://github.com/mohamedgb00714/autoplans-mcp
  • ✅ npm包:https://npm.im/autoplans-mcpv0.1.1
  • ✅ MCP注册表:https://registry.modelcontextprotocol.io/v0/servers?search=autoplans
  • ✅ 实时可发现! 🎉

安装与使用

# Install the MCP server
npm install -g autoplans-mcp

# Set your API key (get from https://autoplans.dev)  
export AUTOPLANS_API_KEY="your_api_key_here"

# Use with any MCP client
autoplans-mcp

流行编辑器的快速设置

VS代码/光标:

{
  "mcp.servers": {
    "autoplans": {
      "command": "npx",
      "args": ["autoplans-mcp"],
      "env": {
        "AUTOPLANS_API_KEY": "your_api_key_here"
      }
    }
  }
}

克劳德桌面:

{
  "mcpServers": {
    "autoplans": {
      "command": "npx",
      "args": ["autoplans-mcp"],
      "env": {
        "AUTOPLANS_API_KEY": "your_api_key_here"
      }
    }
  }
}

📖 完整安装指南 -所有编辑器的详细设置

发布步骤

初始化git并推送到GitHub(示例):

git init
git add .
git commit -m "Initial MCP manifest and README"
git branch -M main
git remote add origin https://github.com/msaid/autoplans-mcp.git
git push -u origin main

安装MCP Publisher CLI(在macOS上使用Homebrew的示例):

brew install mcp-publisher

使用MCP注册表进行身份验证:

mcp-publisher login

发布清单(从repo根目录运行,其中 mcp.json 生命):

mcp-publisher publish ./mcp.json

注册表将注册您的服务器,并使列出的工具可被发现。

更新/发布

  1. 颠簸一下 version 字段在 mcp.json.
  2. 将更改提交并推送到GitHub。
  3. 跑 mcp-publisher publish ./mcp.json 再次更新注册表指针。

安全与认证

  • mcp.json 在这个repo中表示 bearer 客户端身份验证(中的API密钥 Authorization 头球
  • 确保您的服务器正确验证API密钥并确定其作用域。

API示例

获取所有可用工具:

curl -X POST "https://autoplans.dev/api/v1/mcp" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {}
  }'

调用工具(列出项目):

curl -X POST "https://autoplans.dev/api/v1/mcp" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "list_projects",
      "arguments": { "limit": 5 }
    }
  }'

可用工具(14+)

  • 项目: list_projects, create_project, get_project
  • 任务: create_task, list_tasks, get_task, update_task, delete_task
  • 批量操作: bulk_update_tasks, bulk_create_tasks
  • 商务计划: get_business_plan, create_business_plan
  • 品牌化: get_branding, create_branding

准备发布!

您的MCP服务器功能齐全,清单完整。要向MCP官方注册表发布:

  1. 推送到GitHub:运行上面的git命令
  2. 安装MCP发布器: brew install mcp-publisher (或下载适用于您的操作系统)
  3. 验证: mcp-publisher login
  4. 发布: mcp-publisher publish ./mcp.json

获取API密钥 用户需要他们自己的API密钥https://autoplans.dev使用这些工具。

需要帮助?

  • 服务器问题:联系support@autoplans.dev
  • MCP注册表:检查https://github.com/mcp文档