agent/php/tests/Feature/Mcp/Services
Snider 91551dec9b feat(mcp): implement extended RFC services + transport (#842)
Additive-only — no existing files modified.

Services (php/Mcp/Services/):
- CircuitBreaker (3-state, Cache::add trial lock)
- DataRedactor (28 sensitive + 16 PII keys, partial-redact algorithm)
- McpHealthService (YAML registry + JSON-RPC stdio ping protocolVersion 2024-11-05)
- McpMetricsService (p50/p95/p99 linear interpolation)
- McpWebhookDispatcher (mcp.tool.executed → WebhookEndpoints)
- OpenApiGenerator (OpenAPI 3.0.3)
- ToolRateLimiter (Cache::put first, Cache::increment after — no reset)
- AgentSessionService (php/Mod/Mcp/Services/ namespace per spec)

Transport (php/Mcp/Transport/):
- McpContext (transport-agnostic callbacks)
- Contracts/McpToolHandler interface

Resources (php/Mcp/Resources/):
- AppConfig, ContentResource, DatabaseSchema

Config: php/resources/mcp/registry.yaml.
Pest Feature tests _Good/_Bad/_Ugly per AX-10 for each new class.

Co-authored-by: Codex <noreply@openai.com>
Closes tasks.lthn.sh/view.php?id=842
2026-04-25 05:50:16 +01:00
..
AgentSessionServiceTest.php feat(mcp): implement extended RFC services + transport (#842) 2026-04-25 05:50:16 +01:00
CircuitBreakerTest.php feat(mcp): implement extended RFC services + transport (#842) 2026-04-25 05:50:16 +01:00
DataRedactorTest.php feat(mcp): implement extended RFC services + transport (#842) 2026-04-25 05:50:16 +01:00
McpHealthServiceTest.php feat(mcp): implement extended RFC services + transport (#842) 2026-04-25 05:50:16 +01:00
McpMetricsServiceTest.php feat(mcp): implement extended RFC services + transport (#842) 2026-04-25 05:50:16 +01:00
McpQuotaServiceTest.php feat(mcp): implement §3 Services (ToolRegistry + McpQuotaService + QueryAuditService + ToolDependencyService) (#851) 2026-04-25 05:14:15 +01:00
McpWebhookDispatcherTest.php feat(mcp): implement extended RFC services + transport (#842) 2026-04-25 05:50:16 +01:00
OpenApiGeneratorTest.php feat(mcp): implement extended RFC services + transport (#842) 2026-04-25 05:50:16 +01:00
QueryAuditServiceTest.php feat(mcp): implement §3 Services (ToolRegistry + McpQuotaService + QueryAuditService + ToolDependencyService) (#851) 2026-04-25 05:14:15 +01:00
ToolDependencyServiceTest.php feat(mcp): implement §3 Services (ToolRegistry + McpQuotaService + QueryAuditService + ToolDependencyService) (#851) 2026-04-25 05:14:15 +01:00
ToolRateLimiterTest.php feat(mcp): implement extended RFC services + transport (#842) 2026-04-25 05:50:16 +01:00
ToolRegistryTest.php feat(mcp): implement §3 Services (ToolRegistry + McpQuotaService + QueryAuditService + ToolDependencyService) (#851) 2026-04-25 05:14:15 +01:00