Replies: 2 comments
-
|
Hi @ESnark, thanks for flagging. I can confirm expected routing if you share whether traffic comes from SSE/websocket clients and your exact endpoint/rewrites. I’ll post a corrected routing matrix to avoid ambiguity. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @ESnark, thanks for the detailed Kong config — your setup is actually correct and this behavior is intentional, though I agree it's not immediately intuitive. How When you set
This is standard ASGI behavior — mounted apps inherit Your Kong config is the correct approach. The token scoping middleware ( Simpler alternative: If you want uniform behavior, set This behavior is documented briefly in the configuration docs under the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
Because I'm new to FastAPI, I recently realized that app's root_path (configured as APP_ROOT_PATH) is automatically prepended to mounted routes, such as
/staticor/mcpAs a result of this behavior, I had to configure my reverse proxy so that it strips the common prefix path (
/{proxy}) for regular requests, while keeping the full path for mounted routes such as/{proxy}/staticHere's my kong gateway config:
Fortunately, it works well for now, but I wonder if this behavior is actually intended because It seems a bit complicated and counter-intuitive.
Let me know if I'm misusing mcp-context-forge or there is a better approach.
Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions