INNER CODE UNIT · Python
_run_sse_http_async
RekklesNA/ProxmoxMCP-Plus · src/proxmox_mcp/server.py:381
async def _run_sse_http_async(self) -> None:
await self._run_streamable_http_async(sse=True)
def start(self) -> None:
"""Start the MCP server with the configured transport."""
import anyio
transport = self.config.mcp.transport
# Mirrors the dispatch below: anything that is not SSE or STREAMABLE
# is served over stdio.
uses_stdio = transport not in ("SSE", "STREAMABLE")
def signal_handler(signum: int, frame: object) -> None:
self.logger.info("Received signal to shutdown...")
if uses_stdio:
try:
self.close()
finally: