fix(mcp-client): await Cordis startup discovery

This commit is contained in:
Tianyi Cui
2026-08-09 11:41:40 +08:00
parent 67b9e9b1d6
commit 913ecf5f1d
18 files changed
+108 -39

No files matched your search

+5 -1
View File
@@ -988,6 +988,8 @@ export interface StdioConfig {
cwd: string
/** Per-tool-call timeout in milliseconds. */
toolCallTimeoutMs: number
/** Fail plugin activation when the initial connection or tool discovery fails. */
failOnStartupError: boolean
}
/** Config for connecting to an MCP server over Streamable HTTP (SSE). */
@@ -1006,10 +1008,12 @@ export interface StreamableHttpConfig {
headers: Record<string, string>
/** Per-tool-call timeout in milliseconds. */
toolCallTimeoutMs: number
/** Fail plugin activation when the initial connection or tool discovery fails. */
failOnStartupError: boolean
}
```
Source: [`packages/mcp/mcp-client/src/index.ts:96`](../packages/mcp/mcp-client/src/index.ts)
Source: [`packages/mcp/mcp-client/src/index.ts:100`](../packages/mcp/mcp-client/src/index.ts)
## `@deepseek-ai/dsh-permission`