Skip to main content
Glama

planka-mcp

通过 15 个 MCP 工具,从 Claude Code 控制 Planka 2.x 看板。 写入操作会被重新读取并验证,因此报告的成功与看板实际状态一致。 一个可选工作流可将该看板转化为代理工作的持久记忆。

Leer en español

You talk to Claude Code
          │
          ▼
  planka-mcp (stdio) ─── HTTPS + JSON ───▶ Planka 2.x
          │                                  │
          └──── reads the result back ◀──────┘

[!WARNING] 旧的 @gogogadgetbytes/planka-mcp 包可能在 Planka 2.x 上报告成功,但实际上 什么都没做。在替换现有安装之前,请先阅读四个静默失败陷阱。

刚接触 MCP?请先阅读本节

MCP 是一种标准,它允许 Claude Code 调用由另一个程序提供的工具。 本仓库运行一个本地小程序,将这些工具调用转换为 Planka API 请求。 它需要 Planka 凭据,因为它以专用 Planka 用户的身份运行,而不是以 Claude 本身的身份。 凭据保留在您的机器上,绝不会写入项目级的 .mcp.json 文件。 Claude Code 在会话启动时加载 MCP 服务器,因此在设置或配置更改后请重启它。

Related MCP server: kanban-mcp

要求

  • Node.js 18 或更高版本以及 npm

  • 一个可访问的 Planka 2.x 实例

  • 一个可以看到目标项目和看板的专用 Planka 用户

  • 已安装并可作为 claude 使用的 Claude Code

  • 仅当设置需要创建看板时,才需要项目管理员角色

支持 Linux 和 macOS。不需要 Bun 运行时。

5 分钟安装

克隆仓库并运行引导式安装程序:

git clone https://github.com/omnicoreos/planka-mcp.git
cd planka-mcp
./scripts/setup.sh

设置过程会询问 Planka URL、代理邮箱或用户名以及密码。它会在写入配置之前 验证这些凭据,让您选择或创建看板,然后运行一次真实的创建/标签/评论/删除冒烟测试。

它提供两种 Claude Code 配置:

选项

使用场景

存放位置

claude mcp add

您想要最简单的个人设置

Claude Code 用户配置

项目 .mcp.json

团队应共享服务器条目

<YOUR_PROJECT>/.mcp.json,可安全提交

在两种情况下,设置都会将凭据存储在 Git 之外的 ~/.config/planka-mcp/config.json 中,权限为 0600,并创建私有启动器 ~/.local/bin/planka-mcp。生成的团队配置不包含密码:

{
  "mcpServers": {
    "planka": {
      "type": "stdio",
      "command": "${HOME}/.local/bin/planka-mcp",
      "args": []
    }
  }
}

安装程序可以安全地重新运行。它会更新 planka 条目,复用现有的 工作流列表和标签,并删除其临时冒烟测试卡片。

验证是否正常工作

首先,检查 Claude Code 的配置:

claude mcp list
claude mcp get planka

然后完全重启 Claude Code。如果您选择了 .mcp.json,请在该 项目中打开 Claude Code,并在提示时批准项目级服务器。

向 Claude Code 提问:

Show me my Planka projects and boards. In the Pending list, create a card named
"MCP is working" with the description "Created from Claude Code", then read it back.

如果 Claude 看不到这些工具,请先重启,然后按照 故障排除 进行操作。

15 个工具

ID 是字符串。从 planka_get_structure 开始,然后使用 Planka 返回的 ID;不要猜测它们。

工具

功能

planka_get_structure

列出可见的项目、看板和列表

planka_get_board

读取一个看板及其列表、卡片、标签,以及可选的任务计数

planka_create_card

创建卡片,并可附加任务和标签

planka_get_card

读取完整的卡片详情

planka_update_card

更新标题、描述、截止日期或完成状态

planka_move_card

将卡片移动到另一个列表或位置

planka_delete_card

永久删除卡片

planka_create_tasks

向卡片添加清单任务

planka_update_task

重命名或完成任务

planka_delete_task

删除任务

planka_manage_labels

创建、更新或删除看板标签

planka_set_card_labels

添加或移除标签,并验证最终状态

planka_add_comment

通过 Planka 2.x 的专用端点添加评论

planka_get_comments

通过专用端点读取评论

planka_manage_lists

创建、更新或删除看板列表

每个工具的每个输入字段和完整负载都位于 工具参考 中。

可选代理工作流

