Borrowing it
Nothing to install: this file belongs to axonixtools/PocketMCP. 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/axonixtools/PocketMCP/master/AGENTS.mdgit clone --depth 1 https://github.com/axonixtools/PocketMCPWrote 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/axonixtools/pocketmcp/agents-md)<a href="https://agentmods.dev/instructions/axonixtools/pocketmcp/agents-md"><img src="https://agentmods.dev/badge/instructions/axonixtools/pocketmcp/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/axonixtools/pocketmcp/agents-md"><img src="https://agentmods.dev/badge/instructions/axonixtools/pocketmcp/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.05348 | $0.05348 |
| Opus 5.5 | $0.02139 | $0.02139 |
| Sonnet 5.5 | $0.01070 | $0.01070 |
| Haiku 4.5 | $0.00535 | $0.00535 |
Grade C, and why
PocketMCP AGENTS.md scanned grade C 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 20d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **Shell tool** blocks dangerous fragments (`rm -rf`/`rm -fr`/`rm -r -f`/`rm -f -r`, `mkfs`, `dd if=`, `reboot`, `poweroff`, `halt`, `fastboot`, fork bombs, `setenforce 0`, `pm uninstall`). Max command length 500 chars, How it starts
The opening of the file, as written. The whole thing — 358 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PocketMCP — Agent Guide
Purpose: This document helps AI coding agents understand the PocketMCP project quickly and make safe, correct changes.
Project Overview
PocketMCP is an Android application that turns a phone into an MCP (Model Context Protocol) server. Desktop AI agents and scripts can call the phone over LAN (or Tailscale) to execute tools like sending messages, checking notifications, running shell commands, controlling the screen, and querying device sensors.
- App package:
com.pocketmcp - Language: Kotlin (Android)
- License: MIT
- Server version: derived from the Gradle
versionName(1.0.0-beta.9) viaBuildConfig.VERSION_NAMEinMcpServer.kt - Protocol version:
2024-11-05
Repository Layout
phone-mcp/
├── app/ # Android app module (Gradle subproject)
│ ├── src/main/java/com/pocketmcp/
│ │ ├── MainActivity.kt # Single-activity Compose host + app state
│ │ ├── accessibility/ # PhoneAccessibilityService.kt
│ │ ├── agent/ # Experimental orchestration (NLU -> plan -> execute)
│ │ ├── security/ # SecurePrefs (Keystore-encrypted storage)
│ │ ├── server/ # Ktor MCP HTTP/WebSocket server + JSON-RPC types
│ │ ├── service/ # McpServerService (Android foreground service)
│ │ ├── tools/ # ~35 MCP tool implementations
│ │ ├── ui/ # Compose theme, components, screens
│ │ └── util/ # ApiKeyGenerator, McpConfigBuilder
│ ├── src/main/res/ # strings, colors, drawables
│ ├── src/main/assets/ # app_action_presets.json (human-intelligence presets)
│ ├── src/main/AndroidManifest.xml
│ ├── src/test/java/ # JVM unit tests (JUnit 4)
│ └── build.gradle.kts # App-level build config
├── .github/workflows/ # CI: build + unit tests on push/PR
├── mcp-bridge/ # Node.js stdio-to-HTTP MCP bridge
│ ├── bridge.mjs # Main entry point
│ └── package.json
├── scripts/
│ ├── setup-emulator-mcp.ps1 # PowerShell ADB port-forward helper for emulators
│ ├── setup-wireless-adb.ps1 # One-time wireless-ADB unlock: pair, grant WRITE_SECURE_SETTINGS, enable accessibility + notification listener
│ └── pocket.mjs # Instant command runner — local intent library + chains ("pocket open youtube and torch on"), zero AI
├── pocket_mcp_client.py # Python client library + CLI
├── mcp-config.example.json # Example MCP client config (Claude Desktop, Cursor, etc.)
├── build.gradle.kts # Root build file
├── settings.gradle.kts # Project settings
├── gradle.properties # Gradle JVM options, AndroidX flags
└── README.md # User-facing documentation
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.
- 20d ago Changed · +20 lines · +602 tokens per session fe3e40b191bc
- 21d ago First seen · 338 lines · 4,746 tokens per session scan C 609661591957
PocketMCP AGENTS.md is an instructions file published in the GitHub repository axonixtools/PocketMCP (19 stars, last pushed 20d ago), licensed MIT. It adds 5,348 tokens to every session, about $0.0214 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.
PocketMCP AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| PocketMCP AGENTS.mdaxonixtools/PocketMCP | Instructions file | 19 | 20d ago | MIT | C | 5,348 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |