astrolabe

astrolabe

Enables AI agents to inspect and verify mobile UI hierarchies, nodes, styles, screenshots, and runtime attributes of iOS apps in simulators or on USB devices.

Category
Visit Server

README

Astrolabe

Astrolabe is a runtime UI inspection tool for AI coding agents. It combines a Swift CLI, a local MCP server, and a packaged Codex skill to inspect and verify running mobile interfaces.

Features

  • Discover supported apps running in iOS simulators or on paired USB devices.
  • Inspect UI hierarchies, node frames, visibility, text, styles, semantic roles, and detailed runtime attributes.
  • Capture native-resolution screenshots and compare them with expected images or recorded baselines.
  • Query nodes and verify style, layout, and node-detail expectations.
  • Keep related hierarchy operations bound to a frozen page snapshot.
  • Apply allowlisted, in-memory presentation patches in Debug builds and revert them without changing source code or persistent application state.
  • Expose the same inspection workflow through CLI commands, MCP tools, and the bundled astrolabe skill.

Requirements

  • macOS 13 or later
  • Swift 5.9 or later
  • Node.js 22 or later
  • A supported app with an Astrolabe Runtime SDK enabled in Debug builds

Installation

Clone the repository and install Astrolabe for Codex:

git clone https://github.com/regulusleow/astrolabe.git
cd astrolabe
npm run install:codex

The installer builds the CLI and MCP adapter, installs the package under ~/.astrolabe/package, links the bundled skill into ~/.agents/skills/astrolabe, and updates the managed Astrolabe sections in ~/.codex/config.toml.

Restart Codex or open a new Codex session after installation.

Installation management commands:

npm run reinstall:codex
npm run update:codex
npm run check:codex
npm run uninstall:codex

Quick Start

Launch a Debug build that includes a supported Runtime SDK, then discover it:

astrolabe list-apps --json

Use the returned appId with inspection commands:

astrolabe inspect-screen <app-id> --json
astrolabe capture-hierarchy <app-id> --json
astrolabe find-nodes <app-id> --role text --visible-only --limit 20 --json
astrolabe inspect-node <app-id> --oid <oid> --json
astrolabe node-detail <app-id> <oid> --json
astrolabe capture-screenshot <app-id> --output /tmp/screen.png --source auto --json

Hierarchy commands return a snapshotId. Pass it to subsequent hierarchy, node, style, and layout commands to keep the workflow bound to the captured page. Screenshot and visual comparison commands always use the latest screen.

The installed MCP server exposes the same capabilities to Codex. The bundled skill guides app discovery, snapshot reuse, node selection, runtime checks, screenshots, visual comparison, and temporary presentation experiments. Codex is currently the only officially supported AI coding platform.

Development

Install dependencies and run the test suites:

npm ci
npm --prefix mcp-adapter ci
npm test
swift test --parallel

Build the Release CLI:

swift build -c release --product astrolabe

Run end-to-end smoke tests with a supported app running:

npm run test:smoke
npm run test:usb

Repositories

Astrolabe Host consumes the shared protocol directly and does not depend on a platform Runtime implementation package.

Roadmap

  • Android Runtime and Host support.
  • Integrations for additional AI coding platforms.

License

Astrolabe is available under the Apache License 2.0. Components derived from third-party projects remain subject to their original licenses; see THIRD_PARTY_NOTICES for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured