fix: mcp client name (#2289)
This commit is contained in:
@@ -55,7 +55,7 @@ export namespace MCP {
|
|||||||
let lastError: Error | undefined
|
let lastError: Error | undefined
|
||||||
for (const { name, transport } of transports) {
|
for (const { name, transport } of transports) {
|
||||||
const client = await experimental_createMCPClient({
|
const client = await experimental_createMCPClient({
|
||||||
name: key,
|
name: "opencode",
|
||||||
transport,
|
transport,
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
lastError = error instanceof Error ? error : new Error(String(error))
|
lastError = error instanceof Error ? error : new Error(String(error))
|
||||||
@@ -92,7 +92,7 @@ export namespace MCP {
|
|||||||
if (mcp.type === "local") {
|
if (mcp.type === "local") {
|
||||||
const [cmd, ...args] = mcp.command
|
const [cmd, ...args] = mcp.command
|
||||||
const client = await experimental_createMCPClient({
|
const client = await experimental_createMCPClient({
|
||||||
name: key,
|
name: "opencode",
|
||||||
transport: new StdioClientTransport({
|
transport: new StdioClientTransport({
|
||||||
stderr: "ignore",
|
stderr: "ignore",
|
||||||
command: cmd,
|
command: cmd,
|
||||||
|
|||||||
Reference in New Issue
Block a user