@primer/mcp 0.0.2 → 0.0.3
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 +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/primer.d.ts +8 -1
- package/dist/primer.d.ts.map +1 -1
- package/dist/server-BdIvJFTO.js +645 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/stdio.js +7 -519
- package/package.json +12 -7
- package/src/index.ts +1 -0
- package/src/primer.ts +22 -1
- package/src/server.ts +139 -6
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Getting started
|
|
8
8
|
|
|
9
|
-
[](https://insiders.vscode.dev/redirect/mcp/install?name=Primer
|
|
9
|
+
[](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) [](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
|
|
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
|
|
31
|
+
"Primer": {
|
|
32
32
|
"type": "stdio",
|
|
33
33
|
"command": "npx",
|
|
34
34
|
"args": ["@primer/mcp@latest"]
|
package/dist/index.d.ts
ADDED
|
@@ -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,7 @@
|
|
|
1
|
+
export { s as server } from './server-BdIvJFTO.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' };
|
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
|
-
|
|
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
|
package/dist/primer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primer.d.ts","sourceRoot":"","sources":["../src/primer.ts"],"names":[],"mappings":"
|
|
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;AAWD,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"}
|