@a4hgehad/weave-mcp 0.9.0 → 0.9.1

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 +14 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -508,9 +508,21 @@ class ConfigHandler {
508
508
  if (defaults.length === 0) {
509
509
  return agentConfig;
510
510
  }
511
- if (agentConfig.mcps !== undefined) {
511
+ if (agentConfig.tools !== undefined) {
512
512
  return agentConfig;
513
513
  }
514
+ const mcpTools = {
515
+ websearch: "websearch_exa",
516
+ context7: "context7_query_docs",
517
+ grep_app: "grep_app_search"
518
+ };
519
+ const tools = {};
520
+ for (const mcp of defaults) {
521
+ const toolName = mcpTools[mcp];
522
+ if (toolName) {
523
+ tools[toolName] = true;
524
+ }
525
+ }
514
526
  const mcpInfo = this.buildMcpInfoSection(defaults);
515
527
  let prompt = agentConfig.prompt || "";
516
528
  if (!prompt.includes("<MCPs>")) {
@@ -520,7 +532,7 @@ class ConfigHandler {
520
532
  }
521
533
  return {
522
534
  ...agentConfig,
523
- mcps: defaults,
535
+ tools: { ...agentConfig.tools, ...tools },
524
536
  prompt
525
537
  };
526
538
  }
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.1",
4
4
  "description": "Weave — lean OpenCode plugin with multi-agent orchestration + MCP support",
5
5
  "author": "3r3bu5",
6
6
  "license": "MIT",