mcp-server

v1.1.1
@contextlint/mcp-server Checked 4 hours ago Published 6 months ago

MCP 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

ParameterTypeDescription
content *stringMarkdown text to lint
rules *arrayRules to apply

lint-files

Lint markdown files matching glob patterns using a config file or preset

ParameterTypeDescription
configPathstringConfig file path (default: "contextlint.config.json")
cwdstringWorking directory (default: ".")
patternsarrayGlob patterns (default: ["**/*.md"])

context-graph

Build and return the document dependency graph for the project

ParameterTypeDescription
configPathstringPath to contextlint.config.json
cwdstringWorking directory
formatstringOutput format (default: summary)

context-slice

Extract the minimal set of documents relevant to a given query (ID, keyword, or file path)

ParameterTypeDescription
query *stringID, keyword, or file path to search for
configPathstringPath to contextlint.config.json
cwdstringWorking directory
depthnumberMax traversal depth (default: 2)

impact-analysis

Analyze which documents are affected by changes to a given file

ParameterTypeDescription
file *stringPath to the changed file (relative to cwd)
configPathstringPath to contextlint.config.json
cwdstringWorking directory

compile-context

Compile document structure into LLM-readable context text (e.g. SKILL.md). Deterministic: same config + same documents = same output.

ParameterTypeDescription
configPathstringPath to contextlint.config.json
cwdstringWorking directory