使用说明
云任务MCP服务器
用于Google Cloud任务的模型上下文协议(MCP)服务器,支持与Google Cloud任务队列和任务的交互。
特性
- 列出指定位置的云任务队列
- 获取特定队列的详细信息
- 暂停和恢复队列
- 列出队列中的任务
- 获取特定任务的详细信息
- 从队列中删除任务
设置
通过Smithery安装
通过以下方式自动安装Cloud Tasks Server for Claude Desktop 史密瑟里:
npx -y @smithery/cli install @gitskyflux/cloudtasks-mcp --client claude
手动安装
-
安装依赖项:
npm install -
构建项目:
npm run build -
配置Claude桌面: 将以下内容添加到您的
claude_desktop_config.json:"cloudtasks-mcp": { "command": "node", "args": [ "/path/to/cloudtasks-mcp/build/index.js" ], "env": { "GOOGLE_CLOUD_LOCATION_PROJECTS": "location:project-id" } }将args中的路径替换为index.js的实际路径。
定义一个逗号分隔的列表
location:project-idGOOGLE_CLOUD_LOCATION项目中的配对。 例子:us-east1:google-project-id1,us-central1:google-project-id2第一个列出的项目是默认项目。应用程序希望在每个项目的keys文件夹中找到.json凭据文件。 示例:keys/google-project-id1.json
确保相关云服务帐户具有与云任务交互的适当权限,例如。
Cloud Tasks Admin或较低的权限。
可用工具
listQueues:列出指定位置的所有云任务队列getQueue:获取特定云任务队列的详细信息pauseQueue:暂停云任务队列resumeQueue:恢复暂停的云任务队列listTasks:列出云任务队列中的任务getTask:获取云任务队列中特定任务的详细信息deleteTask:从云任务队列中删除任务
Claude Desktop中的示例用法
以下是如何在Claude Desktop中使用每个工具的示例:
暂停或恢复队列
Pause the special-events queue. Resume the special-events queue.
获取待处理任务
How many tasks are currently pending in the special-events queue?
在已暂停的队列中运行任务
Run the task ending with the ID 123456 in the special-events queue.
发展
# Watch mode
npm run dev
