@miphamai/cli 0.80.0 → 0.80.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.tsx +2 -2
- package/src/mcp/registry.ts +3 -5
- package/src/shared/package-info.ts +1 -1
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -216,7 +216,7 @@ async function connectMcpServers(
|
|
|
216
216
|
await mcp.connect(server)
|
|
217
217
|
const count = registerMcpServerTools(server.name, tools)
|
|
218
218
|
if (count > 0) {
|
|
219
|
-
|
|
219
|
+
console.log(`[mcp] "${server.name}": registered ${count} tools`)
|
|
220
220
|
}
|
|
221
221
|
}),
|
|
222
222
|
)
|
|
@@ -227,7 +227,7 @@ async function connectMcpServers(
|
|
|
227
227
|
const name = mcpServers[i]!.name
|
|
228
228
|
const reason = String(result.reason)
|
|
229
229
|
failures.push({ name, reason })
|
|
230
|
-
|
|
230
|
+
console.error(`[mcp] Failed to connect "${name}": ${reason}`)
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
return failures
|
package/src/mcp/registry.ts
CHANGED
|
@@ -117,21 +117,19 @@ export function registerMcpServerTools(
|
|
|
117
117
|
const tool = convertMcpTool(serverName, mcpTool)
|
|
118
118
|
|
|
119
119
|
if (toolsMap.has(tool.name)) {
|
|
120
|
-
|
|
121
|
-
t('errors.mcp_register_collision', { name: tool.name, server: serverName }) + '\n',
|
|
122
|
-
)
|
|
120
|
+
console.error(t('errors.mcp_register_collision', { name: tool.name, server: serverName }))
|
|
123
121
|
continue
|
|
124
122
|
}
|
|
125
123
|
|
|
126
124
|
toolsMap.set(tool.name, tool)
|
|
127
125
|
registered++
|
|
128
126
|
} catch (err) {
|
|
129
|
-
|
|
127
|
+
console.error(
|
|
130
128
|
t('errors.mcp_register_failed', {
|
|
131
129
|
tool: mcpTool.name,
|
|
132
130
|
server: serverName,
|
|
133
131
|
error: String(err),
|
|
134
|
-
})
|
|
132
|
+
}),
|
|
135
133
|
)
|
|
136
134
|
}
|
|
137
135
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export const PACKAGE_NAME = '@miphamai/cli' as const
|
|
10
10
|
|
|
11
11
|
/** 当前发布版本 */
|
|
12
|
-
export const PACKAGE_VERSION = '0.80.
|
|
12
|
+
export const PACKAGE_VERSION = '0.80.1' as const
|
|
13
13
|
|
|
14
14
|
/** npm install 全局安装命令 */
|
|
15
15
|
export const NPM_INSTALL_COMMAND = `npm install -g ${PACKAGE_NAME}` as const
|