Skip to main content
Glama
moimran

EVE-NG MCP Server

by moimran

get_server_info

Retrieve EVE-NG server details including version, status, capabilities, and system information to monitor and manage network emulation environments.

Instructions

    Get EVE-NG server information and status.
    
    This tool retrieves detailed information about the EVE-NG server
    including version, status, capabilities, and system information.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_server_info tool handler function, decorated with @mcp.tool(), that retrieves EVE-NG server status and formats it for display.
    @mcp.tool()
    async def get_server_info() -> list[TextContent]:
        """
        Get EVE-NG server information and status.
        
        This tool retrieves detailed information about the EVE-NG server
        including version, status, capabilities, and system information.
        """
        try:
            logger.info("Retrieving EVE-NG server information")
            
            if not eveng_client.is_connected:
                return [TextContent(
                    type="text",
                    text="Not connected to EVE-NG server. Use connect_eveng_server tool first."
                )]
            
            # Get server status and information
            status = await eveng_client.get_server_status()
            
            # Format the information nicely
            info_text = "EVE-NG Server Information:\n\n"
            info_text += f"Server URL: {eveng_client.config.eveng.base_url}\n"
            info_text += f"Version: {status.get('version', 'Unknown')}\n"
            info_text += f"Status: {status.get('status', 'Unknown')}\n"
            info_text += f"Uptime: {status.get('uptime', 'Unknown')}\n"
            
            if 'cpu' in status:
                info_text += f"CPU Usage: {status['cpu']}%\n"
            if 'memory' in status:
                info_text += f"Memory Usage: {status['memory']}%\n"
            if 'disk' in status:
                info_text += f"Disk Usage: {status['disk']}%\n"
            
            return [TextContent(
                type="text",
                text=info_text
            )]
            
        except Exception as e:
            logger.error(f"Failed to get server info: {e}")
            return [TextContent(
                type="text",
                text=f"Failed to get server information: {str(e)}"
            )]
  • Registration of connection tools (including get_server_info) by calling register_connection_tools within the overall register_tools function.
    # Connection management tools
    register_connection_tools(mcp, eveng_client)
  • Top-level registration of all tools (including get_server_info) during server component initialization.
    # Register tools
    register_tools(self.mcp, self.eveng_client)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/moimran/eveng-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server