Skip to main content
Glama
XixianLiang

HarmonyOS MCP Server

by XixianLiang

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_appA

Get all installed packages on the device Returns: A list of all installed packages on the device as a string

launch_appC

launch app accrodingt to the given package name. Args: package_name: the package name of the package.

stop_appD
current_appA

Get the current foreground application information.

Returns: Tuple[str, str]: A tuple contain the package_name andpage_name of the foreground application. If no foreground application is found, returns (None, None).

media_play_pauseA

Play or pause media on the phone.

Sends the media play/pause keycode to control any currently active media. Can be used to play music or videos that were recently playing.

Returns: str: Success message if the command was sent, or an error message if the command failed.

media_nextC

play the next media

media_previousB

play the previous media

volume_upB

turn up the volume

volume_downB

turn down the volume

volume_muteC

mute the volume

get_uilayoutA

Retrieves information about clickable elements in the current UI. Returns a formatted string containing details about each clickable element, including its text, content description, bounds, and center coordinates.

Returns: str: A formatted list of clickable elements with their properties

get_screenshotA

Takes a screenshot of the device and returns it. Returns: Image: the screenshot

clickB

click the given coordinate Args: center: a string like "(x, y)", sample: "(227, 168)"

long_clickB

long click the given coordinate Args: center: a string like "(x, y)", sample: "(227, 168)"

swipeD
input_textC

input text to the given coordinate Args: center: a string like "(x, y)", sample: "(227, 168)" text: the text to input

Prompts

Interactive templates invoked by user choice

NameDescription
system_promptSystem prompt description

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/XixianLiang/HarmonyOS-mcp-server'

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