fix: mcp client name (#2289)
This commit is contained in:
parent
555202f3b1
commit
a928a35c96
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ export namespace MCP {
|
|||
let lastError: Error | undefined
|
||||
for (const { name, transport } of transports) {
|
||||
const client = await experimental_createMCPClient({
|
||||
name: key,
|
||||
name: "opencode",
|
||||
transport,
|
||||
}).catch((error) => {
|
||||
lastError = error instanceof Error ? error : new Error(String(error))
|
||||
|
|
@ -92,7 +92,7 @@ export namespace MCP {
|
|||
if (mcp.type === "local") {
|
||||
const [cmd, ...args] = mcp.command
|
||||
const client = await experimental_createMCPClient({
|
||||
name: key,
|
||||
name: "opencode",
|
||||
transport: new StdioClientTransport({
|
||||
stderr: "ignore",
|
||||
command: cmd,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue