Skip to content

Commit 2c1ba09

Browse files
authored
refactor: Remove deprecated SSE transport option (#98)
- Remove SSE(deprecated) transport handling in server.py and __init__.py
1 parent eaabe5b commit 2c1ba09

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/openstack_mcp_server/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def main():
3535
signal.signal(signal.SIGTERM, handle_interrupt)
3636

3737
# Validate transport protocol
38-
if MCP_TRANSPORT not in ["stdio", "sse", "streamable-http"]:
38+
if MCP_TRANSPORT not in ["stdio", "streamable-http"]:
3939
logger.error(
4040
f"Invalid transport protocol: {MCP_TRANSPORT}. Using stdio instead.",
4141
)

src/openstack_mcp_server/server.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,5 @@ def serve(transport: str, **kwargs):
2323
mcp.run(transport="stdio", **kwargs)
2424
elif transport == "streamable-http":
2525
mcp.run(transport="streamable-http", **kwargs)
26-
elif transport == "sse":
27-
mcp.run(transport="sse", **kwargs)
2826
else:
2927
raise ValueError(f"Unsupported transport: {transport}")

0 commit comments

Comments
 (0)