Borrowing it
Nothing to install: this file belongs to JuanCF/scrcpy-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/JuanCF/scrcpy-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/JuanCF/scrcpy-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/juancf/scrcpy-mcp/agents-md)<a href="https://agentmods.dev/instructions/juancf/scrcpy-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/juancf/scrcpy-mcp/agents-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/juancf/scrcpy-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/juancf/scrcpy-mcp/agents-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.01841 | $0.01841 |
| Opus 5.5 | $0.00736 | $0.00736 |
| Sonnet 5.5 | $0.00368 | $0.00368 |
| Haiku 4.5 | $0.00184 | $0.00184 |
Grade A, and why
scrcpy-mcp AGENTS.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 1mo 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 — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidelines for AI coding agents working on scrcpy-mcp.
Project Overview
scrcpy-mcp is a Model Context Protocol (MCP) server that provides AI agents with vision and control over Android devices via ADB and scrcpy. It exposes tools for device management, input, screenshots, and more.
Project Documentation
- docs/ROADMAP.md - Implementation roadmap with phases and milestones
- docs/PLAN.md - Detailed implementation plan with architecture and tool specifications
- docs/AUDIO_PLAN.md - Audio streaming design (phases, protocol facts, task checklist)
- docs/CONTRIBUTING.md - Contributor workflow
Build/Lint/Test Commands
# Build the project
npm run build
# Development mode (run directly with tsx)
npm run dev
# Run the built server
npm start
# Run MCP Inspector for testing
npm run inspect
# Lint check
npm run lint
# Lint with auto-fix
npm run lint:fix
# Type check
npx tsc --noEmit
# Run all tests
npm run test
# Run integration tests only
npm run test:integration
# Run a single test file
npx vitest run tests/example.test.ts
# Run tests matching a pattern
npx vitest run --testNamePattern "device"
Project Structure
src/
├── index.ts # Entry point, server setup, tool registration
├── utils/
│ ├── adb.ts # ADB utility functions (exec, device detection, etc.)
│ ├── audio.ts # Audio hub, playback sink, recording/clip encoder sinks
│ ├── ffmpeg.ts # ffmpeg/ffplay binary resolution
│ ├── scrcpy.ts # scrcpy session lifecycle, control protocol, video decode
│ ├── mjpeg.ts # HTTP MJPEG server and ffplay viewer launcher
│ └── constants.ts # Shared constants (protocol types, env vars, keycodes)
└── tools/
├── apps.ts # App management (start, stop, install, uninstall, list, current)
├── audio.ts # Audio streaming, recording, and clip capture tools
├── clipboard.ts # Clipboard get/set (scrcpy + ADB fallback)
├── device.ts # Device management (list, info, screen, panels, rotation, WiFi)
├── files.ts # File push/pull/list
├── input.ts # Touch/keyboard/scroll input (scrcpy + ADB fallback)
├── session.ts # scrcpy session start/stop
├── shell.ts # Arbitrary ADB shell command execution
├── ui.ts # UI hierarchy dump and element finder
├── video.ts # MJPEG video stream start/stop
└── vision.ts # Screenshot and recording
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.
- 1mo ago Changed · +1 lines · +29 tokens per session 75d691e52afd
- 1mo ago Changed · +5 lines · +119 tokens per session f2669494c577
- 2mo ago First seen · 224 lines · 1,693 tokens per session scan A 36c6e076c1bf
scrcpy-mcp AGENTS.md is an instructions file published in the GitHub repository JuanCF/scrcpy-mcp (131 stars, last pushed 1mo ago), licensed MIT. It adds 1,841 tokens to every session, about $0.0074 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.
scrcpy-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| scrcpy-mcp AGENTS.mdJuanCF/scrcpy-mcp | Instructions file | 131 | 1mo ago | MIT | A | 1,841 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| 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 model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |