refactor: Add http to --transport option

This commit is contained in:
Chris Coutinho
2025-09-20 22:22:06 +02:00
parent de7c848aa6
commit 71da620099
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
*
!pyproject.toml
!poetry.lock
!README.md
!uv.lock
!nextcloud_mcp_server/
!nextcloud_mcp_server/**/*.py
+1 -1
View File
@@ -6,4 +6,4 @@ COPY . .
RUN uv sync --locked --no-dev
ENTRYPOINT ["/app/.venv/bin/python", "-m", "nextcloud_mcp_server.app", "--host", "0.0.0.0"]
ENTRYPOINT ["/app/.venv/bin/nextcloud-mcp-server", "--host", "0.0.0.0"]
+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",