C

CloudTasks 自然语言管理工具

@gitskyflux/cloudtasks-mcp
0 Stars 304 次浏览 gitskyflux 更新于 2026-08-23

# 翻译 通过自然语言与Google Cloud Tasks队列和任务进行交互,允许用户列出、管理、暂停/恢复队列并通过Claude Desktop处理任务。

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

Cloud Tasks MCP 服务器

smithery 徽章

这是一个用于 Google Cloud Tasks 的 Model Context Protocol (MCP) 服务器,它能够与 Google Cloud Tasks 队列和任务进行交互。

功能

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

设置

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 Cloud Tasks 服务器:

npx -y @smithery/cli install @gitskyflux/cloudtasks-mcp --client claude

手动安装

  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

相关 MCP 服务