Weeek Mcp

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

Local MCP server for Weeek (stdio transport) — read-only by default, opt-in write tools.

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

一个本地 MCP 服务器,把助手连接到 Weeek 工作区,可读取项目、任务、看板、成员和标签,并可选择启用任务写入工具。

可以做什么
检查传输健康状态并确认令牌对应的 Weeek 用户,列出并读取项目及其描述,按筛选和分页列出任务,或按 id 获取单个任务,列出工作区成员、标签、看板及按顺序排列的看板列,仅在启用写入后,创建、编辑、移动和完成任务,或在自定义字段中记录合并/拉取请求链接。
适用场景
适合让 Claude Desktop、Claude Code、Cursor 或 Cline 等 AI 客户端在对话中直接查询 Weeek 项目和任务。只有当你确实希望助手修改令牌可访问的工作区中的任务时,才启用写入工具。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node 20 或更高版本,无需克隆或构建。必须在 WEEEK_ACCESS_TOKEN 中提供 Weeek Public API v1 访问令牌,否则服务器拒绝启动。可选设置包括 WEEEK_BASE_URL、WEEEK_TIMEOUT_MS、READ_ONLY、ENABLED_TOOLS、MAX_RESPONSE_CHARS 和 LOG_LEVEL。需要能访问 Weeek API 的网络。
安装前请注意
该令牌可访问其权限范围内的全部工作区内容,请将其指向你愿意被修改的工作区。写入默认关闭;将 READ_ONLY 设为 false 会暴露五个修改类工具,且服务器端没有确认步骤。创建任务无法通过本服务器撤销,重试创建会生成第二个任务;移动或更新任务会覆盖助手从未见过的原值。建议通过 ENABLED_TOOLS 一次只启用一个写入工具。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Weeek Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

weeek-mcp

Local, read-only-by-default MCP server for Weeek — with opt-in write tools.

[npm version] [npm downloads] [CI] [License: MIT] [MCP]

Русская версия README

weeek-mcp connects AI clients (Claude Desktop, Claude Code, Cursor, MCP Inspector) to your Weeek workspace over stdio. It is read-only by default — a default install can list projects, tasks, boards, members and tags but change nothing — and exposes five write tools only when you opt in with READ_ONLY=false. Runs on Node ≥ 20; install with npx, no clone or build required.

Why this one

  • On npm. npx -y weeek-mcp works today — no clone, no build, no absolute paths.
  • Read-only by default, with composable gates. Writes are simply not registered unless you opt in; ENABLED_TOOLS whitelists a subset and MAX_RESPONSE_CHARS caps every payload. Server-side, not client convention.
  • Bilingual. Full EN ↔ RU documentation parity.
  • Granular error model. Nine distinct error codes with agent-readable messages, so a model knows when to retry versus give up without parsing prose.

Quickstart

The recommended install path is npx — no clone, no build. Drop examples/claude_desktop.mcp.json into your MCP client config, replace YOUR_WEEEK_TOKEN_HERE with a real token from https://app.weeek.net/ws/_/settings/apps/api, and restart the client:

json
{  "mcpServers": {    "weeek": {      "command": "npx",      "args": ["-y", "weeek-mcp"],      "env": {        "WEEEK_ACCESS_TOKEN": "YOUR_WEEEK_TOKEN_HERE"      }    }  }}

npx downloads weeek-mcp on first launch and caches it. Cursor and Cline use the same mcpServers shape — see examples/cursor.mcp.json and examples/cline.mcp.json. Other env vars have safe defaults; override only what you need (see Configuration). If npx cannot find node (typical with nvm), see Troubleshooting; for a zero-dependency smoke test see docs/smoke.md.

examples/ lives on GitHub only — the npm tarball ships dist/ + README.md + README.ru.md + LICENSE.

Tools

Ten read tools are exposed by default. All fifteen appear only under READ_ONLY=false (see Enabling write tools).

Read toolReturns
pingpong: <msg> — transport health check, no API call, no token
weeek_get_methe authenticated user (id, email, name) — confirms the token
weeek_list_projectsevery project visible to the token
weeek_get_projecta single project by id, including its description
weeek_list_tasksone page of tasks (filters + offset/per_page pagination)
weeek_get_taska single task by id, with multi-assignee fields
weeek_list_membersevery workspace member
weeek_list_tagsevery tag
weeek_list_boardsevery board in a project
weeek_list_board_columnsevery column of a board, in sort order
Write tool (READ_ONLY=false)Does
weeek_complete_taskflips the completion flag; completed: false re-opens
weeek_move_taskmoves a task to a board column (a column is a status)
weeek_create_taskfiles a new task and returns it with its new id
weeek_update_taskedits title / priority / type / due date
weeek_set_task_mr_linkrecords a merge/pull-request URL in a custom field

Full field-level reference (inputs, outputs, edge cases, truncation, multi-assignee) → docs/tools.md.

Enabling write tools

The default install cannot change anything in your workspace. All five mutating tools are hidden behind READ_ONLY (default true) — not registered, so they never appear in tools/list. Setting READ_ONLY=false takes tools/list from ten tools to fifteen and lets the agent create, edit, move and complete tasks in the workspace the token can reach. There is no server-side confirmation step — annotations are a hint an MCP client is free to ignore. Point the token at a workspace whose contents you are willing to see changed.

json
"env": {  "WEEEK_ACCESS_TOKEN": "YOUR_WEEEK_TOKEN_HERE",  "READ_ONLY": "false"}

Start with one tool, not five. READ_ONLY=false intersected with ENABLED_TOOLS gives you writes on, but only the one you asked for:

