Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
VPHONE_API_TOKENYesSecure API token required for all connections. Used for HMAC-SHA256 signing of sensitive operations.
VPHONE_LOG_LEVELNoLog level for the server. Valid values include DEBUG, INFO, WARNING, ERROR.INFO
VPHONE_BRIDGE_SOCKETNoPath to the Unix Domain Socket used to communicate with the vphone-cli Swift daemon./tmp/vphone_bridge.sock

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
vphone_connectA

Connect to the vphone bridge.

Establishes a connection to the bridge daemon and performs handshake. Returns bridge capabilities and protocol version.

The connection uses authentication via VPHONE_API_TOKEN environment variable if set. The token is sent as a Bearer token in the handshake.

vphone_disconnectA

Disconnect from the vphone bridge.

Closes the UDS connection and transitions to DISCONNECTED state. All in-flight requests are cancelled with CONNECTION_LOST error.

vphone_statusA

Get the current connection status.

Returns the current state of the bridge connection without sending any messages to the bridge. This queries the internal state machine.

States:

  • disconnected: No active connection

  • connecting: Connection in progress

  • connected: Active connection ready for requests

  • reconnecting: Connection lost, attempting recovery

  • error: Connection failed

vphone_pingA

Ping the bridge to check connectivity.

Sends a ping message and measures round-trip latency. Requires an active connection.

Raises: NotConnectedError: If not connected to bridge ConnectionUnavailableError: If bridge is reconnecting

vphone_versionA

Get the bridge version information.

Returns protocol version and supported features. Requires an active connection.

Raises: NotConnectedError: If not connected to bridge ConnectionUnavailableError: If bridge is reconnecting

vphone_hid_pressA

Press and release a HID button.

Sends a HID button press and release event. This is a complete press cycle (down then up) in a single operation.

Args: page: HID usage page (e.g., 0x0C for Consumer page) usage: HID usage code within the page

Returns: HIDPressOutput with success status

vphone_hid_downA

Press and hold a HID button.

Sends a HID button down event. The button remains pressed until vphone_hid_up is called with the same page and usage.

Args: page: HID usage page (e.g., 0x0C for Consumer page) usage: HID usage code within the page

Returns: HIDKeyOutput with success status

vphone_hid_upA

Release a held HID button.

Sends a HID button up event. Releases a button that was previously pressed with vphone_hid_down.

Args: page: HID usage page (e.g., 0x0C for Consumer page) usage: HID usage code within the page

Returns: HIDKeyOutput with success status

vphone_homeA

Press the Home button.

Simulates pressing the home button on the device. Equivalent to vphone_hid_press(HIDPage.CONSUMER, HIDUsage.HOME).

vphone_powerA

Press the Power button.

Simulates pressing the power button on the device. Short press: sleep/wake. Long press: power dialog. Equivalent to vphone_hid_press(HIDPage.CONSUMER, HIDUsage.POWER).

vphone_volume_upA

Press the Volume Up button.

Simulates pressing the volume up button on the device. Equivalent to vphone_hid_press(HIDPage.CONSUMER, HIDUsage.VOLUME_UP).

vphone_volume_downA

Press the Volume Down button.

Simulates pressing the volume down button on the device. Equivalent to vphone_hid_press(HIDPage.CONSUMER, HIDUsage.VOLUME_DOWN).

vphone_set_locationB

Set the simulated GPS location of the device.

Simulates a complete GPS location fix with all standard Core Location parameters. The device will report this location to all apps requesting location services.

Args: latitude: Latitude in degrees (-90.0 to 90.0) longitude: Longitude in degrees (-180.0 to 180.0) altitude: Altitude in meters (default: 0.0) horizontal_accuracy: Horizontal accuracy in meters (default: 5.0) vertical_accuracy: Vertical accuracy in meters (default: 5.0) speed: Speed in meters per second (default: 0.0) course: Direction of travel in degrees, 0=north, 90=east (default: 0.0) timestamp: Unix timestamp for the location fix (default: current time)

Returns: SetLocationOutput with success status and confirmed coordinates

Raises: NotConnectedError: If not connected to bridge ConnectionUnavailableError: If bridge is reconnecting

vphone_stop_locationA

Stop location simulation.

Resets the device location to real GPS.

vphone_file_listA

List directory contents.

Lists files and directories in the specified path. The path must be within an allowed directory (/var/mobile/Documents, /var/mobile/Media/DCIM, /var/mobile/Media/Pictures, or /var/tmp).

Args: path: Absolute directory path to list. recursive: If True, list contents recursively.

Returns: FileListOutput with list of FileInfo entries.

Raises: PathSecurityError: If path validation fails. NotConnectedError: If not connected to bridge.

vphone_file_downloadA

Download file content or metadata.

Downloads a file from the device. Can retrieve just metadata or the full content. Content is returned encoded as base64 or hex.

Args: path: Absolute file path to download. encoding: Content encoding ("base64" or "hex"). include_content: If True, include file content in response. max_size_mb: Maximum file size to download in megabytes. follow_symlinks: If True, follow symlinks (blocked by default). offset: Start offset for partial reads. length: Number of bytes to read (0 = entire file).

Returns: FileGetOutput with metadata and optionally content.

Raises: PathSecurityError: If path validation fails or symlink detected. FileNotFoundError: If file does not exist. NotConnectedError: If not connected to bridge.

vphone_file_uploadA

Upload file content (no overwrite).

Uploads a file to the device. Fails if the file already exists. The path must be within an allowed directory.

