Jakub Kopecký 1 год назад
Родитель
Сommit
a928a35c96
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/opencode/src/mcp/index.ts

+ 2 - 2
packages/opencode/src/mcp/index.ts

@@ -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,