test: add MCP tool tests (36 tools untested) #6

Open
opened 2026-02-20 03:01:54 +00:00 by Clotho · 0 comments
Member

Issue

All 36 MCP tools in Mcp/Tools/Agent/ lack test coverage.

Tools Requiring Tests

Content Tools (8)

  • ContentBatchGenerate
  • ContentBriefCreate
  • ContentGenerate
  • ContentUsageStats
  • ContentBriefGet
  • ContentFromPlan
  • ContentStatus
  • ContentBriefList

Phase Tools (3)

  • PhaseUpdateStatus
  • PhaseAddCheckpoint
  • PhaseGet

Plan Tools (5)

  • PlanArchive
  • PlanList
  • PlanUpdateStatus
  • PlanGet
  • PlanCreate

Task Tools (2)

  • TaskUpdate
  • TaskToggle

Session Tools (9)

  • SessionEnd
  • SessionContinue
  • SessionArtifact
  • SessionStart
  • SessionReplay
  • SessionHandoff
  • SessionList
  • SessionLog
  • SessionResume

State Tools (3)

  • StateSet
  • StateList
  • StateGet

Template Tools (3)

  • TemplateList
  • TemplateCreatePlan
  • TemplatePreview

Acceptance Criteria

  • Create test file for each tool
  • Cover happy path execution
  • Test input validation
  • Test error handling
  • Test workspace scoping
  • Test API key permissions

References

  • All tools extend AgentTool base class
  • Use Pest functional syntax per existing tests
## Issue All 36 MCP tools in `Mcp/Tools/Agent/` lack test coverage. ## Tools Requiring Tests ### Content Tools (8) - ContentBatchGenerate - ContentBriefCreate - ContentGenerate - ContentUsageStats - ContentBriefGet - ContentFromPlan - ContentStatus - ContentBriefList ### Phase Tools (3) - PhaseUpdateStatus - PhaseAddCheckpoint - PhaseGet ### Plan Tools (5) - PlanArchive - PlanList - PlanUpdateStatus - PlanGet - PlanCreate ### Task Tools (2) - TaskUpdate - TaskToggle ### Session Tools (9) - SessionEnd - SessionContinue - SessionArtifact - SessionStart - SessionReplay - SessionHandoff - SessionList - SessionLog - SessionResume ### State Tools (3) - StateSet - StateList - StateGet ### Template Tools (3) - TemplateList - TemplateCreatePlan - TemplatePreview ## Acceptance Criteria - [ ] Create test file for each tool - [ ] Cover happy path execution - [ ] Test input validation - [ ] Test error handling - [ ] Test workspace scoping - [ ] Test API key permissions ## References - All tools extend `AgentTool` base class - Use Pest functional syntax per existing tests
Clotho added the
discovery
label 2026-02-20 03:01:54 +00:00
Charon added
PHP
testing
P2
and removed
discovery
labels 2026-02-20 12:17:04 +00:00
Clotho was assigned by Charon 2026-02-20 12:21:01 +00:00
Snider added the
clotho
label 2026-02-21 00:39:09 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:37 +00:00
Sign in to join this conversation.
No description provided.