@knip/mcp 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +2 -2
- package/src/server.js +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## Knip
|
|
4
4
|
|
|
5
|
-
Find unused files, dependencies, and
|
|
6
|
-
projects.
|
|
5
|
+
The Knip MCP Server is powered by Knip: Find unused files, dependencies, and
|
|
6
|
+
exports in your JavaScript/TypeScript projects.
|
|
7
7
|
|
|
8
8
|
- Website: [knip.dev][1]
|
|
9
9
|
- GitHub repo: [webpro-nl/knip][2]
|
|
@@ -13,7 +13,8 @@ projects.
|
|
|
13
13
|
|
|
14
14
|
## VS Code Extension
|
|
15
15
|
|
|
16
|
-
Install the [Knip VS Code Extension][6]
|
|
16
|
+
Install the [Knip VS Code Extension][6] or [Knip Open VSX Extension][7] — it
|
|
17
|
+
comes with the MCP Server included.
|
|
17
18
|
|
|
18
19
|
## MCP Server
|
|
19
20
|
|
|
@@ -51,3 +52,4 @@ All pages of the [Knip documentation][1] are available as MCP resources
|
|
|
51
52
|
[4]: https://knip.dev/blog/for-editors-and-agents
|
|
52
53
|
[5]: https://knip.dev/sponsors
|
|
53
54
|
[6]: https://github.com/webpro-nl/knip/tree/main/packages/mcp-server
|
|
55
|
+
[7]: https://open-vsx.org/extension/webpro/vscode-knip
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knip/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "Knip MCP Server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
30
30
|
"zod": "^4.1.11",
|
|
31
|
-
"knip": "^5.77.
|
|
31
|
+
"knip": "^5.77.2"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=18.18.0"
|
package/src/server.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
RUN_KNIP_TOOL_DESCRIPTION,
|
|
14
14
|
WORKFLOW,
|
|
15
15
|
} from './texts.js';
|
|
16
|
-
import { getDocs, readContent } from './tools.js';
|
|
16
|
+
import { getDocs, getResults, readContent } from './tools.js';
|
|
17
17
|
|
|
18
18
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
19
19
|
const pkg = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf-8'));
|