Skip to main content
Glama
heresun

OrbStack MCP Server

by heresun

orbstack_k8s_status

Check the status of Kubernetes clusters running in OrbStack on macOS to monitor cluster health and availability.

Instructions

查看 OrbStack Kubernetes 集群的状态。

Returns: str: K8s 集群状态

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the `orbstack k8s status` command to retrieve the status of the Kubernetes cluster.
    async def orbstack_k8s_status() -> str:
        """查看 OrbStack Kubernetes 集群的状态。
    
        Returns:
            str: K8s 集群状态
        """
        code, stdout, stderr = await _run_orb(["k8s", "status"])
        if code != 0:
            return _format_error(stderr)
        return f"Kubernetes 状态:\n{stdout}" if stdout else "Kubernetes 状态: 未运行"
  • The registration decorator that defines the `orbstack_k8s_status` tool in the MCP server.
    @mcp.tool(
        name="orbstack_k8s_status",
        annotations={
            "title": "Kubernetes 状态",
            "readOnlyHint": True,
            "destructiveHint": False,
            "idempotentHint": True,
            "openWorldHint": False,
        },

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