Skip to main content
Glama
heresun

OrbStack MCP Server

by heresun

orbstack_machine_push

Transfer files from macOS to Linux machines using OrbStack. Specify source path, optional destination, and target machine for file transfer operations.

Instructions

将文件从 macOS 推送到 Linux 机器。

Args: params: 包含源文件路径、可选的目标路径和机器名

Returns: str: 传输结果

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Implementation Reference

  • The implementation of the orbstack_machine_push tool handler.
    async def orbstack_machine_push(params: MachineFileTransferInput) -> str:
        """将文件从 macOS 推送到 Linux 机器。
    
        Args:
            params: 包含源文件路径、可选的目标路径和机器名
    
        Returns:
            str: 传输结果
        """
        args = ["push"]
        if params.machine:
            args.extend(["-m", params.machine])
        args.append(params.source)
        if params.destination:
            args.append(params.destination)
    
        code, stdout, stderr = await _run_orb(args)
        if code != 0:
            return _format_error(stderr)
        return f"文件已推送: {params.source}" + (f" -> {params.destination}" if params.destination else "")
  • Registration of the orbstack_machine_push tool using the @mcp.tool decorator.
    @mcp.tool(
        name="orbstack_machine_push",
        annotations={
            "title": "推送文件到 Linux 机器",
            "readOnlyHint": False,
            "destructiveHint": False,
            "idempotentHint": False,
            "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