Skip to main content
Glama
moimran
by moimran

start_node

Start a stopped node in an EVE-NG network lab to activate network simulation components for testing and configuration.

Instructions

Start a specific node.

This tool starts a node in the lab. The node must be in stopped state to be started successfully.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argumentsYes

Implementation Reference

  • The main handler function for the 'start_node' MCP tool. It validates input using NodeControlArgs, checks EVE-NG connection, delegates to eveng_client.start_node, and formats success/error responses as TextContent.
    @mcp.tool() async def start_node(arguments: NodeControlArgs) -> list[TextContent]: """ Start a specific node. This tool starts a node in the lab. The node must be in stopped state to be started successfully. """ try: logger.info(f"Starting node {arguments.node_id} in {arguments.lab_path}") if not eveng_client.is_connected: return [TextContent( type="text", text="Not connected to EVE-NG server. Use connect_eveng_server tool first." )] # Start node result = await eveng_client.start_node(arguments.lab_path, arguments.node_id) if result.get('status') == 'success': return [TextContent( type="text", text=f"Successfully started node {arguments.node_id} in {arguments.lab_path}\n\n" f"The node is now booting up. It may take a few moments to become fully operational." )] else: return [TextContent( type="text", text=f"Failed to start node: {result.get('message', 'Unknown error')}" )] except Exception as e: logger.error(f"Failed to start node: {e}") return [TextContent( type="text", text=f"Failed to start node: {str(e)}" )]
  • Pydantic model defining the required input schema (lab_path and node_id) for the start_node tool (shared with stop_node, wipe_node, etc.).
    class NodeControlArgs(BaseModel): """Arguments for node control operations.""" lab_path: str = Field(description="Full path to the lab (e.g., /lab_name.unl)") node_id: str = Field(description="Node ID to control")
  • Registration call to register_node_tools (which defines and registers start_node via @mcp.tool() decorator) as part of the main register_tools function.
    # Node management tools register_node_tools(mcp, eveng_client)
  • Supporting method in EVENGClientWrapper that ensures connection and calls the underlying EVE-NG SDK API to start the specified node.
    async def start_node(self, lab_path: str, node_id: str) -> Dict[str, Any]: """Start a specific node.""" await self.ensure_connected() try: result = await asyncio.to_thread(self.api.start_node, lab_path, node_id) self.logger.info("Started node", lab_path=lab_path, node_id=node_id) return result except Exception as e: self.logger.error("Failed to start node", **log_error(e, {"lab_path": lab_path, "node_id": node_id})) raise EVENGAPIError(f"Failed to start node: {str(e)}")

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