mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[GH-ISSUE #17] Using relative links to openapi.json urls #13
Labels
No labels
bug
can't reproduce
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/mcpo#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MHugonKaliop on GitHub (Apr 2, 2025).
Original GitHub issue: https://github.com/open-webui/mcpo/issues/17
I'm using open-webui on a server behind a nginx proxy for https support.
After installing mcpo server, I was unable to make it work within open-webui because mcp server is exposed through http on port 8000 (default behaviour), resulting in various warnings and triggers in the browser...
So i've updated my nginx configuration in order to create a route for mcpo. My rule is simple, https://myserver/mcp redirects internally to http://myserver:8000 (I rewrite the url and removes the "mcp" part for mcpo.
This way, I was able to configure it, but my issue is that when trying to access https://myserver/mcp/xxx/docs, I've got an error due to the url sent back for openapi.json, which is https://myserver/xxx/openapi.json.
Is it possible to use relative link ? This way I'll receive https://myserver/mcp/xxx/openapi.json, and it will work.
Or maybe we could configure this prefix directly in mcpo, with somethink like :
mcpo --host 0.0.0.0 --port 8000 --url_path mcp ....
@tjbck commented on GitHub (Apr 2, 2025):
Hmm, not sure if this will be trivial but would love to review a PR for this!