mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
generate_snapshot built each fragment by matching app.routes against the feature's
declared path_prefixes. A feature is free to register routes that do not sit under
its own prefixes, and several do: MCP owns /v1/mcp/oauth/authorize, /v1/mcp/oauth/token
and the /{mcp_server_name}/authorize|register|token catch-alls, and a2a owns
/v1/a2a/{agent_id}/message/send. None of them start with a declared prefix, so they
were dropped from the snapshot and /openapi.json never advertised them. Overlapping
prefixes had the opposite problem: guardrails and policy_engine both claim
/policies/usage, so those routes were written into two fragments.
Capture the routes each register_fn actually adds to the app instead. Every route is
then attributed to exactly one feature and nothing is dropped.
The spec now matches what the proxy would serve with every feature loaded: 561 paths
either way, nothing missing, nothing phantom.
|
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||