From 53e58bd7a2b11062a11e4476152e507b3bcf9b80 Mon Sep 17 00:00:00 2001 From: xuxu's code Date: Thu, 29 Jan 2026 09:17:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20`stderr`=20=E9=87=8C=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E2=80=9C=E6=9C=8D=E5=8A=A1=E5=90=AF=E5=8A=A8=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E2=80=9D=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “服务启动成功”的消息当前是在 `stdout`里输出,在 codex 里使用时报错: ``` ⚠ MCP client for `taroify` failed to start: MCP startup failed: handshaking with MCP server failed: connection closed: initialize response ⚠ MCP startup incomplete (failed: taroify) ``` --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 36ccd76..32d799a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ async function startMcpServer() { description: "Provides documentation and example for Taroify components", }); - console.log("服务启动成功"); + console.error("服务启动成功"); registerTaroifyTools(server);