json
"env": {  "WEEEK_ACCESS_TOKEN": "YOUR_WEEEK_TOKEN_HERE",  "READ_ONLY": "false",  "ENABLED_TOOLS": "weeek_complete_task"}

READ_ONLY is the outer gate: naming a write tool in ENABLED_TOOLS does not by itself opt into writes. The allowlist is not additive, so list the read tools you need alongside it — examples/claude_desktop.write.mcp.json is a ready-to-edit config that does exactly that.

What each write tool can and cannot do

ToolChangesUndone bydestructiveHintidempotentHint
weeek_complete_taskone completion flagre-firing with completed: falsefalsetrue
weeek_set_task_mr_linkone custom field's valuere-setting itfalsetrue
weeek_move_taskthe task's board column (and board)moving it back — if you know where it wastruefalse
weeek_update_tasktitle / priority / type / due datere-setting each field — if you know the old valuetruefalse
weeek_create_taskfiles a new taskdeleting it, which this server cannot dotruefalse

The three true rows are marked "worth a human confirm" because the agent never saw the old value and cannot put it back; weeek_create_task is the one to watch — its effect cannot be undone through this server, and a retried create files a second task. weeek_set_task_mr_link resolves its custom field by name unless you pass custom_field_id / custom_field_name — the matched names and ambiguity rules are in docs/tools.md.

Configuration

Read from the environment at startup and validated with zod; invalid values abort startup on stderr with a non-zero exit code. The server never reads a .env file itself — pass variables through your MCP client's env block or your shell.

VariableRequiredDefaultPurpose
WEEEK_ACCESS_TOKENyes—Personal Weeek API token (≥ 20 chars; placeholders and whitespace-padded values are rejected).
WEEEK_BASE_URLnohttps://api.weeek.net/public/v1Base URL for the Weeek HTTP client. Override for self-hosted proxies.
WEEEK_TIMEOUT_MSno30000Per-request timeout (ms). Positive integer.
READ_ONLYnotrueHide write tools. When true, any tool whose readOnlyHint !== true is not registered. Accepts true/false/1/0.
ENABLED_TOOLSno(unset = all)Comma-separated allowlist of tool names, still intersected with READ_ONLY. Unknown names WARN; an empty result aborts startup.
MAX_RESPONSE_CHARSno65536Byte budget per response; over-budget payloads are clipped and flagged truncated: true. Min 1024, max 1000000.
LOG_LEVELnoinfoLogger threshold: debug, info, warn, error. Unknown values fall back to info.

Both gates run server-side: a hidden tool is not registered, so an agent cannot call it. READ_ONLY is load-bearing — leave it at the default unless you intend an agent to change your workspace. See .env.example for a copy-pasteable template.

Troubleshooting

SymptomLikely causeFix
Server doesn't appear in the clientcommand points at a node the client cannot find, or dist/index.js is missing/non-executableRun npm run build; confirm ls -la dist/index.js shows 0755. Use the absolute path from which node (see NVM note below).
MCP server failed to start immediatelySame as above, plus node_modules missingRun npm install && npm run build from the repo root.
invalid env: WEEEK_ACCESS_TOKEN: ... on stderrToken contains whitespace/control chars, or is the placeholderGenerate a real token at https://app.weeek.net/ws/_/settings/apps/api and paste it without surrounding spaces or newlines.
invalid env: WEEEK_BASE_URL: ...URL uses a non-http(s) scheme or contains user:pass@Use plain https://api.weeek.net/public/v1; route credentials through WEEEK_ACCESS_TOKEN.
EACCES launching dist/index.jspostbuild chmod skippedchmod +x dist/index.js.
npm start works but the client failsThe client launches under a different PATH than your shellSee the NVM workaround below.
NVM workaround — spawn npx ENOENT / spawn node ENOENT

Claude Desktop and Cursor launch their MCP subprocess under a non-interactive shell that does not source ~/.nvm/nvm.sh, so a bare "command": "npx" silently fails when Node is installed via nvm. Either hard-code an absolute path — run which npx and paste the result as command (update it whenever you switch nvm version); the package is still downloaded and cached on first run:

json
{ "command": "/Users/<you>/.nvm/versions/node/v20.18.0/bin/npx", "args": ["-y", "weeek-mcp"] }

— or point command at a small wrapper script that sources ~/.nvm/nvm.sh before exec npx "$@", which survives nvm version changes.

Errors

Every Weeek tool fails the same way: isError: true with a single-line <tool> failed (<weeek_code>): <one English sentence>. The weeek_<code> token is the stable, machine-greppable contract; the sentence guides self-correction. Nine codes cover unauthorized / forbidden / not-found / validation / rate-limit / server / network / timeout / invalid-response, each with retry guidance.

weeek_get_task failed (weeek_not_found): Weeek returned 404 for this resource. Verify the id exists in the configured workspace and was not deleted.weeek_list_tasks failed (weeek_rate_limited): Weeek rate-limited the request (HTTP 429). Retry after a brief delay or reduce the call frequency.

Full table with retry semantics → docs/errors.md.

Contributing · Security · License

  • Contributing — issues and feature requests are welcome; pull requests are by prior agreement (this repo runs a strictly linear increment process). See CONTRIBUTING.md.
  • Security — found a way to leak the token or a byte on stdout? Do not open a public issue; see SECURITY.md for the private channel and threat model.
  • License — MIT.
  • For AI coding agents — the entry-point contract (invariants, pinned deps, pre-merge checklist) lives in CLAUDE.md.

CONTRIBUTING.md, SECURITY.md and CLAUDE.md live on GitHub only — like examples/, they are not in the npm tarball. LICENSE is the exception: it ships inside the package.

来源:README.md,提交 d82ce35

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

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

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