mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user