Feat: Enable MCP streamable-http model via docker compose (#9092)

### What problem does this PR solve?

Enable MCP streamable-http model via docker compose

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2025-07-30 09:43:29 +08:00
committed by GitHub
parent 98c78073c7
commit cfc339e4f3
3 changed files with 30 additions and 5 deletions

View File

@ -374,6 +374,10 @@ __ __ ____ ____ ____ _____ ______ _______ ____
print(f"MCP port: {PORT}", flush=True)
print(f"MCP base_url: {BASE_URL}", flush=True)
if not any([TRANSPORT_SSE_ENABLED, TRANSPORT_STREAMABLE_HTTP_ENABLED]):
print("At least one transport should be enabled, enable streamable-http automatically", flush=True)
TRANSPORT_STREAMABLE_HTTP_ENABLED = True
if TRANSPORT_SSE_ENABLED:
print("SSE transport enabled: yes", flush=True)
print("SSE endpoint available at /sse", flush=True)