mcp
v0.0.40Knip MCP Server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
knip-run
Run Knip and return configuration hints and issues. Returns: - totalIssues: Total number of issues found (0 = clean) - configurationHints: Ordered suggestions to improve configuration (address these first) - docs: Doc topics that apply to this result, some with a #section (read them with knip-docs) - knipVersion: Version of Knip that ran (bundled with the MCP Server) - projectKnipVersion: Version of knip installed in the project, if any (versionHint explains a mismatch) - counters: Per-issue-type totals - maybeUnconfigured: true when a high unused-file count suggests entry/project may be inco…
| Parameter | Type | Description |
|---|---|---|
cwd | string | Working directory (default: workspace root) |
workspace | array | Scope run to array of workspaces |
knip-docs
Fetch a Knip doc by topic id, or by any docs path. Consult it to resolve a finding, hint, or error instead of guessing. Available topics (use these IDs): - getting-started: New to Knip? Start here for installation and first run - first-cleanup: Guided first pass: read the report top-down and fix one unused file, export, and dependency - how-knip-works: The mental model: entry files, the module graph, reachability, and why findings cascade. Read to reason about any result - configuration: Understand configuration basics, defaults, and file locations - configuration-hints: Decode the configurat…
| Parameter | Type | Description |
|---|---|---|
topic * | string | Topic key (e.g. "configuring-project-files") for curated resources, or path (e.g. "explanations/plugins") for all available docs, optionally with a #section (e.g. "handling-issues#unused-dependencies"… |