@primer/mcp 0.0.5 → 0.3.0
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 +3 -1
- package/dist/primer.d.ts.map +1 -1
- package/dist/primitives.d.ts +44 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/{server-BzATDQ5A.js → server-CjO5UCV7.js} +82 -34
- package/dist/server-Cwz0naYT.js +1444 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/stdio.js +3 -1
- package/package.json +17 -13
- package/src/primer.ts +0 -4
- package/src/primitives.ts +626 -1
- package/src/server.ts +439 -182
- package/dist/server-Ccnupv1s.js +0 -718
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAA;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAA;AAuBjE,QAAA,MAAM,MAAM,WAGV,CAAA;AAu5BF,OAAO,EAAC,MAAM,EAAC,CAAA"}
|
package/dist/stdio.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
2
|
-
import { s as server } from './server-
|
|
2
|
+
import { s as server } from './server-Cwz0naYT.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
4
|
import 'cheerio';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'turndown';
|
|
7
7
|
import '@primer/react/generated/components.json' with { type: 'json' };
|
|
8
8
|
import '@primer/octicons/build/data.json' with { type: 'json' };
|
|
9
|
+
import 'node:fs';
|
|
10
|
+
import 'node:module';
|
|
9
11
|
import '@primer/primitives/dist/docs/base/motion/motion.json' with { type: 'json' };
|
|
10
12
|
import '@primer/primitives/dist/docs/base/size/size.json' with { type: 'json' };
|
|
11
13
|
import '@primer/primitives/dist/docs/base/typography/typography.json' with { type: 'json' };
|
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": "0.0
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mcp": "./bin/mcp.js"
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"src",
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/primer/react.git"
|
|
28
|
+
},
|
|
25
29
|
"scripts": {
|
|
26
30
|
"clean": "rimraf dist",
|
|
27
31
|
"build": "rollup -c",
|
|
@@ -29,28 +33,28 @@
|
|
|
29
33
|
"watch": "rollup -c -w"
|
|
30
34
|
},
|
|
31
35
|
"dependencies": {
|
|
32
|
-
"@babel/runtime": "^7.28.
|
|
33
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
36
|
+
"@babel/runtime": "^7.28.6",
|
|
37
|
+
"@modelcontextprotocol/sdk": "^1.24.0",
|
|
34
38
|
"@primer/octicons": "^19.15.5",
|
|
35
39
|
"@primer/primitives": "10.x || 11.x",
|
|
36
|
-
"@primer/react": "^38.
|
|
40
|
+
"@primer/react": "^38.12.0",
|
|
37
41
|
"cheerio": "^1.0.0",
|
|
38
42
|
"turndown": "^7.2.0",
|
|
39
|
-
"zod": "^3.
|
|
43
|
+
"zod": "^4.3.5"
|
|
40
44
|
},
|
|
41
45
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "^7.
|
|
43
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
44
|
-
"@babel/preset-env": "^7.
|
|
45
|
-
"@babel/preset-typescript": "^7.
|
|
46
|
+
"@babel/core": "^7.29.0",
|
|
47
|
+
"@babel/plugin-transform-runtime": "^7.29.0",
|
|
48
|
+
"@babel/preset-env": "^7.29.0",
|
|
49
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
46
50
|
"@modelcontextprotocol/inspector": "^0.16.6",
|
|
47
|
-
"@rollup/plugin-babel": "^6.0
|
|
48
|
-
"@rollup/plugin-commonjs": "^
|
|
51
|
+
"@rollup/plugin-babel": "^6.1.0",
|
|
52
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
49
53
|
"@rollup/plugin-json": "^6.1.0",
|
|
50
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
54
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
51
55
|
"@types/turndown": "^5.0.5",
|
|
52
56
|
"rimraf": "^6.0.1",
|
|
53
|
-
"rollup": "^4.
|
|
57
|
+
"rollup": "^4.59.0",
|
|
54
58
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
55
59
|
"typescript": "^5.9.2"
|
|
56
60
|
}
|