mcp-builder

A set of procedures for building, installing, testing, and diagnosing Android and iOS apps in a specific repository. It includes steps for detecting the available development tools and collecting diagnostics.

In plain words
What is it for?
Use it to detect the toolchain, build or install Android and iOS apps, run lint checks and tests, and gather reproducible failure details.
Why use it?
It gives coding agents a consistent way to handle mobile builds and installations, including common toolchain and device problems.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/clivejefferies/mobile-debug-tools/mcp-builder
Any agent
npx skills add clivejefferies/mobile-debug-tools --skill mcp-builder
Clone the repo
git clone --depth 1 https://github.com/clivejefferies/mobile-debug-tools

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 866 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00000 $0.00866
Opus 5 $0.00000 $0.00433
Sonnet 5 $0.00000 $0.00173
Haiku 4.5 $0.00000 $0.00087

Measured 2d ago against content hash 7e942f41ab62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp-builder scanned grade A with 1 finding 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 2d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Provide unit tests under test/skills/mcp-builder that mock child_process to validate happy/failure paths.
skills/mcp-builder/SKILL.md · 69 lines

How it starts

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

MCP Builder skill

name: mcp-builder version: 0.1.0 summary: Reusable procedures for building, validating and installing Android/iOS apps in this repo. Designed for agents to act autonomously with project-specific guidance.

Purpose

Provide concise, actionable procedures and schemas that encode the successful sequences used in mobile-debug-mcp: toolchain detection, build orchestration, install fallbacks, diagnostics collection, and verification (lint/tests). Keep core guidance short; link to references for details.

Activation conditions

Activate when an agent needs to:

  • build or install an app from this repository
  • diagnose failing CI/dev machine builds
  • run lint/tests and collect reproducible diagnostics

Surface area (actions)

  • detect-toolchain
  • build-android
  • install-android
  • build-ios
  • install-ios
  • run-lint
  • run-tests
  • collect-diagnostics

Core guidance (what agent must do)

  1. Prefer project conventions and existing helpers in src/utils and src/manage.
  2. Use detect-toolchain to decide JAVA_HOME/JBR preference and whether adb/idb/xcrun are available.
  3. For Android builds, call prepareGradle() to prepare child PATH and env, then run ./gradlew (wrapper) if present.
  4. For installs, parse adb output defensively (ignore streamed-install noise) and on failure fall back to push+pm path.
  5. For iOS installs, prefer simctl for simulators; if simctl fails check idb and attempt idb install with diagnostics.
  6. On any error, call collect-diagnostics and attach env snapshot, invoked commands, stdout/stderr, and suggested fixes.

Inputs & outputs (short schemas)

  • detect-toolchain(input: { platform: 'android'|'ios'|'both', preferJBR?: boolean }) -> { tools: [{name, cmd, ok, version, suggestion}] }
  • build-android(input: { projectPath, variant?, clean?, envOverrides? }) -> { success, artifactPath?, logs?, diagnostics? }
  • install-android(input: { appPath, projectPath?, deviceId?, allowBuild? }) -> { installed:boolean, device, output?, diagnostics? }
  • build-ios/install-ios: mirror Android schema but use scheme/workspace/project and resultBundlePath
  • run-lint/run-tests -> { exitCode, stdout, stderr, artifacts[] }
  • collect-diagnostics(input: { reason, platform? }) -> { artifacts: [{ name, contentBase64?, path? }], envSnapshot }

Read the full file on GitHub · 69 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 69 lines · 0 tokens per session scan A 7e942f41ab62

Subscribe to this mod's changes

mcp-builder is a skill published in the GitHub repository clivejefferies/mobile-debug-tools (7 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 866 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

byted-ai-mobileuse-agent

Skill "byted-ai-mobileuse-agent" from bytedance/agentkit-samples, covering mobile use agent (execution), python dependencies, input, output and local usage.

bytedance/agentkit-samples · 0 tokens

mobiai-mobile-executing-plans-with-subagents

ALWAYS invoke this when executing a mobile implementation plan in the current session with subagent support available. Drives fresh-subagent-per-task execution with mandatory two-stage review; do not hand-execute plan tasks in-session when this workflow applies.

ArisGuimera/MobiAI-Core · 59 tokens

mobiai-mobile-parallel-agents

ALWAYS invoke this before dispatching agents for two or more independent mobile problems (unrelated failures, separate subsystems, disjoint investigations). Do not spawn parallel agents ad hoc — this skill defines how to isolate their context and scope.

ArisGuimera/MobiAI-Core · 55 tokens

flutter-mcp-toolkit-custom-tools

Use this skill when the agent exposes app-specific surfaces by registering custom MCP tools and resources inside the Flutter app (mcptoolkit dynamic registry — AgentCallEntry, bootstrapFlutter additionalEntries / addEntries). Covers tool vs resource vs evaluate-expression, Map-based handlers, schema strictness…

Arenukvern/mcp_flutter · 86 tokens

maui-ai-tool-bindings

Use Microsoft.Maui.AI.Attributes to source-generate Microsoft.Extensions.AI tools for MAUI apps. USE FOR: ExportAIFunction, AIToolSource, AIToolContext, Default.Tools, DI-bound parameters, chat-session scopes, AOT-safe tools, and IChatClient.UseFunctionInvocation. DO NOT USE FOR: Essentials.AI chat or embeddings…

dotnet/maui-labs · 95 tokens

clawmobile-trace-induction

Record or summarize a ClawMobile demonstration and save a validated reusable skill candidate draft.

ClawMobile/ClawMobile · 25 tokens