tools-capability
MCP capability interfaces for focused business logic
Capability interfaces provide a clean separation between MCP protocol handling
and domain-specific business logic. Components implementing these interfaces focus
solely on their functionality (tools, prompts, resources) without dealing with:
- JSON-RPC protocol details
- Request routing and delegation
- Response merging across multiple providers
- Error code mapping
Capability components are automatically wrapped by middleware at composition time,
which handles all protocol concerns and integrates them into the server-handler pipeline.
Architecture:
Client → Transport → [Middleware(Capability₁)] → [Middleware(Capability₂)] → ... → Response