@primer/mcp 1.1.2 → 1.1.3-rc.cb01b74bb
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.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createServer, n as server } from "./server-
|
|
1
|
+
export { t as createServer, n as server } from "./server-CXK_nt9p.js";
|
|
@@ -16,7 +16,7 @@ import functionalSizeFine from "@primer/primitives/dist/docs/functional/size/siz
|
|
|
16
16
|
import functionalSize from "@primer/primitives/dist/docs/functional/size/size.json" with { type: "json" };
|
|
17
17
|
import light from "@primer/primitives/dist/docs/functional/themes/light.json" with { type: "json" };
|
|
18
18
|
import functionalTypography from "@primer/primitives/dist/docs/functional/typography/typography.json" with { type: "json" };
|
|
19
|
-
|
|
19
|
+
// src/primer.ts
|
|
20
20
|
function idToSlug(id) {
|
|
21
21
|
if (id === "actionbar") return "action-bar";
|
|
22
22
|
if (id === "confirmationdialog") return "confirmation-dialog";
|
|
@@ -145,8 +145,7 @@ const icons = Object.values(octicons).map((icon) => {
|
|
|
145
145
|
function listIcons() {
|
|
146
146
|
return icons;
|
|
147
147
|
}
|
|
148
|
-
|
|
149
|
-
//#region src/primitives.ts
|
|
148
|
+
// src/primitives.ts
|
|
150
149
|
let functionalSizeRadius = {};
|
|
151
150
|
try {
|
|
152
151
|
const radiusPath = createRequire(import.meta.url).resolve("@primer/primitives/dist/docs/functional/size/radius.json");
|
|
@@ -716,11 +715,9 @@ function runStylelint(css) {
|
|
|
716
715
|
proc.stdin.end();
|
|
717
716
|
});
|
|
718
717
|
}
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
//#endregion
|
|
723
|
-
//#region src/server.ts
|
|
718
|
+
// package.json
|
|
719
|
+
var version = "1.1.3";
|
|
720
|
+
// src/server.ts
|
|
724
721
|
const turndownService = new TurndownService();
|
|
725
722
|
const allTokensWithGuidelines = loadAllTokensWithGuidelines();
|
|
726
723
|
function createServer() {
|
|
@@ -1262,5 +1259,4 @@ The following list of coding guidelines must be followed:
|
|
|
1262
1259
|
return server;
|
|
1263
1260
|
}
|
|
1264
1261
|
const server = createServer();
|
|
1265
|
-
//#endregion
|
|
1266
1262
|
export { server as n, createServer as t };
|
package/dist/stdio.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as createServer } from "./server-
|
|
1
|
+
import { t as createServer } from "./server-CXK_nt9p.js";
|
|
2
2
|
import { serveStdio } from "@modelcontextprotocol/server/stdio";
|
|
3
|
-
|
|
3
|
+
// src/transports/stdio.ts
|
|
4
4
|
serveStdio(createServer);
|
|
5
|
-
//#endregion
|
|
6
5
|
export {};
|
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.1.
|
|
4
|
+
"version": "1.1.3-rc.cb01b74bb",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mcp": "./bin/mcp.js"
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"@modelcontextprotocol/server": "^2.3.0",
|
|
42
42
|
"@primer/octicons": "^19.15.5",
|
|
43
43
|
"@primer/primitives": "10.x || 11.x",
|
|
44
|
-
"@primer/react": "^
|
|
44
|
+
"@primer/react": "^39.0.0",
|
|
45
45
|
"cheerio": "^1.0.0",
|
|
46
46
|
"turndown": "^7.2.0",
|
|
47
|
-
"zod": "^4.
|
|
47
|
+
"zod": "^4.6.6"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@modelcontextprotocol/inspector": "^0.16.6",
|
|
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.16",
|
|
55
55
|
"rolldown-plugin-dts": "^0.26.0",
|
|
56
56
|
"typescript": "^6.0.3"
|
|
57
57
|
}
|