@primer/mcp 0.0.2 → 0.0.4

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 CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## Getting started
8
8
 
9
- [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=Primer+MCP&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40primer%2Fmcp%40latest%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=Primer+MCP&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40primer%2Fmcp%40latest%22%5D%7D&quality=insiders)
9
+ [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=Primer&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40primer%2Fmcp%40latest%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=Primer&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40primer%2Fmcp%40latest%22%5D%7D&quality=insiders)
10
10
 
11
11
  The `@primer/mcp` package provides a server that can be run in your local
12
12
  development environment or can be setup in tools like GitHub Actions to be used
@@ -21,14 +21,14 @@ follow these steps:
21
21
  2. Type `MCP: Install Server` and select it
22
22
  3. Select the `stdio` type
23
23
  4. Enter in the following command: `npx @primer/mcp@latest`
24
- 5. Enter the name `Primer MCP` for the server
24
+ 5. Enter the name `Primer` for the server
25
25
 
26
26
  Your MCP servers configuration should look like:
27
27
 
28
28
  ```json
29
29
  {
30
30
  "servers": {
31
- "Primer MCP": {
31
+ "Primer": {
32
32
  "type": "stdio",
33
33
  "command": "npx",
34
34
  "args": ["@primer/mcp@latest"]
@@ -0,0 +1,2 @@
1
+ export { server } from './server';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ export { s as server } from './server-DHzOLtG9.js';
2
+ import '@modelcontextprotocol/sdk/server/mcp.js';
3
+ import 'cheerio';
4
+ import 'zod';
5
+ import 'turndown';
6
+ import '@primer/react/generated/components.json' with { type: 'json' };
7
+ import '@primer/octicons/build/data.json' with { type: 'json' };
8
+ import '@primer/primitives/dist/docs/base/motion/motion.json' with { type: 'json' };
9
+ import '@primer/primitives/dist/docs/base/size/size.json' with { type: 'json' };
10
+ import '@primer/primitives/dist/docs/base/typography/typography.json' with { type: 'json' };
11
+ import '@primer/primitives/dist/docs/functional/size/border.json' with { type: 'json' };
12
+ import '@primer/primitives/dist/docs/functional/size/size-coarse.json' with { type: 'json' };
13
+ import '@primer/primitives/dist/docs/functional/size/size-fine.json' with { type: 'json' };
14
+ import '@primer/primitives/dist/docs/functional/size/size.json' with { type: 'json' };
15
+ import '@primer/primitives/dist/docs/functional/themes/light.json' with { type: 'json' };
16
+ import '@primer/primitives/dist/docs/functional/typography/typography.json' with { type: 'json' };
package/dist/primer.d.ts CHANGED
@@ -2,6 +2,7 @@ type Component = {
2
2
  id: string;
3
3
  name: string;
4
4
  importPath: string;
5
+ slug: string;
5
6
  };
6
7
  declare function listComponents(): Array<Component>;
7
8
  type Pattern = {
@@ -9,5 +10,11 @@ type Pattern = {
9
10
  name: string;
10
11
  };
11
12
  declare function listPatterns(): Array<Pattern>;
12
- export { listComponents, listPatterns };
13
+ type Icon = {
14
+ name: string;
15
+ keywords: Array<string>;
16
+ heights: Array<string>;
17
+ };
18
+ declare function listIcons(): Array<Icon>;
19
+ export { listComponents, listPatterns, listIcons };
13
20
  //# sourceMappingURL=primer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"primer.d.ts","sourceRoot":"","sources":["../src/primer.ts"],"names":[],"mappings":"AAEA,KAAK,SAAS,GAAG;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAUD,iBAAS,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAE1C;AAED,KAAK,OAAO,GAAG;IACb,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AA6CD,iBAAS,YAAY,IAAI,KAAK,CAAC,OAAO,CAAC,CAEtC;AAED,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,CAAA"}
1
+ {"version":3,"file":"primer.d.ts","sourceRoot":"","sources":["../src/primer.ts"],"names":[],"mappings":"AAGA,KAAK,SAAS,GAAG;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AA+BD,iBAAS,cAAc,IAAI,KAAK,CAAC,SAAS,CAAC,CAE1C;AAED,KAAK,OAAO,GAAG;IACb,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AA6CD,iBAAS,YAAY,IAAI,KAAK,CAAC,OAAO,CAAC,CAEtC;AAED,KAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACvB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CACvB,CAAA;AAUD,iBAAS,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,CAEhC;AAED,OAAO,EAAC,cAAc,EAAE,YAAY,EAAE,SAAS,EAAC,CAAA"}
@@ -0,0 +1,65 @@
1
+ declare const categories: {
2
+ readonly base: {
3
+ readonly motion: {
4
+ name: string;
5
+ type: string;
6
+ value: string | number[];
7
+ }[];
8
+ readonly size: {
9
+ name: string;
10
+ type: string;
11
+ value: string;
12
+ }[];
13
+ readonly typography: {
14
+ name: string;
15
+ type: string;
16
+ value: number;
17
+ }[];
18
+ };
19
+ readonly functional: {
20
+ readonly border: {
21
+ name: string;
22
+ type: string;
23
+ value: string;
24
+ }[];
25
+ readonly sizeCoarse: {
26
+ name: string;
27
+ type: string;
28
+ value: string;
29
+ }[];
30
+ readonly sizeFine: {
31
+ name: string;
32
+ type: string;
33
+ value: string;
34
+ }[];
35
+ readonly size: {
36
+ name: string;
37
+ type: string;
38
+ value: string;
39
+ }[];
40
+ readonly themes: {
41
+ readonly light: {
42
+ name: string;
43
+ type: string;
44
+ value: string;
45
+ }[];
46
+ };
47
+ readonly typography: {
48
+ name: string;
49
+ type: string;
50
+ value: string | number;
51
+ }[];
52
+ };
53
+ };
54
+ declare const tokens: ({
55
+ name: string;
56
+ type: string;
57
+ value: string | number[];
58
+ } | {
59
+ name: string;
60
+ type: string;
61
+ value: string | number;
62
+ })[];
63
+ declare function serialize(value: typeof tokens): string;
64
+ export { categories, tokens, serialize };
65
+ //# sourceMappingURL=primitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/primitives.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEN,CAAA;AAEV,QAAA,MAAM,MAAM;;;;;;;;IAUX,CAAA;AAED,iBAAS,SAAS,CAAC,KAAK,EAAE,OAAO,MAAM,GAAG,MAAM,CAM/C;AAED,OAAO,EAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAC,CAAA"}