@a4hgehad/weave-mcp 0.9.0 → 0.9.2

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 +15 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -498,8 +498,7 @@ class ConfigHandler {
498
498
  const override = overrides[name];
499
499
  const merged = override ? { ...agentConfig, ...override } : { ...agentConfig };
500
500
  const agentWithMcps = this.applyAgentMcpDefaults(name, merged);
501
- const displayName = getAgentDisplayName(name);
502
- result[displayName] = agentWithMcps;
501
+ result[name] = agentWithMcps;
503
502
  }
504
503
  return result;
505
504
  }
@@ -508,9 +507,21 @@ class ConfigHandler {
508
507
  if (defaults.length === 0) {
509
508
  return agentConfig;
510
509
  }
511
- if (agentConfig.mcps !== undefined) {
510
+ if (agentConfig.tools !== undefined) {
512
511
  return agentConfig;
513
512
  }
513
+ const mcpTools = {
514
+ websearch: "websearch_exa",
515
+ context7: "context7_query_docs",
516
+ grep_app: "grep_app_search"
517
+ };
518
+ const tools = {};
519
+ for (const mcp of defaults) {
520
+ const toolName = mcpTools[mcp];
521
+ if (toolName) {
522
+ tools[toolName] = true;
523
+ }
524
+ }
514
525
  const mcpInfo = this.buildMcpInfoSection(defaults);
515
526
  let prompt = agentConfig.prompt || "";
516
527
  if (!prompt.includes("<MCPs>")) {
@@ -520,7 +531,7 @@ class ConfigHandler {
520
531
  }
521
532
  return {
522
533
  ...agentConfig,
523
- mcps: defaults,
534
+ tools: { ...agentConfig.tools, ...tools },
524
535
  prompt
525
536
  };
526
537
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a4hgehad/weave-mcp",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Weave — lean OpenCode plugin with multi-agent orchestration + MCP support",
5
5
  "author": "3r3bu5",
6
6
  "license": "MIT",