Skip to content

feat(mcp): add agent-stack resolution and list_agent_stacks tool (#1183, #1184)#1193

Merged
JeremyDev87 merged 3 commits into
masterfrom
taskmaestro/1775210758/pane-2
Apr 3, 2026
Merged

feat(mcp): add agent-stack resolution and list_agent_stacks tool (#1183, #1184)#1193
JeremyDev87 merged 3 commits into
masterfrom
taskmaestro/1775210758/pane-2

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Add AgentStackService for loading/resolving agent stack presets from default (packages/rules/.ai-rules/agent-stacks/) and custom (.codingbuddy/agent-stacks/) locations
  • Extend dispatch_agents MCP tool with agentStack parameter for preset-based agent dispatch
  • Add new list_agent_stacks MCP tool with optional category filter
  • Custom stacks override defaults (resolution: custom > default)
  • Backward compatible: explicit primaryAgent/specialists still take precedence over stack values

Closes #1183, Closes #1184

Changes

File Change
agent-stack.service.ts New service: listStacks(), resolveStack()
agent-stack.service.spec.ts 9 tests: load, resolve, custom override, validation
agent.handler.ts agentStack param on dispatch_agents + list_agent_stacks tool
agent.handler.spec.ts 15 new tests for stack dispatch + list stacks
agent.types.ts AgentStack, AgentStackSummary types + agentStack on DispatchAgentsInput
agent.module.ts Register AgentStackService provider
rules.service.ts Expose getRulesDir() getter

Test plan

  • AgentStackService: load from default dir, custom override, category filter, missing dir, invalid JSON, incomplete fields
  • dispatch_agents + agentStack: resolve stack → set primary+specialists, prefer explicit over stack, error on missing stack, backward compatible
  • list_agent_stacks: list all, category filter, no params, service error
  • 231 test files pass (5764 tests), 0 lint errors, type-check clean

…, #1184)

- Add AgentStackService for loading/resolving agent stack presets
- Extend dispatch_agents with agentStack parameter for preset-based dispatch
- Add list_agent_stacks MCP tool with optional category filter
- Stack resolution: custom (.codingbuddy/agent-stacks/) > default (rules/agent-stacks/)
- Backward compatible: explicit primaryAgent/specialists still override
@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 3, 2026 10:36am

Replace fs.PathLike and fs.Dirent references (not exported from
fs/promises) with unknown type assertions to fix CI type-check.
Cast overloaded fs.readdir/readFile mocks to vi.fn() to bypass
TypeScript overload resolution. Matches project convention used in
custom.service.spec.ts.

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Conductor Review — APPROVE

CI: 25/25 ALL PASS (type-check fix applied)

Review: APPROVE — 0 issues

Plan Verification (#1183 + #1184 combined):

  • AgentStackService with listStacks() and resolveStack()
  • Custom stacks (.codingbuddy/agent-stacks/) override default stacks
  • dispatch_agents accepts agentStack parameter
  • Stack resolves to primaryAgent + specialists correctly
  • list_agent_stacks MCP tool with category filter
  • Backward compatible (explicit agent lists still work)
  • Comprehensive tests for service + handler
  • NestJS module wired up (agent.module.ts)
  • RulesService extended for stack directory resolution

@JeremyDev87 JeremyDev87 self-assigned this Apr 3, 2026
@JeremyDev87 JeremyDev87 merged commit d54a95a into master Apr 3, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775210758/pane-2 branch April 3, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(mcp): add list_agent_stacks MCP tool feat(mcp): add agent-stack resolution to dispatch_agents

1 participant