Skip to main content
Glama

start_app

Launch Android applications on connected devices by specifying package names to initiate testing or usage.

Instructions

Start an app on the connected Android device

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
package_nameYes

Implementation Reference

  • The handler function for the 'start_app' tool. Decorated with @mcp.tool() for automatic registration in FastMCP. Launches the specified Android app package using 'adb shell monkey' command.
    @mcp.tool() def start_app(package_name: str) -> str: """Start an app on the connected Android device""" result = subprocess.run( [ "adb", "shell", "monkey", "-p", package_name, "-c", "android.intent.category.LAUNCHER", "1", ], capture_output=True, text=True, ) if result.returncode != 0: raise RuntimeError(f"Error starting app '{package_name}': {result.stderr}") return f"App '{package_name}' has been started successfully."

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/vs4vijay/espresso-mcp'

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