Shortcut Mcp

io.github.stayce由 GitHub 账号 stayce 发布v1.0.0更新于 Oct 24, 2026

Shortcut project management. Create, update, search stories and manage workflows.

已验证Streamable HTTP可网页运行效率与工作流开发者工具

概览

AI 生成的概览

面向 Shortcut 项目管理的远程 MCP 服务器,让助手通过一个精简工具搜索、读取、创建和更新故事、添加评论并查看史诗。

可以做什么
  • 按文本查询、结构化筛选、ID 或链接搜索并读取故事,查看史诗及其包含的故事
  • 创建和更新故事,包括状态、估点、负责人、类型、名称和描述
  • 为故事添加评论
  • 调用 Shortcut 原始 REST API 处理其他操作未覆盖的内容
  • 通过 help 操作查看内置文档
适用场景
适合在 Shortcut 中工作、希望助手直接查看活跃故事、分派或更新任务、提交新缺陷或在聊天中发表评论的场景。相比官方 Shortcut MCP,它的工具定义占用 token 少得多,适合上下文预算紧张时使用。
运行要求
使用提供方的 Cloudflare Workers 远程端点,无需本地安装。需要自备 Shortcut API 令牌,通过 X-Shortcut-Token 请求头或 Authorization Bearer 请求头发送。配置后需重启客户端;部分 HTTP 客户端需设置正常的 User-Agent 才能通过机器人防护。
安装前请注意
需要提供个人 Shortcut API 令牌,该令牌可访问你的 Shortcut 工作区;README 建议把令牌明文写入客户端配置,因此会以明文保存。相关操作可创建、更新故事和发表评论,原始 API 操作还可执行其他写入。请求会携带你的令牌转发给 Shortcut。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Shortcut Mcp,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.stayce%2Fshortcut-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "shortcut": {
      "type": "http",
      "url": "https://streamshortcut.staycek.workers.dev/mcp"
    }
  }
}

README

StreamShortcut (Cloudflare Workers)

A lightweight Shortcut MCP deployed on Cloudflare Workers. One tool, eight actions.

Live URL: https://streamshortcut.staycek.workers.dev/mcp

Why?

The official @shortcut/mcp uses ~11,652 tokens for tool definitions (52 tools). StreamShortcut uses ~500 tokens — a ~96% reduction.

Actions

ActionPurpose
searchFind stories (default: your active stories); text query or structured filters
getStory details by ID or URL
updateChange state, estimate, owner, type, name, or description
commentAdd comment to story
createCreate story with type, estimate, state, epic, owner, description
epicEpic details with its stories
apiRaw REST API access for everything else
helpDocumentation

Usage with Claude

You must provide your own Shortcut API token. Get one at: https://app.shortcut.com/settings/account/api-tokens

Option 1: claude mcp add (recommended)

One command, no file editing. Replace YOUR_TOKEN with your real token:

bash
claude mcp add --transport http shortcut https://streamshortcut.staycek.workers.dev/mcp --header "X-Shortcut-Token: YOUR_TOKEN"

Use -s user to make it available in every project instead of just the current one.

Option 2: Edit the config directly

Add this to your Claude Desktop / Claude Code config:

json
{  "mcpServers": {    "shortcut": {      "type": "http",      "url": "https://streamshortcut.staycek.workers.dev/mcp",      "headers": {        "X-Shortcut-Token": "your-token-here"      }    }  }}

Put the literal token in the config. A "${SHORTCUT_API_TOKEN}" reference only resolves if the variable is present in the environment the app was launched from. On macOS, apps started from the Dock or Finder do not read ~/.zshrc, so the variable will be undefined and the server will fail to authenticate. Environment references work reliably only when you launch from a terminal.

Either way, restart Claude afterwards so the new server is picked up.

Authentication

The server is stateless and stores nothing — every request carries your own token, and it is never persisted. Send it either way:

X-Shortcut-Token: your-token-hereAuthorization: Bearer your-token-here

X-Shortcut-Token takes precedence if both are present. There is no OAuth flow; an unauthenticated request returns 401 with a WWW-Authenticate header.

Verify It Works

Check the service is up (no token needed):

bash
curl -s https://streamshortcut.staycek.workers.dev/health

Confirm your token is valid, straight against Shortcut:

bash
curl -s -o /dev/null -w "%{http_code}\n" https://api.app.shortcut.com/api/v3/member -H "Shortcut-Token: YOUR_TOKEN"

200 means the token is good; 401 means it's wrong or expired.

Then test the full path — this returns your active stories:

bash
curl -s https://streamshortcut.staycek.workers.dev/mcp -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "X-Shortcut-Token: YOUR_TOKEN" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"shortcut","arguments":{"action":"search"}}}'

Once configured in Claude, just ask: "show me my Shortcut stories."

Troubleshooting

SymptomCause
401 Missing Shortcut API tokenNo token sent — use either X-Shortcut-Token or Authorization: Bearer
Error: API error (401): UnauthorizedToken reached the server but Shortcut rejected it — expired or wrong token, or an unexpanded ${SHORTCUT_API_TOKEN} placeholder sent literally
403 Forbidden from the workerCloudflare bot protection. Some default HTTP clients (e.g. Python's urllib) are blocked by user agent — set a normal User-Agent header
Server missing after config editClaude needs a restart; it only reads MCP config at startup

Deploy Your Own (Optional)

If you prefer to self-host:

  1. Clone and install:

    bash
    git clone https://github.com/stayce/streamshortcut-cloudflarecd streamshortcut-cloudflarenpm install
  2. Deploy:

    bash
    npm run deploy

No server-side secrets needed — users always provide their own token.

Development

bash
npm run dev        # local server on http://localhost:8787npm run typecheck  # tsc --noEmitnpm run build      # verify the Worker bundles (dry-run deploy)

Examples

json
{"action": "search"}{"action": "search", "query": {"owner": "me", "state": "In Progress"}}{"action": "get", "id": "704"}{"action": "update", "id": "704", "state": "Done"}{"action": "comment", "id": "704", "body": "Fixed!"}{"action": "create", "name": "New bug", "type": "bug", "estimate": 3, "state": "Ready", "owner": "me"}{"action": "epic", "id": "308"}{"action": "api", "method": "GET", "path": "/workflows"}{"action": "help"}

Related

License

MIT

来源:README.md,提交 748f962

工具

0
该服务器需要 API 密钥等凭据,因此 SourceWeft 无法在没有凭据的情况下读取其工具,也未收录。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分