Skip to main content
ClaudeWave
iVamsi avatar
iVamsi

droid-agent-kit

Ver en GitHub

Local, permissioned MCP server giving AI coding agents real Android dev tools — Gradle, adb, logcat, lint, crash triage — instead of raw shell access

MCP ServersRegistry oficial1 estrellas0 forksKotlinNOASSERTIONActualizado today
Install in Claude Code / Claude Desktop
Method: NPX · @droidagentkit/launcher
Claude Code CLI
claude mcp add droid-agent-kit -- npx -y @droidagentkit/launcher
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "droid-agent-kit": {
      "command": "npx",
      "args": ["-y", "@droidagentkit/launcher"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Casos de uso

Resumen de MCP Servers

# DroidAgentKit

[![CI](https://github.com/iVamsi/droid-agent-kit/actions/workflows/ci.yml/badge.svg)](https://github.com/iVamsi/droid-agent-kit/actions/workflows/ci.yml)
[![CodeQL](https://github.com/iVamsi/droid-agent-kit/actions/workflows/codeql.yml/badge.svg)](https://github.com/iVamsi/droid-agent-kit/actions/workflows/codeql.yml)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/iVamsi/droid-agent-kit/badge)](https://scorecard.dev/viewer/?uri=github.com/iVamsi/droid-agent-kit)
[![License: Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
[![Kotlin](https://img.shields.io/badge/kotlin-JVM-7f52ff.svg)](https://kotlinlang.org)
[![MCP](https://img.shields.io/badge/MCP-compatible-informational.svg)](https://modelcontextprotocol.io)

Give your AI coding agent real Android tools — Gradle, adb, logcat, lint, crash triage — through a local, permissioned MCP server instead of raw shell access.

DroidAgentKit helps you work on Android projects with AI agents. It runs on your machine, talks to your Gradle tree and (when you allow it) your emulator or device, and gives agents structured answers instead of raw shell output.

Everything stays local. Commands go through allowlists. Output is redacted before it comes back to the agent. Artifacts land under `build/droidagentkit` by default.

## What you get

Three pieces that work on their own or together:

**MCP server** — A [Model Context Protocol](https://modelcontextprotocol.io) server your agent can call. Inspect the project, run safe Gradle tasks, capture logs and screenshots, triage crashes, run lint, profile builds, and more. Optional groups add device diagnostics, bounded device control, Perfetto tracing, visual regression, read-only app storage inspection, and experimental emulator network capture.

**Readiness auditor** — Scores how agent-friendly your repo is, lists risks, and can generate `AGENTS.md`, a project skill file, and a starter `.droidagentkit/config.yaml`. Use `--redact-public` when you need a share-safe report.

**Visual regression kit** — Pixel-diff reports for Compose/UI captures, a Gradle plugin, and a JUnit rule. MCP tools can diff goldens, generate reports, and update goldens when you explicitly confirm.

## MCP tools at a glance

The **core** group is on by default (15 tools): project inspect, allowlisted Gradle runs, device list, install/launch, logcat, screenshot, accessibility snapshot, report bundle, lint, crash triage, dependency check, build performance, test run, and build diagnose.

Turn on more by exposing tool groups when you start the server (see [security model](docs/security-and-permissions.md)):

| Group | What it adds |
| ----- | ------------ |
| `device_read` | Permission audit, dumpsys summaries, memory/battery, bugreport, streaming logcat jobs |
| `device_control` | Emulator control, app uninstall/clear, intents, permissions, tap/swipe/type, file push/pull, small action flows |
| `perfetto` | Trace capture and Trace Processor analysis (jank, CPU, contention, binder latency, …) |
| `visuals` | Pixel diff, visual report, golden updates |
| `storage` | Read-only SQLite, SharedPreferences, and file tree for **debuggable** apps |
| `network_experimental` | Emulator-only mitmproxy capture + redacted HAR query (requires your own debug CA) |

Dangerous actions (uninstall, clear data, proxy install, golden overwrite, …) need the right capability in config **and** `confirmDestructive=true` on the call.

Report bundles include a **capability summary**: which groups are exposed, which capabilities are enabled, and what you still need installed (adb, trace processor, mitmproxy, …). That summary is informational — it does not change your readiness score.

Full tool list and capability IDs: [`docs/security-and-permissions.md`](docs/security-and-permissions.md).

## Quick start

**Prerequisites:** JDK 17+ on `PATH`, Node 18+ (install-time only for the launcher). Optional:
Android `adb` / platform-tools for device tools; set `ANDROID_HOME` or configure `adbPath` in the
user policy (`~/.droidagentkit/policy.yaml`).

The `@droidagentkit/launcher` npm package downloads and caches the matching `droidagent-cli` jar from
[GitHub Releases](https://github.com/iVamsi/droid-agent-kit/releases) the first time it runs,
verifying its SHA-256 before executing it. The launcher always runs `serve-mcp` — for `init` /
`install-mcp` / `audit` use `java -jar` on the downloaded jar or build from source.

```bash
npx -y @droidagentkit/launcher --version
```

Point your agent's MCP config at it directly, e.g. for Claude Code:

```bash
claude mcp add droidagentkit -- npx -y @droidagentkit/launcher
```

### Building from source

If you're contributing, or want to run a version that isn't released yet:

```bash
./gradlew :cli:installDist
./cli/build/install/droidagent/bin/droidagent install-mcp
```

Register it once for your agent (Codex, Claude Code, Cursor, Zed, VS Code, Android Studio, …).
Preview without writing files with `install-mcp --dry-run`. For Android Studio across many
projects under one folder:

```bash
droidagent install-mcp --targets android-studio --projects-root ~/Developer/StudioProjects
```

Details and per-host config paths: [`docs/easy-mcp-installation.md`](docs/easy-mcp-installation.md).
Packaging/distribution decisions: [`docs/adrs/0001-packaging.md`](docs/adrs/0001-packaging.md).
Security model + full tool tables: [`docs/security-and-permissions.md`](docs/security-and-permissions.md).
CLI reference + troubleshooting: [`docs/cli-reference.md`](docs/cli-reference.md), [`docs/troubleshooting.md`](docs/troubleshooting.md).

## Try it in chat

After `install-mcp`, open an Android project and ask things like:

- "Inspect this Android project with DroidAgentKit."
- "Run the safe unit tests for the app module."
- "Audit this repo for agent readiness and write AGENTS.md."
- "Capture logcat and triage the crash."
- "What's in the app's SQLite schema?" (with `storage` + `app_data_read` enabled)
- "Capture a Perfetto trace and summarize frame jank." (with `perfetto` enabled)

You describe the goal; the agent picks tools from the list it was given at startup.

## How it works

1. Your agent starts `droidagent serve-mcp --transport stdio --project auto` (or talks to the localhost HTTP endpoint Android Studio uses on macOS).
2. MCP handshake (`initialize`, then `tools/list`).
3. The agent calls `android_*` tools via `tools/call`. You don't call them by hand.
4. `--project auto` resolves the active project from `CLAUDE_PROJECT_DIR`, `CODEX_WORKSPACE` /
   `CODEX_PROJECT_DIR`, `GEMINI_PROJECT_DIR` / `GEMINI_WORKSPACE`, `CURSOR_PROJECT_DIR` /
   `CURSOR_WORKSPACE`, `PWD`, then cwd — one user-wide install, many projects.

Optional **resources** and **workflow prompts** are available on non–Android Studio hosts. Tool listings include hints like `readOnlyHint` and `destructiveHint` where relevant.

## CLI without an agent

```bash
droidagent inspect --project /path/to/android --format markdown
droidagent audit --project /path/to/android --write-agents
droidagent audit --project /path/to/android --redact-public
droidagent devices --format json
droidagent serve-mcp --transport stdio --project auto
```

Run `droidagent --help` or `droidagent <command> --help` for flags.

### Generating a config file

```bash
droidagent init                          # interactive: six yes/no prompts explaining risk per area
droidagent init --profile device-control # non-interactive, for scripted setup
droidagent init --profile full           # everything, including storage and network capture
droidagent init --list-profiles          # see all profile names without writing anything
```

Only the `core` tool group (safe, read-only) is enabled by default. `droidagent init` is the fastest way to
turn on more without hand-writing `.droidagentkit/config.yaml` — see
[docs/security-and-permissions.md](docs/security-and-permissions.md) for what each group and capability
actually grants an agent.

## Configuration

Put `.droidagentkit/config.yaml` in your Android project root to tune Gradle allowlists, adb permissions, capability flags, redaction patterns, and report output paths. The auditor can seed a safe default when you run `audit --write-agents`.

## Status

Alpha. MCP tool names and schemas are treated as stable, but behavior will tighten as we learn from real use. No telemetry. No cloud dependency for core workflows.

## More docs

- [Security and permissions](docs/security-and-permissions.md) — capabilities, tool groups, destructive ops
- [Easy MCP installation](docs/easy-mcp-installation.md) — per-host setup
- [CLAUDE.md](CLAUDE.md) — build commands and architecture notes for contributors
agentic-aiai-agentsandroidandroid-developmentclaude-codeclideveloper-toolsgradlekotlinllm-toolsmcpmodel-context-protocol

Lo que la gente pregunta sobre droid-agent-kit

¿Qué es iVamsi/droid-agent-kit?

+

iVamsi/droid-agent-kit es mcp servers para el ecosistema de Claude AI. Local, permissioned MCP server giving AI coding agents real Android dev tools — Gradle, adb, logcat, lint, crash triage — instead of raw shell access Tiene 1 estrellas en GitHub y se actualizó por última vez today.

¿Cómo se instala droid-agent-kit?

+

Puedes instalar droid-agent-kit clonando el repositorio (https://github.com/iVamsi/droid-agent-kit) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar iVamsi/droid-agent-kit?

+

iVamsi/droid-agent-kit aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.

¿Quién mantiene iVamsi/droid-agent-kit?

+

iVamsi/droid-agent-kit es mantenido por iVamsi. La última actividad registrada en GitHub es de today, con 0 issues abiertos.

¿Hay alternativas a droid-agent-kit?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega droid-agent-kit en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: iVamsi/droid-agent-kit
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ivamsi-droid-agent-kit)](https://claudewave.com/repo/ivamsi-droid-agent-kit)
<a href="https://claudewave.com/repo/ivamsi-droid-agent-kit"><img src="https://claudewave.com/api/badge/ivamsi-droid-agent-kit" alt="Featured on ClaudeWave: iVamsi/droid-agent-kit" width="320" height="64" /></a>

Más MCP Servers

Alternativas a droid-agent-kit