Skip to content

Commit f0f4527

Browse files
authored
docs: added startup_timeout_sec note (#3124)
1 parent b8ce693 commit f0f4527

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/mcp-introduction.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ Each client has a slightly different config format. Copy the snippet for your cl
221221
[mcp_servers.trigger]
222222
command = "npx"
223223
args = ["trigger.dev@latest", "mcp"]
224+
startup_timeout_sec = 30
224225
```
226+
227+
<Note>The `startup_timeout_sec = 30` is recommended. Codex defaults to 10 seconds, which may not be enough for `npx` to download the package on first run.</Note>
225228
</Tab>
226229
<Tab title="Crush">
227230
Install using the command line:

packages/cli-v3/src/commands/install-mcp.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ async function installMcpServerForClient(
328328
return { configPath, clientName, scope };
329329
}
330330

331-
type McpServerConfig = Record<string, string | Array<string> | boolean | undefined>;
331+
type McpServerConfig = Record<string, string | Array<string> | boolean | number | undefined>;
332332
type McpServerScope = {
333333
scope: (typeof scopes)[number];
334334
location: string;
@@ -538,6 +538,7 @@ function resolveMcpServerConfig(
538538
return {
539539
command: "npx",
540540
args,
541+
startup_timeout_sec: 30,
541542
};
542543
}
543544
case "zed": {

0 commit comments

Comments
 (0)