hermes-agent-kanban-mcp
Provides tools to manage the Hermes Agent kanban board (list, get, create, link, comment, and update status) and to read Hermes session history from a profile's session store.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hermes-agent-kanban-mcp Show me the ready cards on my work profile."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hermes-agent-kanban-mcp
An MCP (Model Context Protocol) server over stdio that lets any MCP client read and manage the hermes-agent kanban board and browse its session history.
Contents
Related MCP server: Terminal MCP Server
Why this exists
Hermes' own MCP mode is the mcp-serve plugin (hermes plugins install mcp-serve, formerly built into core as hermes mcp serve). Its catalog entry describes it as messaging-centric — list and read conversations, poll events, send messages, answer approvals — and states that "terminal, file and kanban tools are never exposed". There is therefore no official MCP path to board management. Session browsing in a machine-readable form (listing with metadata, last N messages) is not part of it either. This server fills exactly those two gaps: every kanban write goes through the official hermes CLI via child_process.execFile — never a shell, never direct database writes — and the session store is opened strictly read-only.
Requirements
Node.js >= 22.5 (uses the built-in
node:sqlitemodule; also declared inpackage.jsonengines)Hermes Agent CLI installed and working (
hermes --version)The Hermes profiles you want to drive must exist in the Hermes home — that is the only gate; there is no list of profiles to configure up front
Installation
git clone https://github.com/monswyk/hermes-agent-kanban-mcp.git
cd hermes-agent-kanban-mcp
npm installThe only runtime dependencies are @modelcontextprotocol/sdk and zod.
Quick start
Clone and install as above; verify with
node --version(>= 22.5).Point an MCP client at the server, for example Claude Desktop (see Client setup) or any stdio MCP launcher running
npm start.Make the first call —
profiles_listtakes no arguments and returns the profiles that exist right now:
{}{ "profiles": ["default", "researcher-a"] }If the list is empty or a profile is missing, check HKM_HERMES_HOME (see Configuration).
Configuration
All configuration happens through environment variables:
Variable | Required | Default | Meaning |
| no |
| Path to the hermes binary used for every |
| no | auto-detect | Hermes home root: it holds |
| no |
| Timeout per hermes invocation. Must be an integer between 100 and 600000; anything else makes the server exit at startup with |
Auto-detection order for the Hermes home: HKM_HERMES_HOME → a plausible HERMES_HOME of the running process (if it points inside a profiles/<name> directory, the parent root is used) → ~/.hermes.
The profile is not configured at all. Every tool call carries a profil argument and the server acts on that profile's kanban. On each call it checks that the name is well-formed and that the profile really exists in the Hermes home, exactly as hermes itself decides (profiles/<name> directory with an identity marker — one of config.yaml, .env, SOUL.md, profile.yaml, auth.json, state.db — and no delete tombstone under profiles/.deleted/; default is the root itself). A profile created after the server started is usable immediately — no restart, no reconfiguration. profiles_list shows what currently exists.
Tool reference
Eleven tools are exposed. Every result arrives as a single text content block: successful calls pretty-print JSON (2-space indent) or pass through hermes' stdout line for line; when a write subcommand succeeds without printing anything, the server returns a synthesized ok: … line rather than an empty block; failed calls arrive with the MCP error flag set and one plain-text message. The tables below list each argument's type, whether it is required, and its limits as enforced in src/validate.js and src/index.js.
Common patterns: profil always matches ^[A-Za-z0-9_][A-Za-z0-9_-]{0,63}$; task ids match the same pattern; a value that starts with - is never a valid name or id.
kanban_list
Argument | Type | Required | Limits |
| string | yes |
|
| string | no | one of |
Hermes command: hermes -p <profile> kanban list [--status=<status>] --json.
Returns: JSON array of task objects.
{ "profil": "default", "status": "ready" }[ { "id": "t_1", "title": "One", "status": "ready", "…": "…" } ]kanban_get
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| string | yes | id pattern |
| boolean | no | default |
Hermes command: hermes -p <profile> kanban show --json -- <id>.
Returns: one task view (task, latest_summary, parents, children, comments, events, runs). Heartbeat events are dropped by default and their count reported as heartbeats_omitted; heartbeats: true keeps hermes' output untouched. A card without heartbeat events is returned unchanged.
{ "profil": "default", "id": "t_1" }{
"task": { "id": "t_1", "title": "One", "status": "running", "…": "…" },
"parents": ["t_p"],
"children": [],
"comments": [ { "author": "a", "body": "b" } ],
"events": [ { "kind": "created" }, { "kind": "claimed" } ],
"heartbeats_omitted": 3
}kanban_create
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| string | yes | 1–200 characters |
| string | no | ≤ 10000 characters |
| string | no | id pattern; hermes decides whether the name can be assigned |
| string[] | no | each entry matches the id pattern |
| string | no | one of |
| string | no | one of |
| string | no | only with |
Hermes command: hermes -p <profile> kanban create [--body=…] [--assignee=…] [--parent=…]… [--workspace=scratch|worktree|dir:<pfad>] [--triage | --initial-status=blocked] --json -- <titel>.
Returns: JSON object of the created task.
{ "profil": "default", "titel": "Write changelog", "zugewiesen_an": "writer" }{ "id": "t_new", "title": "Write changelog", "status": "ready", "…": "…" }Parked cards — create, flesh out, release. A card with an assignee normally lands in ready and the dispatcher starts it right away. To prepare a card first, park it at creation: startstatus: "blocked" (--initial-status=blocked) or startstatus: "triage" (--triage) — both keep the card out of reach even together with an assignee. Flesh it out with kanban_edit (title/body can be replaced in every non-archived status) and kanban_comment. The release path then depends on the park option. A blocked card is released from this server via kanban_set_status to ready (hermes promote accepts todo and blocked). A triage card has no release path through this server: promote refuses it (cannot promote <id>: task is 'triage'; promote only applies to 'todo' or 'blocked') and kanban_assign never changes status, so the only way out of triage is hermes' own specifier automation (hermes kanban specify, deliberately not wrapped here). If you want to release the card yourself, park it as blocked. A card created with an unfinished parent lands in todo on its own and is promoted automatically when the parents complete — that is hermes' only path into todo, which is why startstatus: "todo" is refused with guidance instead of inventing one.
Workspaces. Without arbeitsbereich hermes keeps its default (scratch; on a project-scoped board the project's worktree). worktree asks for a git worktree; this server never sends a path with it because hermes does not expect one there. dir runs the worker in an existing directory given via pfad.
kanban_link
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| string | yes | id pattern |
| string | yes | id pattern |
Hermes command: hermes -p <profile> kanban link -- <eltern_id> <kind_id>.
Returns: hermes' stdout line as plain text.
{ "profil": "default", "eltern_id": "t_p", "kind_id": "t_c" }Linked t_p -> t_ckanban_comment
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| string | yes | id pattern |
| string | yes | 1–10000 characters |
Hermes command: hermes -p <profile> kanban comment -- <id> <text>.
Returns: hermes' stdout line as plain text.
{ "profil": "default", "id": "t_1", "text": "Blocked on API keys." }Comment added to t_1kanban_assign
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| string | yes | id pattern |
| string | yes | profile name or |
Hermes command: hermes -p <profile> kanban assign -- <id> <zugewiesen_an>.
Assigns or reassigns without touching the status — a parked card stays parked. Refused while the card runs under a live claim (hermes rejects it; the error is passed through).
{ "profil": "default", "id": "t_new", "zugewiesen_an": "worker" }Assigned t_new to workerkanban_edit
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| string | yes | id pattern |
| string | no | 1–200 characters |
| string | no | ≤ 10000 characters; replaces the whole body (hermes has no append) |
At least one of titel/beschreibung is required. Hermes command: hermes -p <profile> kanban edit [--title=…] [--body=…] -- <id>. Works in every non-archived status — the way to flesh out a parked card before releasing it.
{ "profil": "default", "id": "t_new", "beschreibung": "Full spec with acceptance criteria." }Edited t_newkanban_set_status
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| string | yes | id pattern |
| string | yes | one of |
Hermes command per target: ready → kanban promote -- <id>, review → kanban request-review -- <id>, done → kanban complete -- <id>, blocked → kanban block -- <id>.
Returns: hermes' stdout line as plain text.
No subcommand moves an existing card to todo or into triage, so the tool refuses both with an error naming the real path instead of faking it: park at creation (kanban_create with startstatus) for triage, link an unfinished parent (hermes parks the child in todo itself) — and release parked blocked/todo cards back to ready. A card parked in triage can only be moved by hermes' own specifier (hermes kanban specify, not wrapped here).
{ "profil": "default", "id": "t_1", "status": "done" }Completed t_1sessions_list
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| integer | no | default 20, range 1–200 |
No hermes call: read-only query of the profile's SQLite session store (state.db).
Returns: JSON array of {id, source, started_at, last_activity_at, first_task_line, message_count}; timestamps are ISO-8601 seconds, first_task_line is the first user line capped at 200 characters.
{ "profil": "default", "limit": 5 }[ { "id": "local-3f2a…", "source": "cli", "started_at": "2026-11-28T21:04:11Z",
"last_activity_at": "2026-11-28T22:31:02Z", "first_task_line": "Summarize the log.",
"message_count": 42 } ]session_read
Argument | Type | Required | Limits |
| string | yes | as above, must exist |
| string | yes |
|
| integer | no | default 5, range 1–100 |
No hermes call: read-only query of the same store.
Returns: {session_id, messages} with each message as {role, text, time}; each text is truncated at 20000 characters with a [truncated] marker appended when cut.
{ "profil": "default", "session_id": "local-3f2a…", "letzte_n": 2 }{
"session_id": "local-3f2a…",
"messages": [
{ "role": "user", "text": "Summarize the log.", "time": "2026-11-28T21:04:15Z" },
{ "role": "assistant", "text": "Three findings…", "time": "2026-11-28T21:04:58Z" }
]
}profiles_list
No arguments. No hermes call: read-only listing of the profiles that exist in the configured Hermes home (default plus every live profiles/<name>). Names that would not pass the profil pattern are skipped because they could never be used in a call.
Returns: {profiles: [...]}.
{}{ "profiles": ["default", "researcher-a"] }Argument names
The argument names of this server are German and must be passed exactly as written — they are part of the tool schema and are not renamed in code. This table maps them to English:
Argument | English meaning |
| profile |
| title |
| description |
| assignee (in |
| parents |
| parent id |
| child id |
| last n |
| start status (parking at creation) |
| workspace kind |
| path |
All other arguments (id, status, text, session_id, limit, heartbeats) are English already.
Security model
Profile exists, per call. Every tool takes a
profilargument. The name is checked against the pattern and then against the filesystem: it must be a profile that actually exists in the Hermes home (default= the root itself). A name that fails either check returnsinvalid argument: unknown profile '<name>'and hermes is never invoked. There is no allow-list to maintain and nothing to restart when a new profile appears — but equally, no profile can be reached before it exists.Strict validation. Profiles and ids match
^[A-Za-z0-9_][A-Za-z0-9_-]{0,63}$(session ids up to 128 characters because real Hermes session ids are longer); statuses are checked against fixed lists; texts are capped (title 200, description/comment 10000 characters). A workspacepfadmust be absolute, contain no..segment and name an existing directory — all checked before hermes is invoked. A value that starts with-(--help,--json,-x) is never a valid id, profile or session id and is rejected before anything is invoked.No option injection. Values reach the hermes CLI so they can never be mistaken for flags: every option with a value travels as one single argument (
--body=…,--assignee=…,--status=…,--parent=…), and free text (a task title, a comment body) is placed after a literal--, which the parser treats as "end of options". A title such as--helptherefore arrives as a plain value. Empty titles and comments are rejected.No shell. Hermes is invoked exclusively via
execFilewith an argv array (shell: false). An argument like"; rm -rf …"stays a single inert string token.Environment isolation. Child processes receive only
PATHandHOME— plusHERMES_HOMEif (and only if) the operator explicitly setHKM_HERMES_HOME. No other environment variable ever reaches hermes.No destructive tools. There is no delete, unlink, archive or gc tool; writes are limited to create, link, comment, assign, edit (title/body replacement) and the four supported status transitions.
Read-only sessions. The session store is opened with
readOnly: true(SQLITE_OPEN_READONLY); nothing else in the code base touches files beyond the profile-existence checks.Bounded output. Each hermes call is bounded by
HKM_TIMEOUT_MS(default 30 s) and its stdout/stderr each capped at 50000 characters — a[truncated]marker is appended when cutting. Session message text is capped at 20000 characters, and heartbeat events are omitted from card reads by default.Sanitized errors. Hermes error texts are returned unchanged except lines that point at SSH or private-key material (replaced with
[redacted]); environment values are never echoed.
Client setup
Local: Claude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"hermes-kanban": {
"command": "node",
"args": ["/absolute/path/to/hermes-agent-kanban-mcp/src/index.js"],
"env": {
"HKM_HERMES_BIN": "hermes"
}
}
}
}If your Hermes home is not ~/.hermes, add "HKM_HERMES_HOME": "/path/to/hermes/home".
Remote: Hermes on another machine, server inside a container
The MCP transport is plain stdio, so the client can start the server through SSH and run it inside a Docker container with docker exec -i (no port exposed; stdin/stdout travel over the SSH channel):
{
"mcpServers": {
"hermes-kanban-remote": {
"command": "ssh",
"args": [
"-T",
"user@hermes-host",
"docker exec -i -e HKM_HERMES_HOME=/path/to/hermes/home container-name node /path/to/hermes-agent-kanban-mcp/src/index.js"
]
}
}
}-T disables pseudo-terminal allocation so the channel stays clean JSON-RPC. The remote command runs through the remote shell, so pass server configuration to the container with docker exec -e KEY=VALUE … — a local "env" block would only apply to the ssh process itself. All names above are placeholders; substitute your own host, container and paths.
Optionally, one SSH key can serve several servers: in authorized_keys, restrict the key line with command="/path/to/route.sh" and let that script inspect $SSH_ORIGINAL_COMMAND (or a marker argument) to pick which server or container to start. This keeps each client pinned to one entry point while sharing a single key — again, placeholders only; do not reuse names from any real environment in public docs.
Limitations and honest notes
kanban_set_statuscannot settodoortriage: no hermes subcommand moves an existing card into either column (promoteonly acceptstodo/blockedas sources). The tools refuse them with explanatory errors and name the real paths — park at creation viastartstatus, or link an unfinished parent so hermes parks the child intodoitself.Hermes' own triage-fleshing automation (
hermes kanban specify) drives an auxiliary LLM inside Hermes; it is deliberately not wrapped here. A card parked intriagetherefore has no release path through this server at all (promoterefuses triage,assignleaves the status untouched): flesh out a parked card withkanban_edit, and park it asblockedif you want to release it yourself viaready.The optional path form of hermes' workspace flag (
worktree:<path>) is not exposed:arbeitsbereich: "worktree"always lets hermes choose the worktree location; onlydirtakes apfad.Board selection is not exposed, and there is nothing to expose: hermes keeps its boards in the shared Hermes root (
kanban/boards, active slug inkanban/current), deliberately not per profile. Every tool call therefore works on the one currently active board, whichever profile it names — switching a board (hermes kanban boards switch) changes it for all profiles at once.Profile names are matched exactly as given. The hermes CLI normalizes its
-pargument to lowercase; this server does not, soAlphais refused unless a profile by that exact name exists (fail closed rather than guessing).completeis called without--result/--summary; usekanban_commentto record outcomes before closing a card.Session reading depends on the current Hermes store layout (
sessionsandmessagestables inprofiles/<name>/state.db, orstate.dbin the root for profiledefault). Missing optional columns are probed, but a future schema redesign may need an update.Opening a WAL-mode store read-only requires its
-shmfile to be present — true for any live Hermes install.
Troubleshooting
invalid argument: unknown profile '<name>'— the name is well-formed but no such profile exists in the Hermes home right now. Callprofiles_listto see what does exist, or setHKM_HERMES_HOMEif the root was auto-detected wrongly.invalid argument: …— a validation rule rejected the call (pattern, length cap, status list). The message names the offending rule, e.g.titel exceeds 200 characters.hermes timeout: hermes timed out after <N> ms— the hermes invocation exceededHKM_TIMEOUT_MS; raise it if the operation is legitimately slow.hermes spawn: could not start hermes binary: <bin>—HKM_HERMES_BINpoints at a missing binary, or a bare name is not on the child'sPATH. The child receives onlyPATH,HOME(and optionallyHERMES_HOME).hermes failed: …— hermes exited non-zero; the message carries its sanitized stderr.no session store found for profile '<name>'/session '<id>' not found in store of profile '<profile>'— sessions tools readstate.db; check that the profile has one and that the id is complete.Server exits at startup on Node.js < 22.5 —
node:sqlitedoes not exist there; upgrade Node. An invalidHKM_TIMEOUT_MSlikewise exits with its rule text.Startup confirmation line — a healthy start prints
hermes-agent-kanban-mcp: serving on stdio (profile given per call, hermes bin: …)on stderr.
Development
src/index.js MCP server entry point: tool schemas, registration, result shaping
src/config.js startup configuration from the environment (no profile config)
src/validate.js shared validation rules: patterns, status lists, length caps
src/profiles.js read-only profile resolution and existence checks
src/hermes.js the only place hermes is invoked (execFile, no shell), truncation, error sanitizing
src/tools.js eleven tool handlers mapping onto hermes subcommands or store queries
src/sessions.js read-only SQLite access to the session store
test/helpers.mjs staged stub binaries and a fixture session store for tests
test/fixtures/stub.mjs single stand-in source; behaviour is chosen by file name
test/config.test.mjs environment parsing, timeout bounds, home auto-detection
test/hermes.test.mjs argv building, truncation, timeouts, sanitizing, no-shell proof
test/profiles.test.mjs existence rules: markers, tombstones, default = root
test/sessions.test.mjs store queries against a fixture database
test/tools.test.mjs every tool's mapping and return shape against the stub
test/validate.test.mjs each pattern, list and cap in isolation
test/integration.test.mjs end-to-end MCP handshake over stdioRun the suite with npm test (node --test). Hermes is replaced by a stub binary wired in via HKM_HERMES_BIN: one source file (test/fixtures/stub.mjs) is copied to mode-specific names such as stub-kanban.mjs, and it picks its behaviour from its own file name — so no extra environment variables are needed, which matters because the child process only receives PATH and HOME. Profiles in tests are plain directories with an identity marker inside a temporary Hermes home. The current suite reports 68 tests, 68 pass. See docs/development.md for the change log.
License
MIT — see LICENSE. Copyright (c) 2026 Monswyk AG.
Release history: CHANGELOG.md. Security policy: SECURITY.md.
Available Tools
11 toolskanban_assignA
Assign or reassign a card to a profile without changing its status (pass 'none' as zugewiesen_an to unassign); hermes refuses while the card is running under a claim.
Inputs: id (required), profil (required), zugewiesen_an (required).
kanban_commentC
Append a comment to a card.
Inputs: id (required), text (required), profil (required).
kanban_createA
Create a kanban card (title required; body, assignee and parents optional). Optional startstatus parks the new card out of the dispatcher's reach; both park options work together with an assignee. The release path depends on the option: 'blocked' (--initial-status=blocked) is released from this server via kanban_set_status ready (hermes promote accepts todo/blocked); a 'triage' card (--triage) has no release path here — hermes refuses to promote it and kanban_assign never changes status, so only hermes' own specifier automation (hermes kanban specify, not wrapped by this server) moves it; pick 'blocked' if you want to release the card yourself. Optional arbeitsbereich scratch|worktree|dir selects the workspace kind; for 'dir' pfad (absolute, existing directory) is required.
Inputs: titel (required), profil (required), pfad, eltern, +4 more.
kanban_editB
Replace the title and/or body of an existing card (at least one of the two; works in every non-archived status, so a parked card can be fleshed out before release).
Inputs: id (required), profil (required), titel, beschreibung.
kanban_getA
Show one card with its comments, parents/children links and events. Heartbeat events are omitted by default; the answer then carries their count in 'heartbeats_omitted'. Pass heartbeats=true for the complete event list.
Inputs: id (required), profil (required), heartbeats.
kanban_linkC
Add a parent->child dependency between two cards.
Inputs: profil (required), kind_id (required), eltern_id (required).
kanban_listC
List kanban cards of a Hermes profile, optionally filtered by status.
Inputs: profil (required), status.
kanban_set_statusA
Move a card to another status. Mapping: ready=promote, review=request-review, done=complete, blocked=block. 'todo' and 'triage' are rejected with an error naming the real hermes path (no subcommand for them).
Inputs: id (required), profil (required), status (required).
profiles_listA
List the Hermes profiles that currently exist in the configured Hermes home (read-only, no hermes call). 'default' is the Hermes root itself.
Inputs: no named parameters.
session_readA
Read the last messages of one session (role, text, time). Default 5; each message truncated at 20000 characters.
Inputs: profil (required), session_id (required), letzte_n.
sessions_listB
List recent sessions of a profile from its read-only session store (id, source, start, last activity, first task line).
Inputs: profil (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct resource+action (kanban_list vs kanban_get vs kanban_create, sessions_list vs session_read), and the descriptions explicitly clarify the tricky boundaries such as kanban_assign vs kanban_set_status and kanban_create's startstatus vs kanban_set_status. The only residual confusion is between kanban_edit and kanban_set_status, which is mitigated by the detailed mapping notes.
All tools follow a predictable noun_verb pattern (kanban_list, kanban_get, sessions_list, session_read, profiles_list), grouped cleanly by resource prefix. Minor deviation: 'sessions_list' is plural while 'session_read' is singular, a small inconsistency within the same resource family.
Eleven tools is well within the sweet spot, and each earns its place: eight kanban operations cover the card lifecycle plus three read-only tools for sessions and profiles. No filler or near-duplicate tools are present.
Card creation, reading, editing, status changes, comments, links, and assignment are covered, but there is no delete/archive operation and no way to remove a parent-child link once created — dead ends for mistake recovery. Sessions and profiles are read-only by design, which is acceptable, but the missing kanban unlink/delete are notable gaps.
Maintenance
Related MCP Connectors
Remote MCP for Kanban AI boards—manage projects, tasks, and comments from AI tools.
Simple kanban for small teams. Read and update your Moxboard boards and tasks from Claude.
Project board for ChatGPT, Claude and coding agents, with scoped MCP access to projects and tasks.
Read and write Mission Control state via MCP — projects, tasks, subtasks, templates, status updates.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables Claude Code sessions to query fleet status, focus terminals, and manage sessions programmatically via MCP tools.2MIT
- FlicenseNot gradedqualityBmaintenanceEnables Claude Desktop or other MCP clients to execute shell commands, read/write files, and list directories on the local machine. Includes basic safety guardrails to block obviously destructive operations.-
- AlicenseCqualityBmaintenanceEnables AI assistants and MCP clients to inspect board state, initialize boards, create tasks, and move tasks between columns on Kanbn boards without direct shell access.65216 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read, write, and report on Trello boards and cards through permissioned MCP tools, with an optional CLI for Claude Code. It supports safe, non-destructive operations with fuzzy name matching and export capabilities.MIT