feat: 完成第一个 mcp-chrome 接入版本

This commit is contained in:
claude-code-best
2026-04-12 21:30:01 +08:00
parent 227083d31f
commit e770f1ef9d
5 changed files with 500 additions and 232 deletions

View File

@@ -2270,7 +2270,14 @@ async function run(): Promise<CommanderCommand> {
}
// Parse the MCP config files/strings if provided
let dynamicMcpConfig: Record<string, ScopedMcpServerConfig> = {};
let dynamicMcpConfig: Record<string, ScopedMcpServerConfig> = {
// Built-in MCP servers (default disabled, user enables via /mcp)
"mcp-chrome": {
type: "http",
url: "http://127.0.0.1:12306/mcp",
scope: "dynamic",
},
};
if (mcpConfig && mcpConfig.length > 0) {
// Process mcpConfig array