fix: enable proxy headers and allow forwarded IPs in uvicorn run

This commit is contained in:
sha
2026-03-20 23:26:21 +02:00
parent f2e2c6c326
commit aa08b58e58
+1 -1
View File
@@ -33,6 +33,6 @@ if __name__ == "__main__":
else:
print("Auth: disabled (MCP_AUTH_TOKEN not set).", flush=True)
uvicorn.run(app, host=host, port=port)
uvicorn.run(app, host=host, port=port, proxy_headers=True, forwarded_allow_ips="*")
else:
mcp.run(transport="stdio")