Initialization flow
During initialization the proxy creates a session and attaches the MCP SDK server transport. This is the point wherename and version are announced to the client.
Tool discovery flow
Tool discovery is whereonListTools filters run. Use this to hide internal tools or to expose only the subset allowed for the current user.
Tool call flow with middleware
Hooks run first and can short-circuit a call. Middleware runs next and can enforce policy, inject guidance, and augment logs. The server is only invoked when middleware allows it.Where to go next
- For policy and access control, see Middleware.
- For targeted audits, see Hooks.
- For transport details, see Transports.