mcp-server

v0.5.0
@wastech-mdlint/mcp-server Checked 5 hours ago Published 4 days ago

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

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

ParameterTypeDescription
configPathstring
cwdstring
patternsarray
sincestring

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.

ParameterTypeDescription
configPathstring
cwdstring
formatstring

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.

ParameterTypeDescription
query *string
configPathstring
cwdstring
depthinteger

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.

ParameterTypeDescription
configPathstring
cwdstring
filestring
sincestring

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.

ParameterTypeDescription
configPathstring
cwdstring