MCP.so
登录

Hatchet MCP Server

@ElliotPadfield

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

ElliotPadfield

提交者

Elliot Padfield

关于 Hatchet MCP Server

MCP server for Hatchet — let AI agents observe and operate your workflows: runs, logs, workers, metrics, plus trigger/cancel/replay. Single-token setup, npx-installable.

Hatchet MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "hatchet": {
      "command": "npx",
      "args": [
        "-y",
        "hatchet-mcp"
      ],
      "env": {
        "HATCHET_CLIENT_TOKEN": "<your-hatchet-api-token>"
      }
    }
  }
}

Hatchet MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Hatchet MCP?

Hatchet MCP is a server that allows AI agents, such as Claude Code or Claude Desktop, to observe and operate Hatchet workflows. It wraps the Hatchet API to provide status, runs, logs, workers, and metrics, plus the ability to trigger, cancel, and replay runs.

How to use Hatchet MCP?

Add the server to your MCP configuration using npx -y hatchet-mcp with the required environment variable HATCHET_CLIENT_TOKEN (obtained from the Hatchet dashboard under API tokens). Optionally set HATCHET_API_BASE for self-hosted instances and HATCHET_TENANT_ID to override the tenant decoded from the token. Once configured, agents can invoke the provided tools to interact with Hatchet workflows.

Key features of Hatchet MCP

  • Read-only observability tools for workflows, runs, logs, workers, and queue metrics
  • Action tools to trigger, cancel, and replay workflow runs
  • Single environment variable (HATCHET_CLIENT_TOKEN) encodes server URL and tenant
  • Works with Hatchet Cloud and self-hosted instances via HATCHET_API_BASE
  • Built with TypeScript and ESM, tested with vitest

Use cases of Hatchet MCP

  • Monitor workflow run status, tasks, and errors via an AI assistant
  • Trigger new workflow runs by name with a JSON input payload
  • Cancel or replay one or more runs or tasks by external ID
  • Inspect worker health and queue metrics to assess system load
  • Debug tasks by fetching log lines during incident response

常见问题

1

How do I get the HATCHET_CLIENT_TOKEN?

Obtain the token from the Hatchet dashboard under API tokens. It is a JWT that encodes the server URL and tenant, making it the only required setting.

2

Can I use Hatchet MCP with a self-hosted Hatchet instance?

Yes. Set the `HATCHET_API_BASE` environment variable to point at your own Hatchet instance and the server will work anywhere.

3

Which tools modify live state?

The tools `trigger_workflow`, `cancel_runs`, and `replay_runs` mutate live state. Their descriptions are prefixed with “MUTATES LIVE STATE” so agents and users know they affect real runs.

4

Is the token safe to share or commit?

No. The token grants full tenant access; treat it as a secret and never commit it to source control.

5

What is the current status of the package?

Version 0.1.0. All tools have been verified against Hatchet Cloud and work with self-hosted instances. The `trigger_workflow` tool uses the stable `/workflow-runs/trigger` endpoint.

评论

开发工具 分类下的更多 MCP 服务器