Skip to main content
Glama
heresun

OrbStack MCP Server

by heresun

orbstack_docker_images

List all local Docker images in a formatted table to manage container resources on macOS through OrbStack.

Instructions

列出本地所有 Docker 镜像。

Returns: str: 镜像列表(格式化表格)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function `orbstack_docker_images` that executes `docker images` and returns the formatted output.
    async def orbstack_docker_images() -> str:
        """列出本地所有 Docker 镜像。
    
        Returns:
            str: 镜像列表(格式化表格)
        """
        args = ["images", "--format", "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}\t{{.CreatedSince}}"]
        code, stdout, stderr = await _run_docker(args)
        if code != 0:
            return _format_error(stderr)
        if not stdout:
  • Registration of the `orbstack_docker_images` tool using the @mcp.tool decorator.
    @mcp.tool(
        name="orbstack_docker_images",
        annotations={
            "title": "列出 Docker 镜像",
            "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