Skip to main content
Glama
heresun

OrbStack MCP Server

by heresun

orbstack_compose_down

Stop and remove Docker Compose services to free system resources. Specify a project directory to manage container lifecycle.

Instructions

使用 Docker Compose 停止并移除服务。

Args: params: 包含项目目录

Returns: str: 停止结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Implementation Reference

  • The handler function 'orbstack_compose_down' that executes 'docker compose down' for a given project directory.
    async def orbstack_compose_down(params: DockerComposeInput) -> str:
        """使用 Docker Compose 停止并移除服务。
    
        Args:
            params: 包含项目目录
    
        Returns:
            str: 停止结果
        """
        args = ["compose", "-f", f"{params.project_dir}/docker-compose.yml", "down"]
    
        code, stdout, stderr = await _run_docker(args, timeout=120)
        if code != 0:
            return _format_error(stderr)
        return f"Compose 项目已停止\n{stdout or stderr}"
  • MCP tool registration for 'orbstack_compose_down'.
    @mcp.tool(
        name="orbstack_compose_down",
        annotations={
            "title": "停止 Compose 项目",
            "readOnlyHint": False,
            "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