Skip to content

Commit d1db0e8

Browse files
Fix MCP setup defaults to avoid startup timeout
1 parent 3a44c59 commit d1db0e8

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

CLAUDE.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ The `mcp` subcommand starts an MCP (Model Context Protocol) server, exposing Asc
171171
### usage with Claude Code
172172

173173
```bash
174-
claude mcp add --transport stdio ascend-tools -- uvx --refresh --from ./ascend-tools ascend-tools mcp
174+
claude mcp add --transport stdio ascend-tools -- uvx --from ./ascend-tools ascend-tools mcp
175175
```
176176

177177
Auth env vars (`ASCEND_SERVICE_ACCOUNT_ID`, `ASCEND_SERVICE_ACCOUNT_KEY`, `ASCEND_INSTANCE_API_URL`) are inherited from the shell.
@@ -182,13 +182,13 @@ claude mcp add --transport stdio \
182182
-e ASCEND_SERVICE_ACCOUNT_ID="$ASCEND_SERVICE_ACCOUNT_ID" \
183183
-e ASCEND_SERVICE_ACCOUNT_KEY="$ASCEND_SERVICE_ACCOUNT_KEY" \
184184
-e ASCEND_INSTANCE_API_URL="$ASCEND_INSTANCE_API_URL" \
185-
ascend-tools -- uvx --refresh --from ./ascend-tools ascend-tools mcp
185+
ascend-tools -- uvx --from ./ascend-tools ascend-tools mcp
186186
```
187187

188188
### usage with Codex CLI
189189

190190
```bash
191-
codex mcp add ascend-tools -- uvx --refresh --from "$(pwd)" ascend-tools mcp
191+
codex mcp add ascend-tools -- uvx --from "$(pwd)" ascend-tools mcp
192192
```
193193

194194
If Codex is launched without your shell env, set them explicitly:
@@ -198,7 +198,7 @@ codex mcp add \
198198
--env "ASCEND_SERVICE_ACCOUNT_ID=$ASCEND_SERVICE_ACCOUNT_ID" \
199199
--env "ASCEND_SERVICE_ACCOUNT_KEY=$ASCEND_SERVICE_ACCOUNT_KEY" \
200200
--env "ASCEND_INSTANCE_API_URL=$ASCEND_INSTANCE_API_URL" \
201-
ascend-tools -- uvx --refresh --from "$(pwd)" ascend-tools mcp
201+
ascend-tools -- uvx --from "$(pwd)" ascend-tools mcp
202202
```
203203

204204
```bash
@@ -214,6 +214,11 @@ codex mcp remove ascend-tools
214214
```
215215

216216
Auth env vars (`ASCEND_SERVICE_ACCOUNT_ID`, `ASCEND_SERVICE_ACCOUNT_KEY`, `ASCEND_INSTANCE_API_URL`) are inherited from the shell.
217+
If stale behavior appears after code updates, run one refresh manually:
218+
219+
```bash
220+
uvx --refresh --from "$(pwd)" ascend-tools --version
221+
```
217222

218223
### architecture notes
219224

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ ascend-tools mcp --http --bind 127.0.0.1:8000
121121
### Claude Code setup
122122

123123
```bash
124-
claude mcp add --transport stdio ascend-tools -- uvx --refresh --from ./ascend-tools ascend-tools mcp
124+
claude mcp add --transport stdio ascend-tools -- uvx --from ./ascend-tools ascend-tools mcp
125125
```
126126

127127
The Ascend auth env vars are inherited from your shell. Verify with `/mcp` inside Claude Code.
@@ -132,13 +132,13 @@ claude mcp add --transport stdio \
132132
-e ASCEND_SERVICE_ACCOUNT_ID="$ASCEND_SERVICE_ACCOUNT_ID" \
133133
-e ASCEND_SERVICE_ACCOUNT_KEY="$ASCEND_SERVICE_ACCOUNT_KEY" \
134134
-e ASCEND_INSTANCE_API_URL="$ASCEND_INSTANCE_API_URL" \
135-
ascend-tools -- uvx --refresh --from ./ascend-tools ascend-tools mcp
135+
ascend-tools -- uvx --from ./ascend-tools ascend-tools mcp
136136
```
137137

138138
### Codex CLI setup
139139

140140
```bash
141-
codex mcp add ascend-tools -- uvx --refresh --from "$(pwd)" ascend-tools mcp
141+
codex mcp add ascend-tools -- uvx --from "$(pwd)" ascend-tools mcp
142142
```
143143

144144
If Codex is launched without your shell env, add vars explicitly:
@@ -148,7 +148,7 @@ codex mcp add \
148148
--env "ASCEND_SERVICE_ACCOUNT_ID=$ASCEND_SERVICE_ACCOUNT_ID" \
149149
--env "ASCEND_SERVICE_ACCOUNT_KEY=$ASCEND_SERVICE_ACCOUNT_KEY" \
150150
--env "ASCEND_INSTANCE_API_URL=$ASCEND_INSTANCE_API_URL" \
151-
ascend-tools -- uvx --refresh --from "$(pwd)" ascend-tools mcp
151+
ascend-tools -- uvx --from "$(pwd)" ascend-tools mcp
152152
```
153153

154154
Inspect the MCP server config:
@@ -170,6 +170,11 @@ codex mcp remove ascend-tools
170170
```
171171

172172
The Ascend auth env vars are inherited from your shell when Codex launches the server.
173+
If you have stale MCP behavior after updating code, run this once to refresh the uvx cache:
174+
175+
```bash
176+
uvx --refresh --from "$(pwd)" ascend-tools --version
177+
```
173178

174179
### Tools
175180

0 commit comments

Comments
 (0)