We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/narmaku/linux-mcp-server-archived'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
__main__.py•768 B
"""Main entry point for the Linux MCP Server."""
import logging
import sys
from .logging_config import setup_logging
from .server import main
def cli():
"""Console script entry point for the Linux MCP Server."""
# Initialize logging first, before any other operations
setup_logging()
logger = logging.getLogger(__name__)
logger.info("Starting Linux MCP Server")
try:
# FastMCP.run() creates its own event loop, don't use asyncio.run()
main()
except KeyboardInterrupt:
logger.info("Linux MCP Server stopped by user")
sys.exit(0)
except Exception as e:
logger.critical(f"Fatal error in Linux MCP Server: {e}", exc_info=True)
sys.exit(1)
if __name__ == "__main__":
cli()