Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/mcp-introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ Each client has a slightly different config format. Copy the snippet for your cl
[mcp_servers.trigger]
command = "npx"
args = ["trigger.dev@latest", "mcp"]
startup_timeout_sec = 30
```

<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>
</Tab>
<Tab title="Crush">
Install using the command line:
Expand Down
3 changes: 2 additions & 1 deletion packages/cli-v3/src/commands/install-mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ async function installMcpServerForClient(
return { configPath, clientName, scope };
}

type McpServerConfig = Record<string, string | Array<string> | boolean | undefined>;
type McpServerConfig = Record<string, string | Array<string> | boolean | number | undefined>;
type McpServerScope = {
scope: (typeof scopes)[number];
location: string;
Expand Down Expand Up @@ -538,6 +538,7 @@ function resolveMcpServerConfig(
return {
command: "npx",
args,
startup_timeout_sec: 30,
};
}
case "zed": {
Expand Down