INNER CODE UNIT · Python

main

google/mcp-security · server/secops-soar/secops_soar_mcp/server.py:159

async def main():
    """Main function."""
    args = parser.parse_args()
    setup_logging(args.verbose)
    logger.info("Starting SecOps SOAR MCP server")
    try:
        await bindings.bind()
        register_tools(args.integrations)
        await mcp.run_stdio_async()
    except Exception as e:
        logger.error("Error: %s", e)
    finally:
        await bindings.cleanup()


def run_main():
    """Entry point function that properly awaits the async main function."""
    return asyncio.run(main())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…