mcp-server
v1.1.1MCP server for contextlint
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lint
Lint markdown content with specified rules
| Parameter | Type | Description |
|---|---|---|
content * | string | Markdown text to lint |
rules * | array | Rules to apply |
lint-files
Lint markdown files matching glob patterns using a config file or preset
| Parameter | Type | Description |
|---|---|---|
configPath | string | Config file path (default: "contextlint.config.json") |
cwd | string | Working directory (default: ".") |
patterns | array | Glob patterns (default: ["**/*.md"]) |
context-graph
Build and return the document dependency graph for the project
| Parameter | Type | Description |
|---|---|---|
configPath | string | Path to contextlint.config.json |
cwd | string | Working directory |
format | string | Output format (default: summary) |
context-slice
Extract the minimal set of documents relevant to a given query (ID, keyword, or file path)
| Parameter | Type | Description |
|---|---|---|
query * | string | ID, keyword, or file path to search for |
configPath | string | Path to contextlint.config.json |
cwd | string | Working directory |
depth | number | Max traversal depth (default: 2) |
impact-analysis
Analyze which documents are affected by changes to a given file
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the changed file (relative to cwd) |
configPath | string | Path to contextlint.config.json |
cwd | string | Working directory |
compile-context
Compile document structure into LLM-readable context text (e.g. SKILL.md). Deterministic: same config + same documents = same output.
| Parameter | Type | Description |
|---|---|---|
configPath | string | Path to contextlint.config.json |
cwd | string | Working directory |