Skip to content

Commit 302c852

Browse files
committed
update npx commands to use @latest
1 parent a9b8e4a commit 302c852

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

packages/dev/mcp/react-aria/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The `@react-aria/mcp` package provides a [Model Context Protocol (MCP)](https://
99
Simply run the server using npx:
1010

1111
```bash
12-
npx @react-aria/mcp
12+
npx @react-aria/mcp@latest
1313
```
1414

1515
### Using with an MCP client
@@ -21,7 +21,7 @@ Add the server to your MCP client configuration (the exact file and schema may d
2121
"mcpServers": {
2222
"React Aria": {
2323
"command": "npx",
24-
"args": ["@react-aria/mcp"]
24+
"args": ["@react-aria/mcp@latest"]
2525
}
2626
}
2727
}
@@ -32,7 +32,7 @@ Add the server to your MCP client configuration (the exact file and schema may d
3232

3333
#### Click the button to install:
3434

35-
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=React%20Aria&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAcmVhY3QtYXJpYS9tY3AiXX0%3D)
35+
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=React%20Aria&config=eyJjb21tYW5kIjoibnB4IEByZWFjdC1hcmlhL21jcEBsYXRlc3QifQ%3D%3D)
3636

3737
Or follow the MCP install [guide](https://docs.cursor.com/en/context/mcp#installing-mcp-servers) and use the standard config above.
3838

@@ -43,14 +43,14 @@ Or follow the MCP install [guide](https://docs.cursor.com/en/context/mcp#install
4343

4444
#### Click the button to install:
4545

46-
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](vscode:mcp/install?%7B%22name%22%3A%22React%20Aria%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40react-aria%2Fmcp%22%5D%7D)
46+
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](vscode:mcp/install?%7B%22name%22%3A%22React%20Aria%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40react-aria%2Fmcp%40latest%22%5D%7D)
4747

4848
#### Or install manually:
4949

5050
Follow the MCP install [guide](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server) and use the standard config above. You can also add the server using the VS Code CLI:
5151

5252
```bash
53-
code --add-mcp '{"name":"React Aria","command":"npx","args":["@react-aria/mcp"]}'
53+
code --add-mcp '{"name":"React Aria","command":"npx","args":["@react-aria/mcp@latest"]}'
5454
```
5555

5656
</details>
@@ -61,7 +61,7 @@ code --add-mcp '{"name":"React Aria","command":"npx","args":["@react-aria/mcp"]}
6161
Use the Claude Code CLI to add the server:
6262

