Skip to main content
Glama
heresun

OrbStack MCP Server

by heresun

orbstack_machine_info

Retrieve detailed information about a specific Linux machine, including distribution, architecture, status, and IP address.

Instructions

获取指定 Linux 机器的详细信息。

包括发行版、架构、状态、IP 地址等。

Args: params: 包含机器名称

Returns: str: 机器详细信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Implementation Reference

  • The `orbstack_machine_info` tool definition and handler implementation. It uses `_run_orb` to fetch details for a specified machine.
    @mcp.tool(
        name="orbstack_machine_info",
        annotations={
            "title": "查看 Linux 机器详情",
            "readOnlyHint": True,
            "destructiveHint": False,
            "idempotentHint": True,
            "openWorldHint": False,
        },
    )
    async def orbstack_machine_info(params: MachineNameInput) -> str:
        """获取指定 Linux 机器的详细信息。
    
        包括发行版、架构、状态、IP 地址等。
    
        Args:
            params: 包含机器名称
    
        Returns:
            str: 机器详细信息
        """
        code, stdout, stderr = await _run_orb(["info", params.name])
        if code != 0:
            return _format_error(stderr)
        return f"机器 '{params.name}' 详情:\n{stdout}"
  • The `MachineNameInput` schema used by `orbstack_machine_info` and other tools, which validates the machine name input.
    class MachineNameInput(BaseModel):
        """需要机器名称的输入参数"""
        model_config = ConfigDict(str_strip_whitespace=True, extra="forbid")
    
        name: str = Field(
            ...,
            description="Linux 机器的名称",
            min_length=1,

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/heresun/orbstack-mcp'

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