@yeaft/webchat-agent 0.0.80 → 0.0.82
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/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -63,13 +63,13 @@ const CONFIG = {
|
|
|
63
63
|
reconnectInterval: fileConfig.reconnectInterval,
|
|
64
64
|
agentSecret: process.env.AGENT_SECRET || fileConfig.agentSecret,
|
|
65
65
|
// 禁用的工具列表(逗号分隔),如 "mcp__github,mcp__sentry"
|
|
66
|
-
//
|
|
67
|
-
// 设置 DISALLOWED_TOOLS
|
|
66
|
+
// 默认不禁用任何工具(MCP 工具由 ~/.claude.json 中的 mcpServers 配置控制)
|
|
67
|
+
// 设置 DISALLOWED_TOOLS 可指定需要禁用的工具
|
|
68
68
|
disallowedTools: (() => {
|
|
69
69
|
const raw = process.env.DISALLOWED_TOOLS || fileConfig.disallowedTools || '';
|
|
70
70
|
if (raw === 'none') return [];
|
|
71
71
|
const list = raw.split(',').map(s => s.trim()).filter(Boolean);
|
|
72
|
-
return list
|
|
72
|
+
return list;
|
|
73
73
|
})()
|
|
74
74
|
};
|
|
75
75
|
|