MCP 服务器可以独立工作。可选方法解决的是另一个问题: 在代理会话之间保留工作存在的原因、发生的变化以及仍然成立的事实。

分层采用:

  1. 仅使用 MCP 工具。

  2. 添加看板状态、卡片模板和人工握手。

  3. 为每张卡片添加一个工作树,由主管协调工作进程。

从一个能跨越会话存活的看板开始。 看板模板、可复制的 Claude Code 技能 以及可选的 工作树辅助工具 都是独立的组件。

故障排除

报告错误时,请包含 Planka 版本、Node 版本、工具名称 和错误文本。切勿粘贴凭据或访问令牌。

致谢与许可证

这是 gogogadgetbytes/planka-mcp 的 MIT 许可分支,而非从零开始的原创实现。有关 上游归属、维护的修复和未答复的拉取请求,请参阅 CREDITS.md。

有关原始和当前贡献者声明,请参阅 LICENSE。

开发

npm ci
npm run build
npm test

真实的冒烟测试是可选加入的,因为它会修改一个可写看板,然后自行清理:

export PLANKA_BASE_URL="https://planka.example.com"
export PLANKA_AGENT_EMAIL="agent@example.com"
export PLANKA_AGENT_PASSWORD="<YOUR_PASSWORD>"
export PLANKA_SMOKE_BOARD_ID="1234567890123456789"
npm run test:smoke

在提交更改之前,请参阅 CONTRIBUTING.md。发布身份 集中在 project.identity.json 中;在您自己的命名空间下发布之前, 请更新它并运行 npm run sync:identity。

Available Tools

15 tools
planka_add_commentA

Add a comment to a card. Use this for status updates, notes, or agent activity logs.

Inputs: text (required), cardId (required).

planka_create_cardA

Create a new card on a board. Optionally add tasks (checklist items) at the same time.

Inputs: name (required), listId (required), tasks, dueDate, +2 more.

planka_create_tasksA

Add one or more tasks (checklist items) to a card.

Inputs: tasks (required), cardId (required).

planka_delete_cardA

Permanently delete a card. This cannot be undone.

Inputs: cardId (required).

planka_delete_taskA

Delete a task from a card.

Inputs: taskId (required).

planka_get_boardA

Get a board with all its lists, cards, and labels. Use this to see everything on a board.

Inputs: boardId (required), includeTaskCounts.

planka_get_cardA

Get full details of a card including tasks, comments, labels, and attachments.

Inputs: cardId (required).

planka_get_commentsA

Get all comments on a card.

Inputs: cardId (required).

planka_get_structureA

Get the full project/board/list structure. Use this to understand what projects and boards exist before working with cards.

Inputs: projectId.

planka_manage_labelsB

Create, update, or delete labels on a board.

Inputs: action (required), name, color, boardId, +1 more.

planka_manage_listsA

Create, update, or delete lists on a board.

Inputs: action (required), name, type, listId, +2 more.

planka_move_cardA

Move a card to a different list or position. Use this for workflow transitions (e.g., 'To Do' -> 'In Progress').

Inputs: cardId (required), listId (required), position.

planka_set_card_labelsA

Add or remove labels from a card. Pass label IDs from the board (planka_get_board lists them), not label names. Reports what actually landed on the card, verified by re-reading it.

Inputs: cardId (required), labelIds, addLabelIds, removeLabelIds.

planka_update_cardB

Update a card's properties (name, description, due date, completion status).

Inputs: cardId (required), name, dueDate, description, +1 more.

planka_update_taskB

Update a task's name or completion status.

Inputs: taskId (required), name, isCompleted.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools have clearly distinct resource-action pairs, but planka_get_structure and planka_get_board overlap in what they return, and manage_lists/manage_labels bundle multiple operations while set_card_labels is narrow. Overall, the descriptions resolve most ambiguity.

    Naming Consistency4/5

    The planka_ prefix and snake_case verb_noun pattern are consistent and readable. The use of 'manage' for lists and labels is a slight deviation from the more specific create/update/delete verbs, but not confusing.

    Tool Count5/5

    15 tools is at the upper edge of the ideal range but each tool represents a distinct operation needed for board, card, task, label, and comment management. No tool feels redundant.

    Completeness4/5

    The toolkit covers the core lifecycle for cards, tasks, labels, and lists, plus comments and board structure reading. Missing comment update/delete and board-level CRUD are minor gaps that agents can work around.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers