@a4hgehad/weave-mcp 0.9.8 → 0.10.0

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 (3) hide show
  1. package/README.md +12 -12
  2. package/dist/index.js +7 -17
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -63,16 +63,16 @@ Detailed guides:
63
63
 
64
64
  ## Agents
65
65
 
66
- | Agent | Role | Mode | Description |
67
- | :--- | :--- | :--- | :--- |
68
- | **Loom** | main orchestrator | primary | The central team lead that plans tasks, coordinates work, and delegates to specialized agents. |
69
- | **Tapestry** | execution orchestrator | primary | Manages todo-list driven execution of multi-step plans, focusing on sequential implementation without subagent spawning. |
70
- | **Shuttle** | category worker | all | Domain-specific specialist worker with full tool access, dispatched dynamically via the category system. |
71
- | **Pattern** | strategic planner | subagent | Analyzes requirements and produces detailed implementation plans with research and dependency mapping. |
72
- | **Thread** | codebase explorer | subagent | Fast, read-only codebase navigation and analysis using grep, glob, and read tools. |
73
- | **Spindle** | external researcher | subagent | Performs external documentation lookups and reference searches, providing synthesized answers with source citations. |
74
- | **Weft** | reviewer/auditor | subagent | Reviews completed work and plans with a critical but fair eye, rejecting only for true blocking issues. |
75
- | **Warp** | security auditor | subagent | Audits code changes for security vulnerabilities and specification compliance with a skeptical bias. |
66
+ | Agent | Role | Mode | Default Display Name | Egyptian Name Example | Description |
67
+ | :--- | :--- | :--- | :--- | :--- | :--- |
68
+ | **Loom** | main orchestrator | primary | Loom (Main Orchestrator) | Ra (Orchestrator) | The central team lead that plans tasks, coordinates work, and delegates to specialized agents. |
69
+ | **Tapestry** | execution orchestrator | primary | Tapestry (Execution Orchestrator) | Anubis (Executor) | Manages todo-list driven execution of multi-step plans, focusing on sequential implementation without subagent spawning. |
70
+ | **Shuttle** | category worker | all | shuttle | Bastet (Specialist) | Domain-specific specialist worker with full tool access, dispatched dynamically via the category system. |
71
+ | **Pattern** | strategic planner | subagent | pattern | Thoth (Planner) | Analyzes requirements and produces detailed implementation plans with research and dependency mapping. |
72
+ | **Thread** | codebase explorer | subagent | thread | Horus (Explorer) | Fast, read-only codebase navigation and analysis using grep, glob, and read tools. |
73
+ | **Spindle** | external researcher | subagent | spindle | Seshat (Researcher) | Performs external documentation lookups and reference searches, providing synthesized answers with source citations. |
74
+ | **Weft** | reviewer/auditor | subagent | weft | Maat (Reviewer) | Reviews completed work and plans with a critical but fair eye, rejecting only for true blocking issues. |
75
+ | **Warp** | security auditor | subagent | warp | Sekhmet (Security) | Audits code changes for security vulnerabilities and specification compliance with a skeptical bias. |
76
76
 
77
77
  ### Agent Modes
78
78
 
@@ -241,7 +241,7 @@ The configuration uses JSONC format, allowing for comments and trailing commas.
241
241
  },
242
242
  "thread": {
243
243
  "model": "openai/gpt-4o-mini",
244
- "mcp": ["websearch", "grep_app"]
244
+ "mcps": ["websearch", "grep_app"]
245
245
  }
246
246
  },
247
247
  // Category-based dispatch overrides
@@ -350,7 +350,7 @@ The plugin automatically detects the `EXA_API_KEY` environment variable and incl
350
350
  // Override MCPs per agent
351
351
  "agents": {
352
352
  "thread": {
353
- "mcp": ["websearch", "grep_app"]
353
+ "mcps": ["websearch", "grep_app"]
354
354
  }
355
355
  }
356
356
  }
package/dist/index.js CHANGED
@@ -513,18 +513,8 @@ class ConfigHandler {
513
513
  return result;
514
514
  }
515
515
  applyAgentMcpDefaults(agentName, agentConfig) {
516
- const weaveConfig = agentConfig;
517
- const userMcps = weaveConfig.mcps ?? weaveConfig.mcp;
518
- const hasUserTools = agentConfig.tools !== undefined;
519
- let mcpsToApply;
520
- if (userMcps && userMcps.length > 0) {
521
- mcpsToApply = userMcps;
522
- } else if (hasUserTools) {
523
- return agentConfig;
524
- } else {
525
- mcpsToApply = getAgentMcpDefaults(agentName);
526
- }
527
- if (mcpsToApply.length === 0) {
516
+ const defaults = getAgentMcpDefaults(agentName);
517
+ if (defaults.length === 0) {
528
518
  return agentConfig;
529
519
  }
530
520
  const mcpTools = {
@@ -532,16 +522,16 @@ class ConfigHandler {
532
522
  context7: "context7_query_docs",
533
523
  grep_app: "grep_app_search"
534
524
  };
535
- const mcpToolEntries = {};
536
- for (const mcp of mcpsToApply) {
525
+ const tools = {};
526
+ for (const mcp of defaults) {
537
527
  const toolName = mcpTools[mcp];
538
528
  if (toolName) {
539
- mcpToolEntries[toolName] = true;
529
+ tools[toolName] = true;
540
530
  }
541
531
  }
542
532
  const existingTools = agentConfig.tools || {};
543
- const mergedTools = { ...existingTools, ...mcpToolEntries };
544
- const mcpInfo = this.buildMcpInfoSection(mcpsToApply);
533
+ const mergedTools = { ...existingTools, ...tools };
534
+ const mcpInfo = this.buildMcpInfoSection(defaults);
545
535
  let prompt = agentConfig.prompt || "";
546
536
  if (!prompt.includes("<MCPs>")) {
547
537
  prompt = prompt + `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a4hgehad/weave-mcp",
3
- "version": "0.9.8",
3
+ "version": "0.10.0",
4
4
  "description": "Weave — lean OpenCode plugin with multi-agent orchestration + MCP support",
5
5
  "author": "3r3bu5",
6
6
  "license": "MIT",