vale-mcp

v0.3.0
vale-mcp Checked 9 hours ago Published 6 days ago

MCP server for Vale linting integration

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vale_status

Check if Vale (vale.sh) is installed and accessible. Use this first if other Vale tools fail. Returns installation status, version if available, installation instructions for the current platform, and (when installed) the active config path, declared packages and installed styles.

vale_sync

Download Vale styles and packages by running 'vale sync'. Use this when you see errors about missing styles directories (E201 errors like "Style 'X' isn't on the StylesPath"). This command reads the .vale.ini configuration and downloads the required style packages.

ParameterTypeDescription
config_pathstringOptional path to .vale.ini file. If not provided, uses the server's configured path or searches in the current directory.

check_file

Lint a file at a specific path against Vale style rules. Returns issues found with their locations and severity. If Vale is not installed, returns error with installation guidance.

ParameterTypeDescription
path *stringAbsolute or relative path to the file to check
config_pathstringOptional path to .vale.ini file. If not provided, Vale will search for .vale.ini starting from the file's directory and moving upward through parent directories.
max_issuesintegerReturn at most this many issues (summary still counts all of them). Use to keep results small for large files.
min_severitystringOnly report issues at or above this severity. Defaults to all.

check_text

Lint text content directly against Vale style rules without requiring a file. Useful for checking text snippets, clipboard content, or dynamically generated content. Returns issues found with their locations and severity.

ParameterTypeDescription
text *stringThe text content to check with Vale
config_pathstringOptional path to .vale.ini file. If not provided, uses the server's configured path or searches in the current directory.
max_issuesintegerReturn at most this many issues (summary still counts all of them). Use to keep results small for large files.
min_severitystringOnly report issues at or above this severity. Defaults to all.
text_file_extstringOptional file extension for Vale to apply when checking the text (e.g., '.md', '.txt'). This can help Vale apply file format-specific rules if needed.

check_directory

Lint every file Vale supports in a directory (recursively) against Vale style rules. Returns issues with their file and line, plus a combined summary. Use min_severity and max_issues to keep results small.

ParameterTypeDescription
path *stringAbsolute or relative path to the directory to check
config_pathstringOptional path to .vale.ini file. If not provided, Vale will search for .vale.ini starting from the directory and moving upward.
max_issuesintegerReturn at most this many issues (summary still counts all of them). Use to keep results small for large files.
min_severitystringOnly report issues at or above this severity. Defaults to all.

list_rules

List the Vale rules (style checks) available in the active config, with each rule's name (Style.Rule, as shown in lint results), level, check type, message and whether it is enabled. Use it to see what Vale will check, or to find a rule to explain. Vale's built-in 'Vale' style (spelling etc.) is listed from documentation.

ParameterTypeDescription
config_pathstringOptional path to .vale.ini file. If not provided, uses the server's configured path or searches in the current directory.
max_rulesintegerReturn at most this many rules (the total is still reported). Use for large styles.
stylestringOnly list rules from this style (e.g. 'write-good'). Defaults to all styles the config uses.

explain_rule

Show the full definition of one Vale rule and where it is active, given its name as it appears in lint results (the 'check' field, e.g. 'write-good.Passive'). Use it to explain why a rule fired or how to satisfy it.

ParameterTypeDescription
rule *stringRule name in 'Style.Rule' form, e.g. 'write-good.Passive'
config_pathstringOptional path to .vale.ini file. If not provided, uses the server's configured path or searches in the current directory.