Skip to main content
Glama
gitskyflux

Cloud Tasks MCP Server

by gitskyflux

云任务 MCP 服务器

铁匠徽章

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

特征

  • 列出指定位置的 Cloud Tasks 队列

  • 获取特定队列的详细信息

  • 暂停和恢复队列

  • 列出队列中的任务

  • 获取特定任务的详细信息

  • 从队列中删除任务

Related MCP server: Azure MCP Server

设置

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Cloud Tasks Server:

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gitskyflux/cloudtasks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server