concepts-mcp

v0.2.1
concepts-mcp Checked 2 days ago Published 21 days ago

MCP 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…

ParameterTypeDescription
agentsarrayAgents to write instructions for
backfillintegerAlso diagram this many commits from before setup
destinationsarrayOne entry per folder. Omit to show the user a picker.
detailstringShorthand: the level for `output`
dirstringShorthand: the folder for `output`
gitHookbooleanAdd a post-commit hook that reminds people and agents when a commit is waiting
outputstringShorthand for a single destination
repoPathstringAbsolute path of the repository root. Defaults to the server's working directory.
scopestringshared = .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.

ParameterTypeDescription
limitintegerHow many commits to return at once
maxDiffCharsintegerDiff budget per commit
repoPathstringAbsolute 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.

ParameterTypeDescription
repoPathstringAbsolute 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.

ParameterTypeDescription
commit *stringCommit SHA from get_unprocessed_commits
conceptsarrayEvery concept worth learning in this commit; no fixed number
repoPathstringAbsolute path of the repository root. Defaults to the server's working directory.
skipReasonstringSet instead of a diagram for commits with nothing to learn (typos, formatting, version bumps)
summarystringA short paragraph on what changed and the main idea. Goes in the README beside the diagram.
titlestringWhat the commit built, e.g. 'Retrying failed webhooks'
viewsarrayOne or more system-design views; as many as the change needs