@a4hgehad/weave-mcp 0.9.5 → 0.9.7

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -464,7 +464,8 @@ function getAgentDisplayName(configKey) {
464
464
  }
465
465
 
466
466
  // src/managers/config-handler.ts
467
- var PRIMARY_AGENT_KEYS = new Set(["loom", "tapestry", "shuttle"]);
467
+ var PRIMARY_AGENT_KEYS = new Set(["loom", "tapestry"]);
468
+ var DUAL_MODE_AGENT_KEYS = new Set(["shuttle"]);
468
469
 
469
470
  class ConfigHandler {
470
471
  pluginConfig;
@@ -500,7 +501,10 @@ class ConfigHandler {
500
501
  const override = overrides[name];
501
502
  const merged = override ? { ...agentConfig, ...override } : { ...agentConfig };
502
503
  const agentWithMcps = this.applyAgentMcpDefaults(name, merged);
503
- if (PRIMARY_AGENT_KEYS.has(name) || DUAL_MODE_AGENT_KEYS.has(name)) {
504
+ if (DUAL_MODE_AGENT_KEYS.has(name)) {
505
+ result[name] = agentWithMcps;
506
+ result[getAgentDisplayName(name)] = agentWithMcps;
507
+ } else if (PRIMARY_AGENT_KEYS.has(name)) {
504
508
  result[getAgentDisplayName(name)] = agentWithMcps;
505
509
  } else {
506
510
  result[name] = agentWithMcps;
@@ -513,21 +517,11 @@ class ConfigHandler {
513
517
  if (defaults.length === 0) {
514
518
  return agentConfig;
515
519
  }
516
- if (agentConfig.tools !== undefined) {
517
- return agentConfig;
518
- }
519
520
  const mcpTools = {
520
521
  websearch: "websearch_exa",
521
522
  context7: "context7_query_docs",
522
523
  grep_app: "grep_app_search"
523
524
  };
524
- const tools = {};
525
- for (const mcp of defaults) {
526
- const toolName = mcpTools[mcp];
527
- if (toolName) {
528
- tools[toolName] = true;
529
- }
530
- }
531
525
  const mcpInfo = this.buildMcpInfoSection(defaults);
532
526
  let prompt = agentConfig.prompt || "";
533
527
  if (!prompt.includes("<MCPs>")) {
@@ -537,7 +531,7 @@ class ConfigHandler {
537
531
  }
538
532
  return {
539
533
  ...agentConfig,
540
- tools: { ...agentConfig.tools || {}, ...tools },
534
+ tools: mergedTools,
541
535
  prompt
542
536
  };
543
537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a4hgehad/weave-mcp",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "description": "Weave — lean OpenCode plugin with multi-agent orchestration + MCP support",
5
5
  "author": "3r3bu5",
6
6
  "license": "MIT",