@getchomp/mcp 0.2.44 → 0.2.45
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/dist/designSystemPlugin.d.ts +263 -1
- package/dist/designSystemPlugin.js +193 -0
- package/dist/index.d.ts +122 -1
- package/dist/index.js +596 -71
- package/dist/intelligence.js +10 -0
- package/dist/plugins/design-system/index.js +9 -2
- package/package.json +3 -3
package/dist/intelligence.js
CHANGED
|
@@ -1386,7 +1386,12 @@ export function filterNodesForMcp(graph, filters) {
|
|
|
1386
1386
|
filteredNodes = filteredNodes.filter((n) => typeof n.name === "string" && n.name.toLowerCase().includes(nameFilter));
|
|
1387
1387
|
}
|
|
1388
1388
|
if (filePathFilter) {
|
|
1389
|
+
const allowExternalPackages = filters.type === "OPEN_CONNECTOR" ||
|
|
1390
|
+
filters.entityType === "EXTERNAL_PACKAGE";
|
|
1389
1391
|
filteredNodes = filteredNodes.filter((n) => {
|
|
1392
|
+
if (!allowExternalPackages && n.entityType === "EXTERNAL_PACKAGE") {
|
|
1393
|
+
return false;
|
|
1394
|
+
}
|
|
1390
1395
|
const ev = n.evidence;
|
|
1391
1396
|
if (!ev)
|
|
1392
1397
|
return false;
|
|
@@ -1399,6 +1404,8 @@ export function filterNodesForMcp(graph, filters) {
|
|
|
1399
1404
|
});
|
|
1400
1405
|
}
|
|
1401
1406
|
if (searchTermFilter) {
|
|
1407
|
+
const allowExternalPackageFileMatch = filters.type === "OPEN_CONNECTOR" ||
|
|
1408
|
+
filters.entityType === "EXTERNAL_PACKAGE";
|
|
1402
1409
|
filteredNodes = filteredNodes.filter((n) => {
|
|
1403
1410
|
if (n.id.toLowerCase().includes(searchTermFilter))
|
|
1404
1411
|
return true;
|
|
@@ -1439,6 +1446,9 @@ export function filterNodesForMcp(graph, filters) {
|
|
|
1439
1446
|
}
|
|
1440
1447
|
}
|
|
1441
1448
|
}
|
|
1449
|
+
if (!allowExternalPackageFileMatch && n.entityType === "EXTERNAL_PACKAGE") {
|
|
1450
|
+
return false;
|
|
1451
|
+
}
|
|
1442
1452
|
const ev = n.evidence;
|
|
1443
1453
|
if (Array.isArray(ev)) {
|
|
1444
1454
|
return ev.some((r) => typeof r?.filePath === "string" &&
|
|
@@ -15,7 +15,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
15
15
|
import { basename, resolve } from "node:path";
|
|
16
16
|
import { CORE_EXTRACTOR_VERSION, analyzeTarget } from "@getchomp/core";
|
|
17
17
|
import { z } from "zod";
|
|
18
|
-
import { auditDesignSystem, createDesignSystemPlugin, diffDesignSystem, } from "../../designSystemPlugin.js";
|
|
18
|
+
import { auditDesignSystem, createDesignSystemPlugin, diffDesignSystem, formatCompactDesignSystemAudit, } from "../../designSystemPlugin.js";
|
|
19
19
|
import { defineChompPlugin } from "../../pluginRunner.js";
|
|
20
20
|
function resolveLiveGraphIfDirty(repoPath, dbPath) {
|
|
21
21
|
let needsLive = !existsSync(dbPath);
|
|
@@ -143,6 +143,10 @@ export const designSystemPluginModule = defineChompPlugin({
|
|
|
143
143
|
.optional()
|
|
144
144
|
.describe("When true, updates .chomp/current_view.json with L1_DESIGN_SYSTEM Spotlight highlights. Leave false (default) during coding tasks; pass true only when answering user questions or visual walkthrough requests."),
|
|
145
145
|
createView: z.boolean().optional().describe("Alias for create_view (camelCase)"),
|
|
146
|
+
verbose: z
|
|
147
|
+
.boolean()
|
|
148
|
+
.optional()
|
|
149
|
+
.describe("When true, returns the full raw tokenRegistry, routeComposition, atomicHierarchy, and per-component AST profiles instead of the compact orientation summary (default: false)."),
|
|
146
150
|
},
|
|
147
151
|
handler: async (args, ctx) => {
|
|
148
152
|
const persistOverlays = args.persist_overlays ?? args.persistOverlays ?? existsSync(ctx.dbPath);
|
|
@@ -193,7 +197,10 @@ export const designSystemPluginModule = defineChompPlugin({
|
|
|
193
197
|
},
|
|
194
198
|
});
|
|
195
199
|
}
|
|
196
|
-
return report
|
|
200
|
+
return formatCompactDesignSystemAudit(report, {
|
|
201
|
+
verbose: Boolean(args.verbose),
|
|
202
|
+
hasSearchTerm: Boolean(args.search_term ?? args.searchTerm),
|
|
203
|
+
});
|
|
197
204
|
},
|
|
198
205
|
},
|
|
199
206
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getchomp/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.45",
|
|
4
4
|
"description": "Chomp MCP server — codebase map, blast-radius, health, and design-system tools for AI coding agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://getchomp.dev",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
29
29
|
"typescript": "^5.3.3",
|
|
30
30
|
"zod": "^3.23.8",
|
|
31
|
-
"@getchomp/core": "0.2.
|
|
32
|
-
"@getchomp/db": "0.2.
|
|
31
|
+
"@getchomp/core": "0.2.45",
|
|
32
|
+
"@getchomp/db": "0.2.45"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tsx": "^4.19.0"
|