6363
```bash
64-
claude mcp add react-aria npx @react-aria/mcp
64+
claude mcp add react-aria npx @react-aria/mcp@latest
6565
```
6666
For more information, see the [Claude Code MCP documentation](https://docs.claude.com/en/docs/claude-code/mcp).
6767
</details>
@@ -74,7 +74,7 @@ Create or edit the configuration file `~/.codex/config.toml` and add:
7474
```toml
7575
[mcp_servers.react-aria]
7676
command = "npx"
77-
args = ["@react-aria/mcp"]
77+
args = ["@react-aria/mcp@latest"]
7878
```
7979

8080
For more information, see the [Codex MCP documentation](https://github.com/openai/codex/blob/main/docs/config.md#mcp_servers).
@@ -87,7 +87,7 @@ For more information, see the [Codex MCP documentation](https://github.com/opena
8787
Use the Gemini CLI to add the server:
8888

8989
```bash
90-
gemini mcp add react-aria npx @react-aria/mcp
90+
gemini mcp add react-aria npx @react-aria/mcp@latest
9191
```
9292

9393
For more information, see the [Gemini CLI MCP documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md#how-to-set-up-your-mcp-server).

packages/dev/mcp/react-aria/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {startServer} from '../../shared/src/server.js';
88
try {
99
const arg = (process.argv[2] || '').trim();
1010
if (arg === '--help' || arg === '-h' || arg === 'help') {
11-
console.log('Usage: npx @react-aria/mcp\n\nStarts the MCP server for React Aria documentation.');
11+
console.log('Usage: npx @react-aria/mcp@latest\n\nStarts the MCP server for React Aria documentation.');
1212
process.exit(0);
1313
}
1414
await startServer('react-aria', '0.1.0');

packages/dev/mcp/s2/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The `@react-spectrum/mcp` package provides a [Model Context Protocol (MCP)](http
99
Simply run the server using npx:
1010

1111
```bash
12-
npx @react-spectrum/mcp
12+
npx @react-spectrum/mcp@latest
1313
```
1414

1515
### Using with an MCP client
@@ -21,7 +21,7 @@ Add the server to your MCP client configuration (the exact file and schema may d
2121
"mcpServers": {
2222
"React Spectrum (S2)": {
2323
"command": "npx",
24-
"args": ["@react-spectrum/mcp"]
24+
"args": ["@react-spectrum/mcp@latest"]
2525
}
2626
}
2727
}
@@ -32,7 +32,7 @@ Add the server to your MCP client configuration (the exact file and schema may d
3232

3333
#### Click the button to install:
3434

35-
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=React%20Spectrum%20(S2)&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAcmVhY3Qtc3BlY3RydW0vbWNwIl19)
35+
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](cursor://anysphere.cursor-deeplink/mcp/install?name=React%20Spectrum%20(S2)&config=eyJjb21tYW5kIjoibnB4IEByZWFjdC1zcGVjdHJ1bS9tY3BAbGF0ZXN0In0%3D)
3636

3737
Or follow the MCP install [guide](https://docs.cursor.com/en/context/mcp#installing-mcp-servers) and use the standard config above.
3838

@@ -43,14 +43,14 @@ Or follow the MCP install [guide](https://docs.cursor.com/en/context/mcp#install
4343

4444
#### Click the button to install:
4545

46-
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](vscode:mcp/install?%7B%22name%22%3A%22React%20Spectrum%20(S2)%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40react-spectrum%2Fmcp%22%5D%7D)
46+
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](vscode:mcp/install?%7B%22name%22%3A%22React%20Spectrum%20(S2)%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40react-spectrum%2Fmcp%40latest%22%5D%7D)
4747

4848
#### Or install manually:
4949

5050
Follow the MCP install [guide](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server) and use the standard config above. You can also add the server using the VS Code CLI:
5151

5252
```bash
53-
code --add-mcp '{"name":"React Spectrum (S2)","command":"npx","args":["@react-spectrum/mcp"]}'
53+
code --add-mcp '{"name":"React Spectrum (S2)","command":"npx","args":["@react-spectrum/mcp@latest"]}'
5454
```
5555

5656
</details>
@@ -61,7 +61,7 @@ code --add-mcp '{"name":"React Spectrum (S2)","command":"npx","args":["@react-sp
6161
Use the Claude Code CLI to add the server:
6262

6363
```bash
64-
claude mcp add react-spectrum-s2 npx @react-spectrum/mcp
64+
claude mcp add react-spectrum-s2 npx @react-spectrum/mcp@latest
6565
```
6666
For more information, see the [Claude Code MCP documentation](https://docs.claude.com/en/docs/claude-code/mcp).
6767
</details>
@@ -74,7 +74,7 @@ Create or edit the configuration file `~/.codex/config.toml` and add:
7474
```toml
7575
[mcp_servers.react-spectrum-s2]
7676
command = "npx"
77-
args = ["@react-spectrum/mcp"]
77+
args = ["@react-spectrum/mcp@latest"]
7878
```
7979

8080
For more information, see the [Codex MCP documentation](https://github.com/openai/codex/blob/main/docs/config.md#mcp_servers).
@@ -87,7 +87,7 @@ For more information, see the [Codex MCP documentation](https://github.com/opena
8787
Use the Gemini CLI to add the server:
8888

8989
```bash
90-
gemini mcp add react-spectrum-s2 npx @react-spectrum/mcp
90+
gemini mcp add react-spectrum-s2 npx @react-spectrum/mcp@latest
9191
```
9292

9393
For more information, see the [Gemini CLI MCP documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md#how-to-set-up-your-mcp-server).

packages/dev/mcp/s2/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {z} from 'zod';
1111
try {
1212
const arg = (process.argv[2] || '').trim();
1313
if (arg === '--help' || arg === '-h' || arg === 'help') {
14-
console.log('Usage: npx @react-spectrum/mcp\n\nStarts the MCP server for React Spectrum (S2) documentation.');
14+
console.log('Usage: npx @react-spectrum/mcp@latest\n\nStarts the MCP server for React Spectrum (S2) documentation.');
1515
process.exit(0);
1616
}
1717

packages/dev/s2-docs/pages/react-aria/mcp.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ Add the server to your MCP client configuration (the exact file and schema may d
2121
"mcpServers": {
2222
"React Aria": {
2323
"command": "npx",
24-
"args": ["@react-aria/mcp"]
24+
"args": ["@react-aria/mcp@latest"]
2525
}
2626
}
2727
}
2828
```
2929

3030
### Cursor
3131

32-
<Link href="cursor://anysphere.cursor-deeplink/mcp/install?name=React%20Aria&config=eyJjb21tYW5kIjoibnB4IEByZWFjdC1hcmlhL21jcCJ9" aria-label="Add to Cursor">
32+
<Link href="cursor://anysphere.cursor-deeplink/mcp/install?name=React%20Aria&config=eyJjb21tYW5kIjoibnB4IEByZWFjdC1hcmlhL21jcEBsYXRlc3QifQ%3D%3D" aria-label="Add to Cursor">
3333
<picture>
3434
<source srcSet="https://cursor.com/deeplink/mcp-install-dark.svg" media="(prefers-color-scheme: light)" />
3535
<source srcSet="https://cursor.com/deeplink/mcp-install-light.svg" media="(prefers-color-scheme: dark)" />
@@ -41,19 +41,19 @@ Or follow Cursor's MCP install [guide](https://docs.cursor.com/en/context/mcp#in
4141

4242
### VS Code
4343

44-
<Link href="vscode:mcp/install?%7B%22name%22%3A%22React%20Aria%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40react-aria%2Fmcp%22%5D%7D" aria-label="Add to Visual Studio Code">
44+
<Link href="vscode:mcp/install?%7B%22name%22%3A%22React%20Aria%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40react-aria%2Fmcp%40latest%22%5D%7D" aria-label="Add to Visual Studio Code">
4545
<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in Visual Studio Code" />
4646
</Link>
4747

4848
Or follow VS Code's MCP install [guide](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server) and use the standard config above. You can also add the server using the VS Code CLI:
4949

50-
<Command command='code --add-mcp &#39;{"name":"React Aria","command":"npx","args":["@react-aria/mcp"]}&#39;' />
50+
<Command command='code --add-mcp &#39;{"name":"React Aria","command":"npx","args":["@react-aria/mcp@latest"]}&#39;' />
5151

5252
### Claude Code
5353

5454
Use the Claude Code CLI to add the server:
5555

56-
<Command command="claude mcp add react-aria npx @react-aria/mcp" />
56+
<Command command="claude mcp add react-aria npx @react-aria/mcp@latest" />
5757

5858
For more information, see the [Claude Code MCP documentation](https://docs.claude.com/en/docs/claude-code/mcp).
5959

@@ -64,7 +64,7 @@ Create or edit the configuration file `~/.codex/config.toml` and add:
6464
```js
6565
[mcp_servers.react-aria]
6666
command = "npx"
67-
args = ["@react-aria/mcp"]
67+
args = ["@react-aria/mcp@latest"]
6868
```
6969

7070
For more information, see the [Codex MCP documentation](https://github.com/openai/codex/blob/main/docs/config.md#mcp_servers).
@@ -73,7 +73,7 @@ For more information, see the [Codex MCP documentation](https://github.com/opena
7373

7474
Use the Gemini CLI to add the server:
7575

76-
<Command command="gemini mcp add react-aria npx @react-aria/mcp" />
76+
<Command command="gemini mcp add react-aria npx @react-aria/mcp@latest" />
7777

7878
For more information, see the [Gemini CLI MCP documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md#how-to-set-up-your-mcp-server).
7979

packages/dev/s2-docs/pages/s2/mcp.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ Add the server to your MCP client configuration (the exact file and schema may d
2121
"mcpServers": {
2222
"React Spectrum (S2)": {
2323
"command": "npx",
24-
"args": ["@react-spectrum/mcp"]
24+
"args": ["@react-spectrum/mcp@latest"]
2525
}
2626
}
2727
}
2828
```
2929

3030
### Cursor
3131

32-
<Link href="cursor://anysphere.cursor-deeplink/mcp/install?name=React%20Spectrum%20(S2)&config=eyJjb21tYW5kIjoibnB4IEByZWFjdC1zcGVjdHJ1bS9tY3AifQ%3D%3D" aria-label="Add to Cursor">
32+
<Link href="cursor://anysphere.cursor-deeplink/mcp/install?name=React%20Spectrum%20(S2)&config=eyJjb21tYW5kIjoibnB4IEByZWFjdC1zcGVjdHJ1bS9tY3BAbGF0ZXN0In0%3D" aria-label="Add to Cursor">
3333
<picture>
3434
<source srcSet="https://cursor.com/deeplink/mcp-install-dark.svg" media="(prefers-color-scheme: light)" />
3535
<source srcSet="https://cursor.com/deeplink/mcp-install-light.svg" media="(prefers-color-scheme: dark)" />
@@ -41,19 +41,19 @@ Or follow Cursor's MCP install [guide](https://docs.cursor.com/en/context/mcp#in
4141

4242
### VS Code
4343

44-
<Link href="vscode:mcp/install?%7B%22name%22%3A%22React%20Spectrum%20(S2)%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40react-spectrum%2Fmcp%22%5D%7D" aria-label="Add to Visual Studio Code">
44+
<Link href="vscode:mcp/install?%7B%22name%22%3A%22React%20Spectrum%20(S2)%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40react-spectrum%2Fmcp%40latest%22%5D%7D" aria-label="Add to Visual Studio Code">
4545
<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in Visual Studio Code" />
4646
</Link>
4747

4848
Or follow VS Code's MCP install [guide](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server) and use the standard config above. You can also add the server using the VS Code CLI:
4949

50-
<Command command='code --add-mcp &#39;{"name":"React Spectrum (S2)","command":"npx","args":["@react-spectrum/mcp"]}&#39;' />
50+
<Command command='code --add-mcp &#39;{"name":"React Spectrum (S2)","command":"npx","args":["@react-spectrum/mcp@latest"]}&#39;' />
5151

5252
### Claude Code
5353

5454
Use the Claude Code CLI to add the server:
5555

56-
<Command command="claude mcp add react-spectrum-s2 npx @react-spectrum/mcp" />
56+
<Command command="claude mcp add react-spectrum-s2 npx @react-spectrum/mcp@latest" />
5757

5858
For more information, see the [Claude Code MCP documentation](https://docs.claude.com/en/docs/claude-code/mcp).
5959

@@ -64,7 +64,7 @@ Create or edit the configuration file `~/.codex/config.toml` and add:
6464
```js
6565
[mcp_servers.react-spectrum-s2]
6666
command = "npx"
67-
args = ["@react-spectrum/mcp"]
67+
args = ["@react-spectrum/mcp@latest"]
6868
```
6969

7070
For more information, see the [Codex MCP documentation](https://github.com/openai/codex/blob/main/docs/config.md#mcp_servers).
@@ -73,7 +73,7 @@ For more information, see the [Codex MCP documentation](https://github.com/opena
7373

7474
Use the Gemini CLI to add the server:
7575

76-
<Command command="gemini mcp add react-spectrum-s2 npx @react-spectrum/mcp" />
76+
<Command command="gemini mcp add react-spectrum-s2 npx @react-spectrum/mcp@latest" />
7777

7878
For more information, see the [Gemini CLI MCP documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md#how-to-set-up-your-mcp-server).
7979

0 commit comments

Comments
 (0)