Skip to content

Commit 8167c4e

Browse files
committed
add documentation for registry argument
1 parent e6b100b commit 8167c4e

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

src/lib/docs/cli/mcp.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Start an the MCP server:
1616
jsrepo mcp
1717
```
1818

19+
Start an the MCP server for a specific registry:
20+
21+
```sh
22+
jsrepo mcp @ieedan/std
23+
```
24+
1925
Inspect and test the MCP server:
2026

2127
```sh

src/lib/docs/map.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ const tempMap: Record<string, [TempDoc, TempDoc[]] | [string, TempDoc[]]> = {
4646
children: [
4747
{
4848
title: 'jsrepo.com',
49-
slug: 'jsrepo',
50-
tag: 'New'
49+
slug: 'jsrepo'
5150
},
5251
{
5352
title: 'GitHub',
@@ -73,8 +72,7 @@ const tempMap: Record<string, [TempDoc, TempDoc[]] | [string, TempDoc[]]> = {
7372
},
7473
{
7574
title: 'MCP Server',
76-
slug: 'mcp',
77-
tag: 'New'
75+
slug: 'mcp'
7876
},
7977
{
8078
title: 'Language Support',
@@ -97,8 +95,7 @@ const tempMap: Record<string, [TempDoc, TempDoc[]] | [string, TempDoc[]]> = {
9795
'jsrepo.com': [
9896
{
9997
title: 'Introduction',
100-
slug: 'jsrepo-com',
101-
tag: 'New'
98+
slug: 'jsrepo-com'
10299
},
103100
[
104101
{
@@ -136,8 +133,7 @@ const tempMap: Record<string, [TempDoc, TempDoc[]] | [string, TempDoc[]]> = {
136133
},
137134
{
138135
title: 'mcp',
139-
slug: 'mcp',
140-
tag: 'New'
136+
slug: 'mcp'
141137
},
142138
{
143139
title: 'publish',

src/lib/docs/registry/mcp.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ Add the following code to your `.cursor/mcp.json` file:
3131
}
3232
```
3333

34+
Optionally, you can specify a registry to use:
35+
36+
```jsonc
37+
{
38+
"mcpServers": {
39+
"jsrepo": {
40+
"command": "npx",
41+
"args": ["jsrepo", "mcp", "@ieedan/std"]
42+
}
43+
}
44+
}
45+
```
46+
3447
## Windsurf Usage
3548

3649
Add the following code to your `.codeium/windsurf/mcp_config.json` file:

0 commit comments

Comments
 (0)