Skip to main content
Glama
charlesmuchene

Android Preference Editor MCP Server

devices

Lists connected Android devices for viewing and editing preferences during app development.

Instructions

Lists connected Android devices

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'devices' tool on the MCP server. The inline handler lists connected Android devices by calling the external listDevices() function, maps device serials to text markdown content blocks, and handles errors gracefully.
    server.tool("devices", "Lists connected Android devices", async () => { try { return { content: (await listDevices()).map((device) => ({ type: "text", text: device.serial, })), }; } catch (error) { return { isError: true, content: [ { type: "text", text: error instanceof Error ? error.message : "Unknown error", }, ], }; } });
  • Defines the DeviceSchema Zod schema for device connections, imported into common.ts and used for subsequent device-related tools like list_apps.
    export const DeviceSchema = z.object({ deviceId: z.string().describe("The device's serial number."), });
  • src/index.ts:22-22 (registration)
    Calls configureCommonTools(server), which executes the registration of the 'devices' tool and other common tools.
    configureCommonTools(server);

Other Tools

Related Tools

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/charlesmuchene/pref-editor-mcp-server'

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