Skip to main content
Glama

app_activate

Bring iTerm2 to the front of your screen to resume terminal work or switch between applications quickly.

Instructions

Activate iTerm2 (bring to front).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Primary MCP tool handler for 'app_activate'. Decorated with @mcp.tool(), this async function activates iTerm2 by calling app.async_activate() through the _run helper. Returns 'iTerm2 activated' on success.
    async def app_activate() -> str:
        """Activate iTerm2 (bring to front)."""
    
        async def _impl(connection: iterm2.Connection, app: iterm2.App) -> str:
            await app.async_activate()
            return "iTerm2 activated"
    
        return await _run(_impl)
  • Batch operation handler '_b_app_activate' for use within the batch() tool. Directly calls app.async_activate() without the _run wrapper since the connection is already established.
    async def _b_app_activate(
        connection: iterm2.Connection, app: iterm2.App, **_: Any,
    ) -> str:
        await app.async_activate()
        return "iTerm2 activated"
  • Registration of 'app_activate' in the batch operations dictionary, mapping the operation name to its handler function _b_app_activate.
    "app_activate": _b_app_activate,
  • Security tier assignment for 'app_activate' tool, classified as Tier.INTERACT in the security configuration.
    "app_activate": Tier.INTERACT,

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/urjitbhatia/it2mcp'

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