refactor: standardise error response format #37

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

Issue

MCP tools use inconsistent error response formats.

Current State

  • Some: ['error' => ...]
  • Others: ['success' => false, ...]

Expected

Single standardised format across all tools.

Acceptance Criteria

  • Define standard error response format
  • Update all tools to use standard format
  • Update AgentTool base class
  • Add tests for error responses
  • Document error format

References

  • TODO.md: CON-002
  • Mcp/Tools/Agent/AgentTool.php base class
## Issue MCP tools use inconsistent error response formats. ## Current State - Some: `['error' => ...]` - Others: `['success' => false, ...]` ## Expected Single standardised format across all tools. ## Acceptance Criteria - [ ] Define standard error response format - [ ] Update all tools to use standard format - [ ] Update `AgentTool` base class - [ ] Add tests for error responses - [ ] Document error format ## References - TODO.md: CON-002 - `Mcp/Tools/Agent/AgentTool.php` base class
Clotho added the
discovery
label 2026-02-20 03:02:42 +00:00
Charon added the
clotho
label 2026-02-20 10:57:36 +00:00
Charon added
PHP
refactor
P2
and removed
clotho
discovery
labels 2026-02-20 12:16:57 +00:00
Clotho was assigned by Charon 2026-02-20 12:20:56 +00:00
Snider added the
clotho
label 2026-02-21 00:38:53 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:25 +00:00
Sign in to join this conversation.
No description provided.