mcp-server
v0.5.0MCP server for Markdown linting: read-only Model Context Protocol tools for lint findings, the context graph, and change impact.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lint Lint Markdown content
Lint ad-hoc Markdown content against an explicit set of rules. Does not load project config; file-resolving rules such as REF-001/REF-003, SEC-003 and STR-001 may probe or read paths inside the server's working directory; an absolute path or a `..`-escaping relative path is rejected rather than followed. Each entry is either a built-in rule id or a declarative `custom` rule (`rule: "custom"` plus `id` and `options.assert`); code plugins are never loaded. Rules see one synthetic document path, `content.md`, so an `options.files` or `options.exclude` glob that does not match that path selects no…
| Parameter | Type | Description |
|---|---|---|
content * | string | |
rules * | array |
lint-files Lint project files
Lint the project's Markdown files using the resolved config (or the zero-config `**/*.md` default). With `since` (a branch, tag or commit; a project config may name its base branch in `git.base`), report only the findings the work tree adds since where it left that ref, read with git. Read-only.
| Parameter | Type | Description |
|---|---|---|
configPath | string | |
cwd | string | |
patterns | array | |
since | string |
context-graph Build the context graph
Build the project's context graph. `format: "raw"` (default) returns the graph verbatim (nodes, edges, cycles); `format: "summary"` returns nodes, edges, connected components, topological reading order, the nodes a cycle excluded from that order, and the coverage signal (node/edge counts plus Markdown files linked-to but outside the corpus) - the same document the CLI's `graph --format json` prints. Read-only.
| Parameter | Type | Description |
|---|---|---|
configPath | string | |
cwd | string | |
format | string |
context-slice Compute a context slice
Files reachable within `depth` hops of a resolved query, following graph edges forward. Resolves the query by exact match against defined IDs, heading/anchor slugs, and file paths - no fuzzy, substring, keyword, or LLM matching. Read-only.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
configPath | string | |
cwd | string | |
depth | integer |
impact-analysis Analyze change impact
Compute the blast radius of changing a Markdown file: files that reference it directly, files affected transitively, and the reading order over the affected subgraph. A file not in the corpus returns an actionable error. With `since` (a branch, tag or commit; a project config may name its base branch in `git.base`) in place of `file`, the same for every document the work tree changed since where it left that ref, read with git. Read-only.
| Parameter | Type | Description |
|---|---|---|
configPath | string | |
cwd | string | |
file | string | |
since | string |
compile-context Compile the project skill
Compile the project skill (SKILL.md) from `config.compile`, producing the same deterministic output as the CLI `compile` command: the skill content plus a Documents/Rules/Components metadata line. Requires `config.compile`; its absence returns an actionable error. Read-only.
| Parameter | Type | Description |
|---|---|---|
configPath | string | |
cwd | string |