INNER CODE UNIT · Python

start

RekklesNA/ProxmoxMCP-Plus · src/proxmox_mcp/server.py:384

    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:
                    _exit_without_finalization()
            else:
                self.close()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…