@primer/mcp 1.0.0-rc.3fb350b1f → 1.0.0-rc.4403803d9
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/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as server, t as createServer } from "./server-
|
|
1
|
+
import { n as server, t as createServer } from "./server-MtARfEmu.js";
|
|
2
2
|
export { createServer, server };
|
|
@@ -395,12 +395,10 @@ function loadAllTokensWithGuidelines() {
|
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
function loadDesignTokensGuide() {
|
|
398
|
-
|
|
399
|
-
return readFileSync(guidePath, "utf-8");
|
|
398
|
+
return readFileSync(createRequire(import.meta.url).resolve("@primer/primitives/DESIGN_TOKENS_GUIDE.md"), "utf-8");
|
|
400
399
|
}
|
|
401
400
|
function loadDesignTokensSpec() {
|
|
402
|
-
|
|
403
|
-
return readFileSync(specPath, "utf-8");
|
|
401
|
+
return readFileSync(createRequire(import.meta.url).resolve("@primer/primitives/DESIGN_TOKENS_SPEC.md"), "utf-8");
|
|
404
402
|
}
|
|
405
403
|
function getDesignTokenSpecsText(groups) {
|
|
406
404
|
return `
|
|
@@ -959,8 +957,7 @@ ${turndownService.turndown(source)}`
|
|
|
959
957
|
let effectiveGroup = resolvedGroup;
|
|
960
958
|
const filteredKeywords = [];
|
|
961
959
|
for (const kw of rawKeywords) {
|
|
962
|
-
const
|
|
963
|
-
const aliasMatch = GROUP_ALIASES[normalized];
|
|
960
|
+
const aliasMatch = GROUP_ALIASES[kw.replace(/\s+/g, "")];
|
|
964
961
|
if (aliasMatch && !effectiveGroup) effectiveGroup = aliasMatch;
|
|
965
962
|
else filteredKeywords.push(kw);
|
|
966
963
|
}
|
|
@@ -1005,8 +1002,7 @@ ${validGroups}
|
|
|
1005
1002
|
annotations: { readOnlyHint: true }
|
|
1006
1003
|
}, async ({ groups }) => {
|
|
1007
1004
|
const resolvedGroups = groups.map((g) => {
|
|
1008
|
-
|
|
1009
|
-
return GROUP_ALIASES[normalized] || g;
|
|
1005
|
+
return GROUP_ALIASES[g.toLowerCase().replace(/\s+/g, "")] || g;
|
|
1010
1006
|
});
|
|
1011
1007
|
const matched = allTokensWithGuidelines.filter((token) => resolvedGroups.some((rg) => tokenMatchesGroup(token, rg)));
|
|
1012
1008
|
if (matched.length === 0) {
|
package/dist/stdio.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/mcp",
|
|
3
3
|
"description": "An MCP server that connects AI tools to the Primer Design System",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.4403803d9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mcp": "./bin/mcp.js"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@primer/vitest-config": "^0.0.0",
|
|
52
52
|
"@types/turndown": "^5.0.5",
|
|
53
53
|
"rimraf": "^6.0.1",
|
|
54
|
-
"rolldown": "^1.2.
|
|
54
|
+
"rolldown": "^1.2.0",
|
|
55
55
|
"rolldown-plugin-dts": "^0.26.0",
|
|
56
56
|
"typescript": "^6.0.3"
|
|
57
57
|
}
|