Skip to content

Commit 90b6db1

Browse files
authored
Merge pull request #85 from TencentCloudBase/claude/issue-76-20250714_154231
fix: remove -y flag from npx commands to fix Windows PowerShell compatibility
2 parents 8229de0 + 1bb896d commit 90b6db1

18 files changed

Lines changed: 44 additions & 44 deletions

README-EN.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Due to a caching bug in npx itself, it may cause CloudBase AI ToolKit installati
8989

9090
Run the following command in **terminal**:
9191
```
92-
npx -y clear-npx-cache
92+
npx clear-npx-cache
9393
```
9494
</details>
9595

@@ -167,7 +167,7 @@ Or manually add configuration to `.cursor/mcp.json`:
167167
"mcpServers": {
168168
"cloudbase-mcp": {
169169
"command": "npx",
170-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
170+
"args": ["@cloudbase/cloudbase-mcp@latest"]
171171
}
172172
}
173173
}
@@ -200,7 +200,7 @@ If using template project, MCP configuration is pre-configured. If not starting
200200
"mcpServers": {
201201
"cloudbase-mcp": {
202202
"command": "npx",
203-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
203+
"args": ["@cloudbase/cloudbase-mcp@latest"]
204204
}
205205
}
206206
}
@@ -233,7 +233,7 @@ Template includes `.rules/` directory, CodeBuddy will automatically recognize Cl
233233
"mcpServers": {
234234
"cloudbase": {
235235
"command": "npx",
236-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
236+
"args": ["@cloudbase/cloudbase-mcp@latest"]
237237
}
238238
}
239239
}
@@ -336,7 +336,7 @@ Add in Trae's MCP configuration:
336336
"mcpServers": {
337337
"cloudbase-mcp": {
338338
"command": "npx",
339-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
339+
"args": ["@cloudbase/cloudbase-mcp@latest"]
340340
}
341341
}
342342
}
@@ -367,7 +367,7 @@ If using template project, MCP configuration is pre-configured. If not starting
367367
"mcpServers": {
368368
"cloudbase-mcp": {
369369
"command": "npx",
370-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
370+
"args": ["@cloudbase/cloudbase-mcp@latest"]
371371
}
372372
}
373373
}
@@ -546,7 +546,7 @@ If not starting from template, create `.gemini/settings.json` file in user home
546546
"mcpServers": {
547547
"cloudbase-mcp": {
548548
"command": "npx",
549-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
549+
"args": ["@cloudbase/cloudbase-mcp@latest"]
550550
}
551551
}
552552
}
@@ -615,7 +615,7 @@ Create `.codex/config.toml` file in project root:
615615
```toml
616616
[mcp_servers.cloudbase]
617617
command = "npx"
618-
args = ["-y", "@cloudbase/cloudbase-mcp@latest"]
618+
args = ["@cloudbase/cloudbase-mcp@latest"]
619619
```
620620

621621
Then start with the specified configuration file:
@@ -631,7 +631,7 @@ Create `~/.codex/config.toml` file in user home directory:
631631
```toml
632632
[mcp_servers.cloudbase]
633633
command = "npx"
634-
args = ["-y", "@cloudbase/cloudbase-mcp@latest"]
634+
args = ["@cloudbase/cloudbase-mcp@latest"]
635635
```
636636

637637
#### Step 3: Enable AI Rules

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ npm config set registry https://mirrors.cloud.tencent.com/npm/
9797

9898
**终端命令行**中运行以下命令:
9999
```
100-
npx -y clear-npx-cache
100+
npx clear-npx-cache
101101
```
102102
</details>
103103

@@ -180,7 +180,7 @@ npx -y clear-npx-cache
180180
"mcpServers": {
181181
"cloudbase-mcp": {
182182
"command": "npx",
183-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
183+
"args": ["@cloudbase/cloudbase-mcp@latest"]
184184
}
185185
}
186186
}
@@ -213,7 +213,7 @@ npx -y clear-npx-cache
213213
"mcpServers": {
214214
"cloudbase-mcp": {
215215
"command": "npx",
216-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
216+
"args": ["@cloudbase/cloudbase-mcp@latest"]
217217
}
218218
}
219219
}
@@ -249,7 +249,7 @@ npx -y clear-npx-cache
249249
"mcpServers": {
250250
"cloudbase": {
251251
"command": "npx",
252-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
252+
"args": ["@cloudbase/cloudbase-mcp@latest"]
253253
}
254254
}
255255
}
@@ -358,7 +358,7 @@ npx -y clear-npx-cache
358358
"mcpServers": {
359359
"cloudbase-mcp": {
360360
"command": "npx",
361-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
361+
"args": ["@cloudbase/cloudbase-mcp@latest"]
362362
}
363363
}
364364
}
@@ -390,7 +390,7 @@ npx -y clear-npx-cache
390390
"mcpServers": {
391391
"cloudbase-mcp": {
392392
"command": "npx",
393-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
393+
"args": ["@cloudbase/cloudbase-mcp@latest"]
394394
}
395395
}
396396
}
@@ -581,7 +581,7 @@ npx @google/gemini-cli
581581
"mcpServers": {
582582
"cloudbase-mcp": {
583583
"command": "npx",
584-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
584+
"args": ["@cloudbase/cloudbase-mcp@latest"]
585585
}
586586
}
587587
}
@@ -651,7 +651,7 @@ npx @openai/codex
651651
```toml
652652
[mcp_servers.cloudbase]
653653
command = "npx"
654-
args = ["-y", "@cloudbase/cloudbase-mcp@latest"]
654+
args = ["@cloudbase/cloudbase-mcp@latest"]
655655
```
656656

