mcp-baepsae: Instructions file for Claude Code

CLAUDE.md

mcp-baepsae CLAUDE.md is an instructions file for Claude Code from oozoofrog/mcp-baepsae. It costs 1,477 tokens per session, scanned A, original, MIT.

Repository instructions for mcp-baepsae, a local MCP server that automates iOS Simulators and macOS apps. MCP is a standard way for an AI assistant to call tools, while this project uses TypeScript and Swift to provide those tools.

In plain words
What is it for?
Use them when developing, building, or testing the server's simulator and macOS app-automation tools.
Why use it?
They explain the two-layer design, available build and test commands, and the boundary between the TypeScript interface and native automation code.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is oozoofrog/mcp-baepsae's own configuration. It tells Claude Code how to work on mcp-baepsae itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-baepsae configures →

Reuse

Borrowing it

Nothing to install: this file belongs to oozoofrog/mcp-baepsae. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/oozoofrog/mcp-baepsae/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/oozoofrog/mcp-baepsae

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-baepsae CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/oozoofrog/mcp-baepsae/claude-md.svg)](https://agentmods.dev/instructions/oozoofrog/mcp-baepsae/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/oozoofrog/mcp-baepsae/claude-md"><img src="https://agentmods.dev/badge/instructions/oozoofrog/mcp-baepsae/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,477 This file is loaded in full into every session.
When invoked 1,477 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01477 $0.01477
Opus 5 $0.00739 $0.00739
Sonnet 5 $0.00295 $0.00295
Haiku 4.5 $0.00148 $0.00148

Measured 7d ago against content hash ec076d48d24b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mcp-baepsae CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Is

mcp-baepsae is a local MCP (Model Context Protocol) server for iOS Simulator and macOS app automation. It has two layers:

  • TypeScript MCP layer (src/) — exposes 32 MCP tools, validates inputs via Zod, spawns child processes. Entry point is src/index.ts; tools are registered in src/tools/*.ts modules.
  • Swift native bridge (native/) — a CLI binary (baepsae-native) that uses AppKit/CoreGraphics/Accessibility APIs for UI automation. Entry point is native/Sources/main.swift; command handlers are in native/Sources/Commands/*.swift.

The TS layer is the MCP surface; it delegates to either the native binary or xcrun simctl depending on the command.

Build & Test Commands

npm run build          # TypeScript (tsc) + Swift (release) build
npm run build:ts       # TypeScript only
npm run build:native   # Swift only: swift build --package-path native -c release
npm test               # Build + contract tests (no simulator needed)
npm run test:real      # Build + real simulator smoke tests (requires booted simulator)
npm run test:e2e       # Build sample app + real tests
npm run verify         # test + test:real

Single test file: node --test tests/mcp.contract.test.mjs

Architecture

TypeScript MCP layer (src/)

  • src/index.ts — Entry point: --version flag, MCP server setup, imports and calls registerXxxTools() from each tool module
  • src/types.ts — Shared TypeScript interfaces (ToolTextResult, CommandExecutionOptions, etc.)
  • src/utils.ts — Shared utilities and constants:
    • resolveNativeBinary() — finds the native binary (env override BAEPSAE_NATIVE_PATH → bundled → release → debug fallback)
    • executeCommand() — process spawn with timeout, SIGINT→SIGTERM escalation, stdout/stderr capture
    • runNative() / runSimctl() — bridge MCP tools to native CLI or xcrun simctl
    • toToolResult() — normalizes output into { content: text[], isError: boolean } shape
  • src/tools/ — Tool registration modules, each exports a registerXxxTools(server) function:
    • info.ts — baepsae_help, baepsae_version, list_apps, get_focused_app
    • simulator.ts — list_simulators, open_url, install_app, launch_app, terminate_app, uninstall_app
    • ui.ts — analyze_ui, query_ui, tap, type_text, swipe, scroll, drag_drop
    • input.ts — key, key_sequence, key_combo, button, touch, gesture
    • media.ts — stream_video, record_video, screenshot
    • system.ts — list_windows, activate_app, screenshot_app, right_click, menu_action, clipboard

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 112 lines · 1,477 tokens per session scan A ec076d48d24b

Subscribe to this mod's changes

mcp-baepsae CLAUDE.md is an instructions file published in the GitHub repository oozoofrog/mcp-baepsae (26 stars, last pushed 5mo ago), licensed MIT. It adds 1,477 tokens to every session, about $0.0074 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens