Cloud Tasks MCP Server

云任务 MCP 服务器

Google Cloud Tasks 的模型上下文协议 (MCP) 服务器,可实现与 Google Cloud Tasks 队列和任务的交互。

特征

  • 列出指定位置的 Cloud Tasks 队列
  • 获取特定队列的详细信息
  • 暂停和恢复队列
  • 列出队列中的任务
  • 获取特定任务的详细信息
  • 从队列中删除任务

设置

  1. 安装依赖项
    npm install
  2. 构建项目
    npm run build
  3. 配置 Claude Desktop :将以下内容添加到您的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 的实际路径。在 GOOGLE_CLOUD_LOCATION_PROJECTS 中定义以逗号分隔的location:project-id对列表。示例: us-east1:google-project-id1,us-central1:google-project-id2第一个列出的项目是默认项目。应用程序希望在每个项目的 keys 文件夹中找到 .json 凭证文件。示例:keys/google-project-id1.json确保相关的云服务帐户具有与 Cloud Tasks 交互的适当权限,例如Cloud Tasks Admin或较低权限。

可用工具

  • listQueues :列出指定位置的所有 Cloud Tasks 队列
  • getQueue :获取特定 Cloud Tasks 队列的详细信息
  • pauseQueue :暂停 Cloud Tasks 队列
  • resumeQueue :恢复暂停的 Cloud Tasks 队列
  • listTasks :列出 Cloud Tasks 队列中的任务
  • getTask :获取 Cloud Tasks 队列中特定任务的详细信息
  • deleteTask :从 Cloud Tasks 队列中删除任务

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
-
security - not tested
-
license - not tested
-
quality - not tested

通过自然语言实现与 Google Cloud Tasks 队列和任务的交互,允许用户通过 Claude Desktop 列出、管理、暂停/恢复队列和处理任务。

  1. Features
    1. Setup
      1. Available Tools
    2. Example Usage in Claude Desktop
      1. Pause or Resume a Queue
      2. Get Pending Tasks
      3. Run a Task in a Paused Queue
    3. Development
      ID: euynsp8nam