Skip to main content
Glama
McpCommand.kt851 B
package maestro.cli.command import picocli.CommandLine import java.util.concurrent.Callable import maestro.cli.mcp.runMaestroMcpServer import java.io.File import maestro.cli.util.WorkingDirectory @CommandLine.Command( name = "mcp", description = [ "Starts the Maestro MCP server, exposing Maestro device and automation commands as Model Context Protocol (MCP) tools over STDIO for LLM agents and automation clients." ], ) class McpCommand : Callable<Int> { @CommandLine.Option( names = ["--working-dir"], description = ["Base working directory for resolving files"] ) private var workingDir: File? = null override fun call(): Int { if (workingDir != null) { WorkingDirectory.baseDir = workingDir!!.absoluteFile } runMaestroMcpServer() return 0 } }

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/mobile-dev-inc/Maestro'

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