657657
然后启动时指定配置文件:
@@ -667,7 +667,7 @@ codex --config .codex/config.toml
667667
```toml
668668
[mcp_servers.cloudbase]
669669
command = "npx"
670-
args = ["-y", "@cloudbase/cloudbase-mcp@latest"]
670+
args = ["@cloudbase/cloudbase-mcp@latest"]
671671
```
672672

673673
#### 步骤3:启用 AI 规则
@@ -720,7 +720,7 @@ codex --config .codex/config.toml
720720
"mcpServers": {
721721
"cloudbase-mcp": {
722722
"command": "npx",
723-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
723+
"args": ["@cloudbase/cloudbase-mcp@latest"]
724724
}
725725
}
726726
}

doc/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ npm i @cloudbase/cloudbase-mcp@latest -g
110110
**2. 清理缓存**
111111
- 清理 npx 缓存(npx 存在缓存 bug 可能导致安装问题):
112112
```bash
113-
npx -y clear-npx-cache
113+
npx clear-npx-cache
114114
```
115115

116116
**3. 重新启用 MCP**
@@ -156,7 +156,7 @@ Safari 浏览器在某些情况下可能存在兼容性问题,影响授权流
156156
"mcpServers": {
157157
"cloudbase-mcp": {
158158
"command": "npx",
159-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"],
159+
"args": ["@cloudbase/cloudbase-mcp@latest"],
160160
"env": {
161161
"TENCENTCLOUD_SECRETID": "腾讯云 SecretId",
162162
"TENCENTCLOUD_SECRETKEY": "腾讯云 SecretKey",

doc/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ npm config set registry https://mirrors.cloud.tencent.com/npm/
9393

9494
**清理 npx 缓存**(避免安装问题):
9595
```bash
96-
npx -y clear-npx-cache
96+
npx clear-npx-cache
9797
```
9898

9999
</details>

doc/ide-setup/codebuddy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"mcpServers": {
6767
"cloudbase": {
6868
"command": "npx",
69-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
69+
"args": ["@cloudbase/cloudbase-mcp@latest"]
7070
}
7171
}
7272
}

doc/ide-setup/cursor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"mcpServers": {
6969
"cloudbase-mcp": {
7070
"command": "npx",
71-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
71+
"args": ["@cloudbase/cloudbase-mcp@latest"]
7272
}
7373
}
7474
}

doc/ide-setup/gemini-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ npx @google/gemini-cli
7474
"mcpServers": {
7575
"cloudbase-mcp": {
7676
"command": "npx",
77-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
77+
"args": ["@cloudbase/cloudbase-mcp@latest"]
7878
}
7979
}
8080
}

doc/ide-setup/openai-codex-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ npm install -g @openai/codex
6464
```toml
6565
[mcp_servers.cloudbase]
6666
command = "npx"
67-
args = ["-y", "@cloudbase/cloudbase-mcp@latest"]
67+
args = ["@cloudbase/cloudbase-mcp@latest"]
6868
```
6969

7070
然后启动时指定配置文件:
@@ -80,7 +80,7 @@ codex --config .codex/config.toml
8080
```toml
8181
[mcp_servers.cloudbase]
8282
command = "npx"
83-
args = ["-y", "@cloudbase/cloudbase-mcp@latest"]
83+
args = ["@cloudbase/cloudbase-mcp@latest"]
8484
```
8585

8686
### 步骤 3:启用 AI 规则

doc/ide-setup/opencode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ yarn global add opencode
7070
"mcpServers": {
7171
"cloudbase-mcp": {
7272
"command": "npx",
73-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
73+
"args": ["@cloudbase/cloudbase-mcp@latest"]
7474
}
7575
}
7676
}

doc/ide-setup/tongyi-lingma.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"mcpServers": {
6262
"cloudbase-mcp": {
6363
"command": "npx",
64-
"args": ["-y", "@cloudbase/cloudbase-mcp@latest"]
64+
"args": ["@cloudbase/cloudbase-mcp@latest"]
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)