concepts-mcp
v0.2.1MCP server that turns your latest commits into hand-drawn Excalidraw diagrams of the concepts they use, so you keep learning from code your AI wrote.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_concepts_instructions Get the concept diagram workflow
Call first. Returns the steps for turning new commits into concept diagrams.
setup_concepts Set up or change concept diagrams
Set up a repository, or change where diagrams are saved and how much each commit saves. Call it with no choices: the user gets a picker (where: this project docs/concepts/, their learning library ~/ConceptLibrary/<repo>/, or both; then per folder: Diagram (svg only, recommended), Editable (+ .excalidraw), Diagram + notes (+ README and concept notes), or Custom). If the client can't show it, this returns the questions for you to ask with your own multiple-choice tool; then call again with `destinations`. Changes apply to new commits; files already saved stay where they are. Writes .concepts.jso…
| Parameter | Type | Description |
|---|---|---|
agents | array | Agents to write instructions for |
backfill | integer | Also diagram this many commits from before setup |
destinations | array | One entry per folder. Omit to show the user a picker. |
detail | string | Shorthand: the level for `output` |
dir | string | Shorthand: the folder for `output` |
gitHook | boolean | Add a post-commit hook that reminds people and agents when a commit is waiting |
output | string | Shorthand for a single destination |
repoPath | string | Absolute path of the repository root. Defaults to the server's working directory. |
scope | string | shared = .concepts.json for everyone (default); personal = .concepts.local.json, just for this user |
get_unprocessed_commits Get commits that need a concept diagram
Returns commits since setup that have no diagram yet, oldest first, each with its sequence number (its place in history), message, changed files and a trimmed diff (lockfiles and generated files removed). Call record_commit_concepts for each one.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many commits to return at once |
maxDiffChars | integer | Diff budget per commit |
repoPath | string | Absolute path of the repository root. Defaults to the server's working directory. |
get_concept_library List concepts already in the library
Returns every concept recorded for this repository (id, name, kind, level, times seen). Reuse these ids so a concept's note keeps growing instead of being duplicated.
| Parameter | Type | Description |
|---|---|---|
repoPath | string | Absolute path of the repository root. Defaults to the server's working directory. |
record_commit_concepts Draw a commit's concept diagram
Save one commit as system-design diagrams. Views (architecture, sequence, flow, state, data-model) are laid out and drawn for you in Excalidraw style; each concept becomes a numbered marker on the parts where it lives, with names in a key beside the diagram. Always send the full record (explanations included): each configured folder keeps the files the user chose (concepts.svg, concepts.excalidraw, a README and concept notes), and marks the commit done. Pass skipReason instead for commits with nothing to learn.
| Parameter | Type | Description |
|---|---|---|
commit * | string | Commit SHA from get_unprocessed_commits |
concepts | array | Every concept worth learning in this commit; no fixed number |
repoPath | string | Absolute path of the repository root. Defaults to the server's working directory. |
skipReason | string | Set instead of a diagram for commits with nothing to learn (typos, formatting, version bumps) |
summary | string | A short paragraph on what changed and the main idea. Goes in the README beside the diagram. |
title | string | What the commit built, e.g. 'Retrying failed webhooks' |
views | array | One or more system-design views; as many as the change needs |