Borrowing it
Nothing to install: this file belongs to stixez/droid-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/stixez/droid-mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/stixez/droid-mcpWrote 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.
[](https://agentmods.dev/instructions/stixez/droid-mcp/claude-md)<a href="https://agentmods.dev/instructions/stixez/droid-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/stixez/droid-mcp/claude-md/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.
<a href="https://agentmods.dev/instructions/stixez/droid-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/stixez/droid-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.05005 | $0.05005 |
| Opus 5.5 | $0.02002 | $0.02002 |
| Sonnet 5.5 | $0.01001 | $0.01001 |
| Haiku 4.5 | $0.00500 | $0.00500 |
Grade A, and why
droid-mcp 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 218 lines — stays where its author put it; the contents beside it link to each section on GitHub.
droid-mcp
Android MCP SDK: 160 phone capabilities as tools, across 53 modules, for on-device LLMs (in-process calls) and desktop MCP clients (HTTP server on the phone).
Quick Reference
- Language: Kotlin 2.4, Android SDK 28+ (compile/target 36), Gradle 9.8, AGP 9 (built-in Kotlin — modules don't apply
kotlin.android) - Build:
./gradlew assembleDebug| Test:./gradlew :droid-mcp-core:test - Opt-in modules (not in
:droid-mcp-all, they pull third-party deps):shizuku,root(shell tools),audit(Room),tls(BouncyCastle),server-service - Checks before committing:
./gradlew assembleDebug testDebugUnitTest apiCheck lintDebug(CI runs the same)
Key Conventions
- Every tool implements
McpToolinterface:name,description,parameters,suspend fun execute() descriptionis what a model reads to pick a tool: one or two plain sentences that start with a verb, say what comes back, and name the sibling tool to use instead when two overlap (e.g.tapvsfind_and_tap). Leave out Android API names unless the model needs them; descriptions aren't part of the frozen wire contract- Every tool declares
outputSchema = OutputSchema.obj { ... }matching exactly whatexecute()returns on success:nullable = truefor values that can be null,optional = truefor keys only sometimes present, and no entry for a key passed towithImage()(it isn't instructuredContent) - Every module has a provider object (e.g.
CalendarTools) withall(context),requiredPermissions(),hasPermissions(context) - Modules with browsable data also expose
resources(...): aResourceProviderthat checks its own permissions, returns empty / null instead of throwing, and setsrequiredToolsto the tool serving the same data so gating that tool hides the resource too (media, files, contacts, calendar) - Limit params:
(params["limit"] as? Number)?.toInt()?.coerceIn(1, 100) ?: 10, declared withminimum = 1.0, maximum = 100.0so the schema advertises the clamp - Fixed-choice params declare
enumValues; numeric clamps declareminimum/maximum— keep them identical to whatexecute()enforces - ContentResolver queries: use
?.use { cursor -> }, NOLIMIT/OFFSETin sortOrder (handle in cursor loop) - File access: sandboxed via
PathValidator— external storage only - Shared module logic lives in
io.droidmcp.core.support(ActivityLaunch.canStartActivity,SqlLike.escape,StrictDates.parse,CalendarSupport.findWritableCalendarId,UsageAccess.isGranted,AppLabels,CompletionSupport.upcomingDates) — use these instead of module-local copies - Tool calls run on
Dispatchers.IO(enforced byToolRegistry.executeTool, with a per-call timeout — default 5 min,Builder.toolTimeout()), never main thread - No fully qualified names inline — use proper imports
- Long-running tools call
reportProgress(done, total, message)(no-op when nobody listens); tools needing user input can callelicit(message, schema)(returns null when unsupported)
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.
- 9d ago Changed · +1 lines · +92 tokens per session 251b2469aeea
- 19d ago Changed · +7 lines · +368 tokens per session 7d34d667db6e
- 1mo ago Changed · -2 lines · +472 tokens per session 72518227b099
- 2mo ago First seen · 212 lines · 4,073 tokens per session scan A d0ca7c3a8455
droid-mcp CLAUDE.md is an instructions file published in the GitHub repository stixez/droid-mcp (42 stars, last pushed yesterday), licensed Apache-2.0. It adds 5,005 tokens to every session, about $0.0200 per session on Opus 5.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.
droid-mcp CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| droid-mcp CLAUDE.mdstixez/droid-mcp | Instructions file | 42 | yesterday | Apache-2.0 | A | 5,005 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode ai-customization.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 1,907 | GitHub Copilot |