Args: path: Absolute destination file path. data: File content encoded as base64 or hex. encoding: Content encoding ("base64" or "hex"). permissions: Unix file permissions (e.g., "644").

Returns: FilePutOutput with path and size.

Raises: PathSecurityError: If path validation fails. FileExistsError: If file already exists. NotConnectedError: If not connected to bridge.

vphone_file_mkdirA

Create a directory.

Creates a directory at the specified path. Optionally creates parent directories and/or ignores existing directories.

Args: path: Absolute directory path to create. parents: If True, create parent directories as needed. exist_ok: If True, don't error if directory exists.

Returns: FileMkdirOutput with path and creation status.

Raises: PathSecurityError: If path validation fails. NotConnectedError: If not connected to bridge.

vphone_file_delete_previewA

Preview file deletion.

Generates a preview of what would be deleted. Returns a token that must be used to confirm the deletion within 5 minutes.

Args: path: Absolute path to delete (file or directory).

Returns: FileDeletePreviewOutput with preview token and would_delete list.

Raises: PathSecurityError: If path validation fails. FileNotFoundError: If path does not exist. NotConnectedError: If not connected to bridge.

vphone_file_delete_confirmA

Execute file deletion.

Executes the deletion after validating the preview token. The token must be valid, not expired, and match the path exactly.

Args: path: Absolute path to delete. preview_token: Token returned by vphone_file_delete_preview. confirm: Must be True to execute deletion.

Returns: FileDeleteConfirmOutput with deletion results.

Raises: PathSecurityError: If path validation fails. VPhoneError: If preview token is invalid or expired. NotConnectedError: If not connected to bridge.

vphone_file_rename_previewA

Preview file rename/move operation.

Generates a preview of the rename operation. Returns a token that must be used to confirm the rename within 5 minutes.

Args: old_path: Current path of file or directory. new_path: New path for file or directory.

Returns: FileRenamePreviewOutput with preview token and overwrite status.

Raises: PathSecurityError: If either path validation fails. FileNotFoundError: If old_path does not exist. NotConnectedError: If not connected to bridge.

vphone_file_rename_confirmA

Execute file rename/move operation.

Executes the rename after validating the preview token. The token must be valid, not expired, and match both paths exactly.

Args: old_path: Current path of file or directory. new_path: New path for file or directory. preview_token: Token returned by vphone_file_rename_preview. confirm: Must be True to execute rename.

Returns: FileRenameConfirmOutput with rename results.

Raises: PathSecurityError: If either path validation fails. VPhoneError: If preview token is invalid or expired. NotConnectedError: If not connected to bridge.

vphone_devmode_statusA

Query the current developer mode status on the guest.

Returns the current state of developer mode on the iOS guest. Developer mode is required for certain development operations.

Returns: DevModeStatusOutput with enabled status

Raises: NotConnectedError: If not connected to bridge ConnectionUnavailableError: If bridge is reconnecting

vphone_devmode_enableA

Arm developer mode on the guest device.

Arms developer mode which will be activated after the next reboot. This does not immediately enable developer mode - the device must be restarted for the change to take effect.

Returns: DevModeEnableOutput with success status and message

Raises: NotConnectedError: If not connected to bridge ConnectionUnavailableError: If bridge is reconnecting VPhoneError: If developer mode arm fails

vphone_ipa_install_previewA

Preview an IPA installation.

Validates the IPA file and returns installation preview information. The preview token must be used to confirm the installation within 5 minutes.

Args: ipa_path: Absolute path to the IPA file on the guest filesystem. Must be within an allowed directory. registration: Registration type for the app - "User" or "System". User registration installs for the current user. System registration installs for all users.

Returns: IPAInstallPreviewOutput with preview token and app information

Raises: PathSecurityError: If path validation fails FileNotFoundError: If IPA file does not exist VPhoneError: If registration type is invalid NotConnectedError: If not connected to bridge

vphone_ipa_install_confirmA

Execute an IPA installation after preview confirmation.

Installs the IPA file that was previously previewed. The preview token must be valid, not expired, and match the IPA path exactly.

Args: ipa_path: Absolute path to the IPA file on the guest filesystem. preview_token: Token returned by vphone_ipa_install_preview.

Returns: IPAInstallConfirmOutput with installation result and app details

Raises: PathSecurityError: If path validation fails VPhoneError: If preview token is invalid or installation fails NotConnectedError: If not connected to bridge

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 26 tools

Disambiguation4/5

Each tool targets a distinct resource/action, and preview/confirm pairs are clearly separated with explicit token requirements. The main overlap is that vphone_power, vphone_volume_up/down, and vphone_home are convenience wrappers explicitly documented as equivalent to vphone_hid_press, so an agent may hesitate between the specific button and the generic HID tool, but descriptions resolve this.

Naming Consistency5/5

All tools use snake_case with a uniform vphone_ prefix and a consistent resource_action pattern (vphone_file_list, vphone_ipa_install_preview, vphone_hid_press). Domain groupings (file_, ipa_, devmode_, hid_) are consistently applied.

Tool Count3/5

At 26 tools this is on the heavy side. Several are arguably redundant—power/volume/home duplicate hid_press, and five connection tools (connect, disconnect, status, ping, version) plus preview/confirm duos inflate the surface beyond what's strictly needed.

Completeness4/5

File lifecycle (list, download, upload, mkdir, delete, rename) is well covered, and location/HID/connection/IPA/devmode areas have their core operations. Minor gaps exist: no in-place file update or overwrite (upload fails if file exists), no file copy, and no IPA uninstall or devmode disable, though these are workaround-able.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues