Protocol Adapters¶
toolregistry-server provides protocol adapters that expose your custom tools as network services. Each adapter reads from the central RouteTable and translates tool definitions into protocol-specific endpoints.
Available Adapters¶
| Adapter | Protocol | Transport | Status |
|---|---|---|---|
| OpenAPI | REST/HTTP | HTTP | Stable |
| MCP | Model Context Protocol | stdio, SSE, Streamable HTTP | Stable |
| gRPC | gRPC | HTTP/2 | Planned |
How Adapters Work¶
All adapters share the same flow:
- Tools are registered in a
ToolRegistryinstance - A
RouteTablegeneratesRouteEntryobjects from the registry - The adapter reads
RouteEntryobjects and creates protocol-specific endpoints - Clients interact with tools via the adapter's protocol
Dynamic Behavior¶
Adapters read from the RouteTable at request time, which means:
- Enable/Disable: Tools can be toggled at runtime without restarting the server
- No drift: The adapter always reflects the current state of the
RouteTable - Observer pattern: Adapters can subscribe to
RouteTablechanges via listeners