mcp-android-server-python: Agent for Claude Code

.claude/commands/agents/espresso-code-generator.md

espresso-code-generator is an agent for Claude Code from manuelsiuro/mcp-android-server-python. It costs 0 tokens per session (819 once invoked), scanned A, original, MIT.

An agent that turns recorded Android interaction scenarios into complete Espresso tests in Kotlin or Java. Espresso is Android's framework for writing user-interface tests.

In plain words
What is it for?
It generates test files, imports, comments, custom actions, and optional idling resources from scenario JSON files, while identifying XML, Compose, or hybrid interfaces.
Why use it?
It removes the need to translate every recorded action into test code by hand and reports warnings when a scenario may need special handling.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

This is manuelsiuro/mcp-android-server-python's own configuration. It tells Claude Code how to work on mcp-android-server-python 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-android-server-python configures →

Reuse

Borrowing it

Nothing to install: this file belongs to manuelsiuro/mcp-android-server-python. 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/manuelsiuro/mcp-android-server-python/main/.claude/commands/agents/espresso-code-generator.md
Clone the repo
git clone --depth 1 https://github.com/manuelsiuro/mcp-android-server-python

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 espresso-code-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/manuelsiuro/mcp-android-server-python/espresso-code-generator/github.svg)](https://agentmods.dev/agents/manuelsiuro/mcp-android-server-python/espresso-code-generator)
Your own site
<a href="https://agentmods.dev/agents/manuelsiuro/mcp-android-server-python/espresso-code-generator"><img src="https://agentmods.dev/badge/agents/manuelsiuro/mcp-android-server-python/espresso-code-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for espresso-code-generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/manuelsiuro/mcp-android-server-python/espresso-code-generator"><img src="https://agentmods.dev/badge/agents/manuelsiuro/mcp-android-server-python/espresso-code-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 819 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00819
Opus 5.5 $0.00000 $0.00328
Sonnet 5.5 $0.00000 $0.00164
Haiku 4.5 $0.00000 $0.00082

Measured 2mo ago against content hash 937e7c7dd1da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

espresso-code-generator 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 2mo 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/commands/agents/espresso-code-generator.md · 113 lines

How it starts

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

EspressoCodeGenerator Agent

You are an EspressoCodeGenerator Agent, specialized in generating Espresso test code from recorded scenarios.

Role

Primary agent that generates complete, compilable Espresso test code in Kotlin or Java from scenario JSON files.

Inputs

  • scenario_file: (required) Path to scenario JSON file
  • language: (optional) "kotlin" | "java" (default: "kotlin")
  • package_name: (optional) Java package name (default: "com.example.app")
  • class_name: (optional) Test class name (auto-generated from scenario name if not provided)
  • options: (optional) Code generation options:
    • include_comments: bool (default: true)
    • use_idling_resources: bool (default: false)
    • generate_custom_actions: bool (default: true)

Processing Steps

Outputs

{
  "code": "package com.example.app\n\nimport...",
  "file_path": "generated_tests/LoginFlowTest.kt",
  "imports": [
    "import androidx.test.espresso.Espresso.onView",
    "import androidx.test.espresso.action.ViewActions.click"
  ],
  "custom_actions": [],
  "warnings": [
    "Action 5 uses coordinate-based click (Compose detected)"
  ],
  "ui_framework": "xml" | "compose" | "hybrid"
}

Read the full file on GitHub · 113 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. 2mo ago First seen · 113 lines · 0 tokens per session scan A 937e7c7dd1da

Subscribe to this mod's changes

espresso-code-generator is an agent published in the GitHub repository manuelsiuro/mcp-android-server-python (0 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 819 tokens. 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-31.

Related

Other agents, from other repositories

gem-mobile-tester

Mobile E2E testing: Detox, Maestro, iOS/Android simulators.

github/awesome-copilot · 22 tokens

rn-pr-qa

Device-tests a GitHub pull request on iOS simulator, Android emulator, and/or a physical device using rn-dev-agent. Installs the PR head, exercises the change, and reports pass/fail with repro steps and screenshots/logs. PARENT-SESSION-ONLY: requires MCP tools (cdp, device, rnsession) — do NOT spawn via Task tool, run…

Lykhoyda/rn-dev-agent · 299 tokens

testing-specialist

Swift testing expert. Covers Swift Testing framework (@Test, @Suite, #expect), XCTest, UI testing, mocking patterns, testable architecture, snapshot testing, code coverage, and deterministic async testing.

The-Artificer-of-Ciphers-LLC/skills-from-the-artificer · 44 tokens

android-emulator-tester

Automated Android UI/integration testing specialist; the agent that drives a real Android app on a headless emulator under WSL/Linux and gates on what it observes. Use when the task is "run the app on an emulator", "smoke-test a screen", "drive the Android UI", "reproduce a tap-and-crash / ANR", "automate an Android…

simiancraft/simiancraft-skills · 247 tokens

mobile-tester

Tests a Flutter or mobile app like a real user on an Android AVD or iOS simulator, verifying with parsed screenshots and integration tests. - Use when an app build needs a real run on an emulator or simulator, with screenshots as evidence. Read-only on source; reports pass/fail with evidence paths. Spawn one per app…

uwuclxdy/agenticat · 73 tokens

mobile-mobile-qa

Mobile QA engineer that tests mobile applications, performs device testing, and ensures quality.

MonumentalSystems/Atlas-Agent-Teams · 20 tokens