@a4hgehad/weave-mcp 0.9.8 → 0.9.9
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/dist/index.js +0 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -515,12 +515,9 @@ class ConfigHandler {
|
|
|
515
515
|
applyAgentMcpDefaults(agentName, agentConfig) {
|
|
516
516
|
const weaveConfig = agentConfig;
|
|
517
517
|
const userMcps = weaveConfig.mcps ?? weaveConfig.mcp;
|
|
518
|
-
const hasUserTools = agentConfig.tools !== undefined;
|
|
519
518
|
let mcpsToApply;
|
|
520
519
|
if (userMcps && userMcps.length > 0) {
|
|
521
520
|
mcpsToApply = userMcps;
|
|
522
|
-
} else if (hasUserTools) {
|
|
523
|
-
return agentConfig;
|
|
524
521
|
} else {
|
|
525
522
|
mcpsToApply = getAgentMcpDefaults(agentName);
|
|
526
523
|
}
|