mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +02:00
update mcp endpoint
This commit is contained in:
parent
d895ac0fba
commit
8040458c36
2 changed files with 5 additions and 3 deletions
|
|
@ -100,6 +100,8 @@ api_router.include_router(main_router)
|
|||
# main router with api prefix
|
||||
app.include_router(api_router, prefix=API_PREFIX)
|
||||
|
||||
# Mount the MCP server — agents reach it at /mcp over Streamable HTTP,
|
||||
# Mount the MCP server — agents reach it at /api/v1/mcp over Streamable HTTP,
|
||||
# authenticating with the same X-API-Key header used by the REST API.
|
||||
app.mount("/mcp", mcp_app)
|
||||
# Mounted under /api/v1 so existing reverse-proxy rules (nginx etc.) route it
|
||||
# without any extra configuration.
|
||||
app.mount(f"{API_PREFIX}/mcp", mcp_app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue