refactor: Add http to --transport option

This commit is contained in:
Chris Coutinho
2025-09-20 22:23:13 +02:00
parent de7c848aa6
commit 71da620099
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ def get_app(transport: str = "sse", enabled_apps: list[str] | None = None):
if transport == "sse":
mcp_app = mcp.sse_app()
lifespan = None
else:
elif transport in ("http", "streamable-http"):
mcp_app = mcp.streamable_http_app()
@asynccontextmanager
@@ -117,7 +117,7 @@ def get_app(transport: str = "sse", enabled_apps: list[str] | None = None):
"-t",
default="sse",
show_default=True,
type=click.Choice(["sse", "streamable-http"]),
type=click.Choice(["sse", "streamable-http", "http"]),
)
@click.option(
"--enable-app",