test: add tests for AgentToolRegistry #14

Open
opened 2026-02-21 00:59:33 +00:00 by Clotho · 0 comments
Member

Summary

The AgentToolRegistry (src/Mcp/Services/AgentToolRegistry.php) has 11 methods with no unit tests.

What needs testing

  • Tool registration by agent
  • Tool lookup by name/category
  • Tool deregistration
  • Duplicate registration handling
  • Tool metadata validation
  • Registry isolation per agent

Files

  • src/Mcp/Services/AgentToolRegistry.php
  • src/Mcp/Tests/Unit/AgentToolRegistryTest.php (to be created)
## Summary The `AgentToolRegistry` (src/Mcp/Services/AgentToolRegistry.php) has 11 methods with no unit tests. ## What needs testing - Tool registration by agent - Tool lookup by name/category - Tool deregistration - Duplicate registration handling - Tool metadata validation - Registry isolation per agent ## Files - `src/Mcp/Services/AgentToolRegistry.php` - `src/Mcp/Tests/Unit/AgentToolRegistryTest.php` (to be created)
Clotho added the
testing
discovery
labels 2026-02-21 00:59:33 +00:00
Snider added the
clotho
label 2026-02-21 01:23:27 +00:00
Charon added the
agent-ready
label 2026-02-21 01:30:16 +00:00
Sign in to join this conversation.
No description provided.