Servers Changes Log Check Watch Why How it works GitHub

adb-automation-mcp

pypi/adb-automation-mcp · pypi:adb-automation-mcp

Primera observación
2026-10-11
Sin cambios desde
2026-11-02
Última observación
2026-11-30
Observaciones
12
Cambios registrados
Herramientas
106

Definiciones de herramientas en la última observación (106)

  • capture_heap_dump — Capture a heap dump and save it to the host: `adb shell am dumpheap` then `adb pull`. Dumps the managed heap (or the native heap with native=true) of a running process to a device temp file, pulls it into `<ADB_AUTOMATION_LOCAL_ROOT>/heapdumps/`, and deletes the temp file (on success and on failure). Categorized `write` because it forces the target process to pause and serialize its heap. The .hp …
  • capture_native_backtrace — Capture native thread backtraces for a running process: `adb shell debuggerd -b <pid>`. Dumps every thread's native call stack without stopping the process. Returns the parsed header (process name, ABI), a per-thread summary (name / tid / frame count), and the full backtrace text (capped). This is a privileged operation on production builds — a device that isn't rooted/userdebug rejects it.
  • capture_native_tombstone — Request a full native tombstone for a process and save it to the host: `adb shell debuggerd <pid>`. Triggers a full crash-style dump (registers, memory map, all thread backtraces) for a running process and writes the human-readable tombstone text into `<ADB_AUTOMATION_LOCAL_ROOT>/tombstones/`. Categorized `write` because it's a high-impact diagnostic that briefly pauses the target's threads, and …
  • capture_system_trace — Capture a bounded Perfetto system trace: `adb shell perfetto ...` + `adb pull`. v1 exposes semantic presets rather than a raw Perfetto config. Each preset maps to a curated set of scheduler / atrace categories: `cpu`, `scheduling`, `graphics`, `app_startup`, `memory`, `binder`. The trace runs for duration_seconds (1-120), is pulled into `<ADB_AUTOMATION_LOCAL_ROOT>/traces/`, and the device-side f …
  • check_adb_available — Check whether the adb binary is reachable and able to list connected devices. This is the right first call when anything else on this server is failing or behaving unexpectedly — it tells you whether the problem is "adb itself isn't working" versus something specific to a device or command.
  • clear_app_cache — Clear only a package's cache, leaving its data intact. Prefers `adb shell pm clear --cache-only` (Android 11+). If that command is unsupported, or hangs (a known bug on some emulator images), it falls back to removing the package's per-user cache directories directly (`/data/user*/<uid>/<pkg>/cache` and `code_cache`) — which needs adbd running as root. Either path touches only cache, never the ap …
  • clear_debug_app — Clear ActivityManager's configured debug app: `adb shell am clear-debug-app`. Undoes a previous set_debug_app. Idempotent — calling it when no debug app is set is a successful no-op, and `cleared` being true does not imply one had been configured.
  • clear_heap_watch — Clear a previously configured heap watch: `adb shell am clear-watch-heap`. Undoes set_heap_watch for a package. Idempotent — clearing when nothing is watched is a successful no-op.
  • clear_logs — Clear a device's log buffer: `adb shell logcat -c -b BUFFER`. Pairs with read_logs for the standard debugging workflow: clear, reproduce the issue, then read_logs to see only what happened since. Wipes diagnostic history, not user/app data, so this is "write" rather than "destructive".
  • connect_device — Connect to a device over TCP/IP: `adb connect host:port`. Use this for devices reached over the network rather than USB — e.g. a device already switched into TCP/IP mode (`adb tcpip <port>` while it was on USB), or a remote/cloud emulator.
  • create_forward — Forward a host TCP port to a device TCP port: `adb -s serial forward tcp:L tcp:R`. Sets up a tunnel so a client on this host can reach a server listening inside the device — e.g. exposing the device's `tcp:8080` as host `tcp:6100` for a local integration test. The mapping lives in the local adb server until removed or until adb restarts.
  • create_reverse — Reverse-forward a device TCP port to a host TCP port: `adb -s serial reverse tcp:R tcp:L`. The mirror image of create_forward — lets a process on the device reach a server running on this host, e.g. so an app under test on the emulator can call a mock HTTP server on `localhost:7000` of the host.
  • create_user — Create a full secondary Android user on a device: `adb shell pm create-user NAME`. Creates the user only — it does not switch to it (use switch_user separately if that's the goal). name is shell-quoted before being sent to the device, verified live to handle spaces and shell metacharacters safely.
  • disconnect_device — Disconnect a device connected over TCP/IP: `adb disconnect host:port`. The opposite of connect_device — use it to cleanly drop a TCP/IP connection instead of leaving it dangling.
  • dump_ui_hierarchy — Retrieve the device's current UI hierarchy: `uiautomator dump`. `uiautomator dump` only writes its result to a file on the device, so this dumps to a temporary path under `/data/local/tmp`, reads the XML back inline over `adb shell` (no host filesystem write, no local_root needed — the caller never has to know or manage the device-side path), and always removes the temporary file afterward. To se …
  • dump_user — Dump detailed Android user info for a device: `adb shell dumpsys user`. UserManagerService's diagnostic dump — every user's state, flags, restrictions, and running/locked status — far more detail than get_current_user's bare user ID. No userId argument: verified live that `dumpsys user`'s optional userId has no effect at all (`dumpsys user 0`, `dumpsys user 10`, and `dumpsys user 9999` all produc …
  • find_ui_elements — Search the current UI hierarchy for nodes matching structured criteria. Captures the hierarchy the same way dump_ui_hierarchy does, then filters `<node>` elements in Python and returns each match flattened to the attributes callers act on (text, resource_id, class, bounds + the bounds' center point, and the usual boolean state flags). At least one criterion must be given; all supplied criteria ar …
  • force_stop_app — Force-stop an Android package on a device: `adb shell am force-stop`. Stops every process and component of the package, if any are running, and marks the package "stopped" until something explicitly launches it again. This is the heavy hammer — for a gentler, background-only kill that leaves package state alone, see kill_background_processes. Not a per-process kill: it operates on a package, not …
  • generate_bugreport — Generate a full Android bugreport and save it to the host: `adb -s <serial> bugreport <local_path>`. Runs the host `adb bugreport`, which builds the report on the device, pulls it back, and (on modern devices) produces a single `.zip`. The file lands under `<ADB_AUTOMATION_LOCAL_ROOT>/bugreports/`. The archive is large and is not embedded in the response — only its path and size. Categorized `wri …
  • get_adb_version — Report the version of the adb client this server is driving. Useful before attempting anything whose availability depends on the host's platform-tools release — wireless pairing, split-APK install, incremental delivery — so an agent can check the host is new enough instead of failing mid-automation and guessing why. Reads `adb version`; changes nothing.
  • get_anr_reports — Get a package's ANR reports from the device's DropBox (`adb shell dumpsys dropbox --print data_app_anr`, and again for `system_app_anr`). DropBox is the system store `DropBoxManagerService` keeps for crash / ANR records (the same source `adb bugreport` and `DropBoxManager` read). `dumpsys dropbox --print` accepts one tag at a time, so this queries both ANR tags, parses each entry's header block a …
  • get_app_memory_details — Detailed memory breakdown for one app: `adb shell dumpsys meminfo -a`. Returns the App Summary totals plus the per-mapping table (categories: "Native Heap", "Dalvik Heap", ".so mmap", ... "TOTAL"), the "Objects" section (view / binder / parcel / WebView counts) and the "SQL" section. Sections vary by Android version, so objects and sql come back as maps and are empty when absent. The raw dump tex …
  • get_app_memory_summary — Compact memory snapshot for one app/process: `adb shell dumpsys meminfo -s`. Parses only the stable "App Summary" totals (Java/Native heap, Code, Stack, Graphics, Private Other, System, and TOTAL PSS/RSS/SWAP), all in kilobytes. For the full per-mapping / object / SQL breakdown use get_app_memory_details.
  • get_binder_call_stats — Get Binder IPC call statistics: `adb shell dumpsys binder_calls_stats`. Returns the sampling interval, the "Summary:" totals (total CPU time, call count, average per-call CPU), a bounded list of the top per-UID callers, and the "Exceptions thrown" tally. The large raw per-call rows are never returned. Binder-call-stats collection is often off by default — when it is, collecting is false and the t …
  • get_connectivity_state — Curated connectivity snapshot: `adb shell dumpsys connectivity`. The right check before a test that needs the internet — confirm there's an active default network and that it's validated. `dumpsys connectivity` is huge and its format drifts between Android versions, so this reads only a small stable slice: the active default network id and, per network in the "Current Networks:" section, its tran …
  • get_current_user — Get the current Android user on a device: `adb shell am get-current-user`. Relevant on multi-user devices (work profiles, guest users, Android Automotive) where more than one user account can exist; most single-user devices just report user 0 (the primary/owner user).
  • get_date_time — Get the device's current system date/time: `adb shell date`. Always reads the DEVICE's own clock via `date`, never the MCP host's — the returned timestamp reflects what the device itself reports. Requests an explicit, machine-readable ISO-8601-shaped `+FORMAT` rather than `date`'s locale-dependent default human-readable output, so the result is predictable to parse. Setting the date/time or time …
  • get_display_density — Get a display's density in dpi: `adb shell wm density [-d display_id]`. Record this before a density-override test so you can restore it after, or to convert between dp and px for layout assertions. Returns the panel's physical density and, when a `wm density N` override is in effect, the override too — plus the effective density apps see. Setting or resetting the density isn't implemented here.
  • get_display_size — Get a display's pixel dimensions: `adb shell wm size [-d display_id]`. Read this before coordinate-based `tap`/`swipe` automation so taps land where you expect. Returns the panel's physical resolution and, when a `wm size WxH` override is currently in effect, the override too — plus the effective resolution apps actually see (the override if set, else physical). Setting or resetting the size isn' …
  • get_foreground_activity — Report the currently resumed/top Activity: `adb shell dumpsys activity activities`. The way to confirm what's actually in front after a start_activity (or a tap, or a back press) — parses the resumed-activity markers out of dumpsys instead of returning the raw dump.
  • get_frame_stats — Get an app's rendering / jank statistics: `adb shell dumpsys gfxinfo <package> framestats`. Parses gfxinfo's stable summary block — total frames, janky frame count and percentage, frame-time percentiles, and the "Number <x>:" jank counters (missed vsync, high input latency, slow UI thread, ...). The large raw per-frame CSV that `framestats` also emits is never parsed or returned; the frame-time H …
  • get_log_buffer_size — Report a log buffer's ring size and usage: `adb shell logcat -g -b BUFFER`. Cheap, read-only introspection — useful before deciding max_lines for read_logs, or whether to clear_logs first.
  • get_memory_history — Historical memory bands for a package: `adb shell dumpsys procstats --hours <hours> <package>`. Reads procstats' "Process summary" min/avg/max PSS/USS/RSS bands per process state ("TOTAL", "Top", "Persistent", ...) accumulated over the requested window. procstats samples lazily, so a package that hasn't been sampled in the window returns has_history=false — a normal result, not an error.
  • get_memory_maps — Get a process's memory-map aggregates: `adb shell cat /proc/<pid>/smaps_rollup`. Returns the kernel's own rollup totals for a process — Rss/Pss, the shared/private clean/dirty split, and swap — all in kilobytes. This is a fixed compact model, not a generic /proc reader. Access may be restricted to root by SELinux on some builds.
  • get_package_info — Curated snapshot of an installed package: `adb shell dumpsys package <pkg>`. Parses the stable, automation-relevant fields out of dumpsys — version, UID, install/update times, code path, data dir, installer, flags, per-user enabled/installed state, and requested vs. granted permissions — instead of returning the (very large, version-variable) raw dump. Fields dumpsys doesn't report on a given And …
  • get_package_path — Resolve an installed package's on-device APK paths: `adb shell pm path`. Use this before pulling or analyzing an app's APKs — it returns the base APK plus any split APKs (`split_config.*`) for a split-installed app, so a follow-up pull can fetch every piece.
  • get_package_permissions — A package's full permission picture: `adb shell dumpsys package <pkg>`. Read this before calling grant_permission / revoke_permission blindly — it shows what the package requests, what its manifest defines, and what's actually granted (install-time, and runtime per Android user with flags). Parses the stable permission sub-blocks out of dumpsys, not the whole dump.
  • get_power_state — Get the device's current high-level power state: `adb shell dumpsys power`. `dumpsys power`'s full output is large and full of unstable implementation detail, so this deliberately extracts only two fields: wakefulness (the device's core sleep/wake state) and, when present, whether it's currently interactive. Nothing else from the dump is parsed or exposed. Power-related control (reboot, shutdown, …
  • get_process_exit_history — Get a package's recent process-exit records: `adb shell dumpsys activity exit-info <package>`. ActivityManager keeps a bounded `ApplicationExitInfo` ring per package. This parses it into typed records — reason (crash / ANR / low-memory kill / self-exit / signalled), timestamp, pid, importance, pss/rss, and whether a trace was captured — so an agent can explain why an app died. Reading only. A pac …
  • get_process_id — Resolve a process/package name to its PIDs: `adb shell pidof`. Returns a list because one name can back several processes (an app with multiple `android:process` entries). A name with nothing running is a normal result (running=false, empty list), not an error — `pidof` can't distinguish "not installed" from "installed but not running", so neither does this.
  • get_process_memory — Read a curated memory snapshot for a process: `adb shell dumpsys meminfo -s`. Runs meminfo in summary mode and extracts only its stable "App Summary" Pss categories and the "TOTAL PSS / RSS / SWAP" line — the volatile per-mapping detail is dropped. All values are kilobyte integers exactly as meminfo reports them; no unit conversion is applied.
  • get_property — Get the value of one Android system property: `adb shell getprop NAME`.
  • get_property_metadata — Get metadata for one Android system property: value plus (where supported) its SELinux security context and declared type, via `adb shell getprop NAME` and `adb shell getprop -Z NAME`.
  • get_routes — List the device's kernel routing table: `adb shell ip route`. Use this to diagnose why a device with an IP address still can't reach a host — a missing default route, or traffic leaving the wrong interface. Each line `ip` prints is parsed into destination / gateway / dev / src / proto / scope / metric, with the original line kept as `raw`. Changing routes isn't implemented here.
  • get_service_status — Status snapshot for one Android Service: `adb shell dumpsys activity services <component>`. The way to verify what start_service / start_foreground_service actually did — process/PID, foreground state, start bookkeeping — without parsing dumpsys yourself. A Service can be active for more than one Android user at once, so instances is a list.
  • get_setting — Read one Android Settings-provider value: `adb shell settings get NAMESPACE KEY`. namespace is restricted to "system", "secure", or "global" — the only namespaces `settings get` recognizes — by the tool's own input schema, so an invalid namespace is rejected before this tool (or any adb command) ever runs. Deliberately distinct from system_properties' get_property: Settings (SettingsProvider) and …
  • get_system_memory_summary — System-wide memory totals and top consumers: `adb shell dumpsys meminfo`. Reads the RAM totals block (Total / Free / Used / Lost RAM, ZRAM / swap) and the "Total PSS by process" list, bounded to the top entries. Everything else in the (large) dump is ignored.
  • get_user_capabilities — Get device-wide Android multi-user capabilities: what the platform build supports, not info about any one particular user. Aggregates several underlying commands (`pm supports-multiple-users`, `pm get-max-users`, `pm get-max-running-users`, `cmd user is-headless-system-user-mode`, `cmd user is-visible-background-users-supported`, `cmd user is-visible-background-users-on-default-display-supported` …
  • get_user_state — Get a started user's lifecycle state: `adb shell am get-started-user-state`. Reports where a started user is in the ActivityManager lifecycle (BOOTING → RUNNING_LOCKED → RUNNING_UNLOCKING → RUNNING_UNLOCKED → STOPPING → SHUTDOWN) — useful for waiting until a user reaches RUNNING_UNLOCKED before launching activities under it. A user that isn't currently started reports started=false, not an error.
  • grant_permission — Grant one Android runtime permission to a package: `adb shell pm grant`. Not every permission can actually be granted this way — see Error handling below for the platform's own rejections. Revoking, checking, and listing permissions aren't implemented yet.
  • input_text — Type literal text into the focused input field: `adb shell input text`. The text goes to whatever view currently has input focus; if nothing is focused, Android drops the keystrokes and this tool cannot tell. Spaces are handled; some punctuation and non-ASCII characters may not inject reliably — that's an Android `input text` limitation, not a bug here.
  • install_apk — Install an APK on a connected device (`adb install`). Exposes semantic installation options rather than raw adb/pm flags. Android's Package Manager remains the final authority on whether a requested installation is legal — these options select supported installation behavior, they never bypass signature checks, Package Manager restrictions, or (absent the matching option) SDK/downgrade restrictio …
  • install_existing_for_user — Make an already-installed package available to another Android user (`adb shell pm install-existing --user USER_ID PACKAGE`). This is distinct from install_apk: it never touches an APK file, it only extends an app that's already present on the device to another user's view of it (e.g. a work profile or a secondary user on a multi-user/automotive build).
  • is_user_stopped — Check whether an Android user is stopped: `adb shell am is-user-stopped`. A quick boolean gate before user-scoped automation — if a user is stopped, start_user it first. This does not distinguish "stopped" from "no such user"; both report stopped=true.
  • kill_background_processes — Kill a package's killable background processes: `adb shell am kill`. Semantically distinct from force_stop_app: ActivityManager kills only the package's processes it currently considers safe to reclaim (cached/background) and leaves a foreground process alone, and it does not set the package's "stopped" flag. Use this to simulate the system reclaiming memory from a backgrounded app without fully …
  • list_connected_devices — List currently connected adb devices, as reported by `adb devices -l`.
  • list_displays — Enumerate a device's logical displays: `adb shell dumpsys display`. This is the display-discovery anchor for the rest of the server — the display_id values it returns are what `-d` / `--display` on the screenshot, input, and activity-launch tools expect. `dumpsys display` is large and mostly unstable internal state; this reads only two curated markers (the `mViewports=[...]` line and the `Display …
  • list_forwards — List active host→device forwards: `adb forward --list`. `adb forward --list` is server-global — it reports forwards for every connected device. Pass serial to narrow the result to one device.
  • list_jdwp_processes — List processes exposing a JDWP transport: `adb jdwp`. Returns the PIDs of the device's debuggable processes that currently have a Java Debug Wire Protocol endpoint open — the candidates you can attach a debugger or `jdb` to. `adb jdwp` streams and never exits on its own, so this returns a snapshot taken after a short settle window.
  • list_network_interfaces — List the device's network interfaces and their addresses: `adb shell ip addr show`. Parses `ip addr show`'s structured output into per-interface records rather than exposing the raw text. Tolerates multiple IPv4/IPv6 addresses per interface, and any line it doesn't recognize is skipped rather than failing the whole call. Wi-Fi configuration, routing changes, and adb port forwarding aren't impleme …
  • list_packages — List installed Android packages on a device: `adb shell pm list packages`. Returns parsed package names only, not pm's raw text output.
  • list_processes — List running processes on a device: `adb shell ps`. Runs `ps` with a fixed column set (PID, PPID, USER, RSS, NAME) and parses it into structured rows — no raw `ps` flags are exposed. Pass name_filter to keep only processes whose name contains that substring (matched on the device-reported process name, server-side), which is the usual way to find every process belonging to an app.
  • list_properties — List Android system properties as structured data: `adb shell getprop`. Parses `getprop`'s "[name]: [value]" output into individual name/value entries rather than exposing the raw text. Optionally scoped to properties whose name starts with a given prefix — filtering happens after parsing, inside this tool's service, not via a shell pipeline or `grep`.
  • list_reverses — List active device→host reverses for one device: `adb -s serial reverse --list`. Unlike forwards, reverse tunnels are device-scoped, so this needs a serial.
  • list_users — List every Android user on a device: `adb shell cmd user list -v`. Structured, one entry per user (id, name, type, flags, and states like "running"/"current"/"visible") — the fastest way to see what user IDs actually exist before calling user_info or switch_user with one.
  • press_key — Inject one Android key event: `adb shell input keyevent`. key is a typed name from a curated set (HOME, BACK, ENTER, DPAD_*, VOLUME_*, WAKEUP, MEDIA_PLAY_PAUSE, …) — arbitrary keycodes aren't accepted. It's mapped to the matching `KEYCODE_<name>`.
  • pull_file — Copy one file from a device to this server's host: `adb pull`. Uses the existing AdbBackend.pull primitive directly — no raw shell command is run. Private app-data semantics (e.g. `run-as` to read another app's sandboxed files) aren't handled here; remote_path is passed to `adb pull` exactly as given, so pulling a path the shell user can't read fails the same way a plain `adb pull` would.
  • push_file — Copy one file from this server's host to a device: `adb push`. The mirror of pull_file. The host source is confined to the server's configured local_root (the same gate pull_file writes into) — reading a host path outside it, or one that doesn't exist, is refused before any device round-trip. remote_path is passed to `adb push` exactly as given.
  • query_content — Query a ContentProvider and return its rows: `adb shell content query`. Reads from any provider exported to the shell (settings, media store, a test app's own provider, ...) and parses `content`'s row output into structured column→value maps. Every knob is a typed field — there is no raw-argument passthrough. Reading is the only operation here; inserting, updating and deleting rows aren't impleme …
  • read_logs — Dump recent device logs: `adb shell logcat -d -v threadtime -t N -b BUFFER`. Dump-and-exit, not a live tail: this returns a snapshot of what's already in the buffer, not a stream of future log lines.
  • read_package_logs — Dump recent logs for one package: resolves its PID via `adb shell pidof -s PACKAGE`, then `adb shell logcat -d -v threadtime -t N -b BUFFER --pid=PID`.
  • record_screen — Record the device screen to an MP4, save it to the host, return the path. Runs `adb shell screenrecord --time-limit <duration_s>` against a device-side temp file, `adb pull`s the result into `<ADB_AUTOMATION_LOCAL_ROOT>/recordings/`, and always removes the device-side temp file afterward. screenrecord stops itself at the duration limit, so this call blocks for roughly `duration_s` seconds. Only t …
  • remove_forward — Remove one host→device forward: `adb -s serial forward --remove tcp:L`. Tears down a forward previously created with create_forward, identified by its host-side port. Idempotent: removing a forward that isn't there is reported as success (removed=false), not an error — the intended end state is reached either way.
  • remove_reverse — Remove one device→host reverse: `adb -s serial reverse --remove tcp:R`. Tears down a reverse previously created with create_reverse, identified by its device-side port. Idempotent: removing one that isn't there is reported as success (removed=false), not an error.
  • reset_binder_call_stats — Reset Binder IPC call statistics: `adb shell dumpsys binder_calls_stats --reset`. Zeroes the Binder-call-stats counters so a subsequent get_binder_call_stats measures only the flow you run in between. Categorized `write` as a measurement-state mutation (it does not change device behavior).
  • reset_frame_stats — Reset an app's graphics frame statistics: `adb shell dumpsys gfxinfo <package> reset`. Zeroes gfxinfo's frame counters so a subsequent get_frame_stats measures only the flow you run in between. Categorized `write` because it mutates on-device rendering-stats state. gfxinfo's reset has no meaningful textual output, so this returns a minimal confirmation.
  • resolve_activity — Resolve which Activity would handle an Intent, without launching it: `cmd package resolve-activity`. The safe way to find out what `start_activity` (or the system) would pick for a given Intent — nothing is started. Describe the Intent with the typed fields below (at least one is required); they map to the same `-a`/`-d`/ `-t`/`-c`/`-n`/`-p` options Android's own tooling uses.
  • restart_adb_server — Restart the local adb server: run `adb kill-server` followed by `adb start-server`. Use this when adb is misbehaving in ways check_adb_available can't diagnose — stale device state, a wedged server process, or devices adb no longer sees despite being physically connected. This is a global, non-device-scoped operation: it affects every device this host's adb currently talks to, not just one, which …
  • restart_adbd_as_shell — Restart the on-device `adbd` daemon as non-root (shell): `adb -s serial unroot`. The inverse of restart_adbd_as_root — use it to drop adbd's privileges back to shell after a setup step that needed root, so later automation runs with normal permissions. Because it only ever *removes* root, it's a plain write, not destructive (unlike restart_adbd_as_root). It has no effect on this host's own adb cl …
  • revoke_permission — Revoke one Android runtime permission from a package: `adb shell pm revoke`. The counterpart to grant_permission. Idempotent — revoking a permission the package doesn't currently hold (or doesn't even request) is a success, not an error, since the intended end state is reached either way.
  • run_instrumentation — Run an instrumentation test runner: `adb shell am instrument -w -r`. Always runs with `-w` (wait for completion — required for test runners) and `-r` (raw output), then parses the INSTRUMENTATION_STATUS/RESULT/CODE marker stream into pass/fail/error counts and the runner's summary. Categorized `write` because a test run executes arbitrary app code on the device. Test failures are a normal result …
  • send_broadcast — Send an Android intent broadcast to a device: `adb shell am broadcast`. Models the intent semantically (action/component/package/extras) rather than accepting a raw command string — see the module docs for why this server never exposes arbitrary shell arguments.
  • set_debug_app — Mark an app as ActivityManager's debug app: `adb shell am set-debug-app`. Records package as the debug app so its next launch is debugger-friendly. This does NOT attach a debugger — it only sets the marker. With wait_for_debugger the next launch of the app blocks until a debugger connects (`-w`); with persistent the setting survives reboot (`--persistent`). Pair with clear_debug_app when done.
  • set_heap_watch — Auto-collect a heap dump when a process gets large: `adb shell am set-watch-heap`. Tells ActivityManager to watch package's PSS and, once it reaches threshold_bytes, collect a heap dump on the device for later retrieval. Use clear_heap_watch to stop watching. `am` doesn't validate the package, so an unknown one isn't an error. Support varies by Android version.
  • set_package_enabled_state — Enable or disable an app, or one of its components: `adb shell pm enable|disable|...`. Use this to turn a package (or a specific Activity / Service / Receiver / Provider) on or off for automation — e.g. disable a receiver, observe the behavior change, then set it back to "default". Reversible: "default" clears any override this tool (or anything else) set.
  • set_property — Set an ordinary mutable Android system property: `adb shell setprop NAME VALUE`. Refuses to touch control-property namespaces that represent a distinct semantic operation rather than a plain property mutation — at minimum "ctl.*" (service start/stop/restart) and "sys.powerctl" (device shutdown/reboot). Those belong to dedicated lifecycle/power tools, not this one. Beyond that, this does not attem …
  • set_setting — Write one Android Settings-provider value: `adb shell settings put NAMESPACE KEY VALUE`. namespace is restricted to "system", "secure", or "global" by the tool's own input schema, so an invalid namespace is rejected before any adb command runs. The key is read once before the write and once after, so the result carries both previous_value (keep it to restore the original when your scenario is don …
  • start_activity — Launch an Android activity on a device: `adb shell am start`. Models the launch target semantically (an explicit component) rather than accepting a raw `am` command string — see the module docs for why this server never exposes arbitrary shell arguments. Only an explicit component launch is supported so far; other Intent options (action, extras, flags, data URI) aren't implemented yet, and this t …
  • start_foreground_service — Start an Android foreground service: `adb shell am start-foreground-service`. Separate from start_service because Android's background-execution rules differ: a plain start-service from the background is refused on Android 8+, while start-foreground-service is allowed but the app must then call startForeground() within a few seconds or the system kills it. This tool reports only that ActivityMana …
  • start_ipc_trace — Start ActivityManager Binder/IPC transaction tracing: `adb shell am trace-ipc start`. Begins recording Binder transactions system-wide. This produces no artifact on its own — call stop_ipc_trace to dump the collected transactions and pull them to the host. Starting when a session is already running is harmless; `am` doesn't report that case, so this always reports tracing=true on success.
  • start_log_session — Start a log-capture session: anchors on the device's current log position, to be replayed later by stop_log_session. Not a live tail — this doesn't stream logs anywhere while the session is open. It records where the buffer currently is (plus whatever filter is given here), and stop_log_session later dumps everything matching that filter from that point to when it's called. See stop_log_session f …
  • start_method_profile — Start Android method profiling for a process: `adb shell am profile start`. Begins a profile that records into a device-side `.trace` file. Call stop_method_profile (with the same package) to finalize it and pull the artifact — the device path is derived from the package, so you don't pass it. By default this is the instrumented (every-call) profiler; pass sampling_interval_us for the lower-overh …
  • start_service — Start an Android service on a device: `adb shell am start-service`. Models the target semantically (an explicit component) rather than accepting a raw `am` command string — see the module docs for why this server never exposes arbitrary shell arguments. Only a plain (non-foreground) service start is supported so far — foreground-service starts, and stopping/querying a service's status, aren't imp …
  • start_user — Start a stopped Android user in the background: `adb shell am start-user`. Brings a stopped secondary user (a work profile, guest, or Automotive passenger user) to the RUNNING state without switching the foreground to it — use switch_user for a foreground switch. Starting an already-running user is a harmless success. To bring one to the foreground on a specific screen, pass display_id (only mean …
  • stop_ipc_trace — Stop IPC tracing, dump it, and save it to the host: `adb shell am trace-ipc stop --dump-file <dev>` + `adb pull`. Stops the session started by start_ipc_trace, writes the Binder transaction dump to a device temp file, pulls it into `<ADB_AUTOMATION_LOCAL_ROOT>/ipc_traces/`, and deletes the device file (on success and on failure). The trace text is not embedded in the response — only the saved pat …
  • stop_log_session — Stop a log-capture session and write everything logged since start_log_session to a file on the host running this server. local_path is a host filesystem path, not a device path — it's resolved against the server's configured local_root and must stay inside it (see Error handling). The captured text depends on the device's ring buffer not having wrapped past the session's start point — fine for a …
  • stop_method_profile — Stop method profiling and save the trace to the host: `adb shell am profile stop` + `adb pull`. Finalizes the profile started by start_method_profile for the same package, pulls the `.trace` into `<ADB_AUTOMATION_LOCAL_ROOT>/profiles/`, and deletes the device file (on success and on failure). The trace bytes are not embedded in the response — only the saved path and size.
  • stop_service — Stop a started Android service: `adb shell am stop-service`. The counterpart to start_service — stops a service that was started via `am` (or `startService()`). Not an error if the service isn't running; that comes back as stopped=false / was_running=false, since the intended end state is reached either way.
  • swipe — Inject a swipe gesture between two points: `adb shell input swipe`.
  • switch_user — Switch the active Android user on a device: `adb shell am switch-user ID`. Changes what's actually running in the foreground on the device — not a read, and not safely re-invocable without consequence (it interrupts whatever the current user was doing). Use list_users first to find a valid target user ID.
  • … y 6 más

Consulta las observaciones firmadas, los conjuntos de herramientas anteriores y sus diferencias en el registro interactivo o en /api/v1/servers/038684b4e6503976.

pypi

Transparency log · MCP tool definitions

Every MCP server's tools, on the record.

Your AI client trusts the tool descriptions an MCP server sends it — and a server can change them after you approved it. HISTOR keeps a public, signed record of what every remote MCP server in the official registry advertised, and tells you the day it changed.

Remote endpoints: it lists tools and never calls one. Registry packages: bounded canary calls run inside the isolated sandbox. It never says a server is safe — it tells you what was said, and when.

DRAG TO ORBIT
SIM
—

WebGL is unavailable here. The picture is the log itself: each label is a leaf, leaf hashes climb a Merkle tree, and a signed tree head seals the root.

—
Registry remote endpoints
last completed crawl
—
Targets with a pinned tool set
current
—
Changes
last 7 days
—
Labels in the log
all time
—
Last signed tree head
UTC

What HISTOR is for

Tool descriptions are instructions. They should not change behind your back.

The problem

A server can change what your model reads

When you connect an MCP server, its tool descriptions go straight to the model as instructions. A server can pass your review with harmless descriptions and change them next week — one added sentence is all a prompt injection needs, and most clients never ask you again.

What HISTOR does

It keeps the public record

Every six hours (every 30 minutes for a week once its tools have changed twice) HISTOR reads what each remote (streamable-HTTP) endpoint in the official MCP registry advertises, fingerprints it, signs what it saw and appends it to a log that can only grow. When a server's definitions change, the change gets a date and a diff.

What you get

A second pair of eyes you can check

Look up any server before you trust it. Paste what your client received and learn whether everyone else sees the same thing. Follow changes in a feed, or put a badge in your README. Every answer is signed, so you can verify it instead of believing it.

Who it is for

People who use MCP serversin Claude, Cursor or any client — check a server before you connect it, and again when it changes.
Agent builderswhose agents connect to servers on their own — call /check before trusting a tool set.
Registries and directoriesthat want more than stars and download counts — show when a listing's tools last changed.
Server authorswho want to show a stable, documented history — add the badge, and every change you ship is dated in public.

Four words used on this page

Tool definitions
The name, description and input schema of each tool a server offers — the text your model reads.
Pinned
HISTOR has recorded a fingerprint (digest) of the exact definitions it saw, so any later change is detectable.
Label
One signed statement about one observation: what was seen, what matched, whether it changed. Anyone can verify it offline.
Signed tree head
The log's signed summary after each crawl. Comparing two of them proves nothing was deleted or rewritten in between.

Read → digest → label → append → sign → compare

How the log works

Six steps, every one of them checkable by someone who does not trust HISTOR. The only thing you have to take on faith is that the observation happened when the label says it did — and the log makes it impossible to change that story afterwards.

01

Read

Remote endpoints in the official MCP registry: initialize, then tools/list, drained across every page; no tool is called, and private addresses are refused before the connection opens. npm and PyPI packages: installed and started in the sandbox described below, with no route out.

02

Digest

The tool set is reduced to name, description, input and output schema, sorted by UTF-16 code units and hashed over its RFC 8785 canonical form. Anyone holding the same tools gets the same digest — which is what makes a comparison possible.

03

Label

Four MTL/1 methods, one signed AWR/2 document each: what was observed, what the WARDEN pattern set matched, whether the definitions changed since the last label, and whether the name is on a threat list. No score, ever.

04

Append

Every label becomes a leaf of an RFC 9162 Merkle tree: leaf hash = SHA-256(0x00 ‖ JCS(label)). The label you download is the leaf input, so you can recompute its hash yourself.

05

Sign

After each crawl HISTOR signs a tree head: the size and the root. Keep yesterday's head; ask for a consistency proof to today's; if anything was removed or rewritten, the proof fails.

06

Compare

Each day a continuity label compares the new digest with the last one. Equal: "unchanged since". Different: a change, with the date and a per-tool diff. A client that checks what it received adds the view no crawler has.

Where an npm or PyPI package is run

Test conditions

A package observation is true for these conditions, and no others. Every package page names the exact image it ran in and any configuration it was given.

System

Linux x86_64, inside gVisor (runsc): the package talks to a kernel written for sandboxing, not to the host's. An unprivileged user, no capabilities, a read-only root.

Runtimes

npm packages in histor-node:22, PyPI packages in histor-python:3.12: the official node:22-bookworm-slim and python:3.12-slim images plus bash, git, Python 3 or Node 22 and a Java 21 runtime — never Docker — built when a sandbox host is installed. A package whose Requires-Python excludes 3.12 runs on histor-python:3.13 or 3.14; one that requires a newer Node runs again on histor-node:24. The exact image a package ran in is on its page.

Install

npm with --ignore-scripts, then the install scripts in a traced stage of their own. PyPI: wheels only — a package that ships only source is reported, never built.

Network

No route out. Every name the package looks up resolves to HISTOR's own traps, which record what was sent and forward nothing. A server that needs the internet to start shows that here.

Secrets

None are real. Decoy credentials sit in HOME and a decoy .env in the working directory. A variable the package says it needs gets a placeholder; where the placeholder was sent is recorded.

Limits

512 MB of memory, one CPU, 64 MB of /tmp. 360 s to install, 150 s to start and answer; up to 15 tools called once each with canary arguments, 8 s per call.

Configuration

Only names: required variables its registry entry declares or that it printed when it exited, and a start argument such as serve when its usage text offers one. Never a value from anyone else.

What a label does not say

The profile HISTOR implements forbids the words safe, secure, audited, certified, approved and trusted. Here is why, in the terms of what the log can and cannot show.

Not a safety rating

A pattern match is a reason to read a definition, not a finding. Three of the four methods can never return fail. There is no score to rank by, because no score HISTOR could compute would mean what a reader takes it to mean.

Not the code

Labels are about advertised text. A remote endpoint's source is never read and its tools are never invoked; a package runs only in the sandbox, against nothing real. A server can keep identical definitions and behave differently for real users; the log cannot see that, and says so inside every label.

A change is not an accusation

A version bump changes definitions too. A change is shown as a date and a diff, in amber, never red. What you do with it is yours: re-read, re-approve, or pin the old digest.

A package as run here, not on your machine

An npm or PyPI server is observed under the test conditions above: Linux, no internet, placeholder keys. One that needs Windows, a real account or the network may show fewer tools or none; its page says why it exited.

One operator, one key

Today one party runs the log. A second observer on another network is the next step, and any AIMarket hub can run one. Until then, what the key proves is who said it — not that it is true.

Behind a login, unseen

Endpoints that require authentication answer 401 to everyone without a key, including HISTOR. They are counted and listed as not observed, never dropped from the numbers.

Other logs, the same servers

Outside checks

HISTOR is not the only public record of MCP tool definitions. Where another log publishes its reads, the two are compared on the same servers and days, and the result is published both ways, with HISTOR's own misses.

ScraperWatch

A daily diff of a fixed panel of about 3,000 remote endpoints. HISTOR compares each of their published days with its own reads, and ScraperWatch shows the result on its page under "Outside check". The first comparison found a robots.txt parsing limit on their side and a handshake regression on HISTOR's; both were fixed the same day.

scraperwatch.com/mcp-changes
/datasets/peers/scraperwatch/latest

heldfast

An open daily record of the tool definitions of the servers in the official MCP registry. Of the 23,190 servers both logs recorded on 26 October 2026, 21,215 had every field in both; on those, 97.9% of servers and 99.1% of tools were identical byte for byte, and each difference has a stated cause: package versions, read times, failed reads, a first page only, an older protocol.

github.com/rufat325/heldfast
/datasets/interop-digests-2026-10-31

For clients, registries and server authors

Use it

Before your agent trusts a server, send the tools it received. The answer is signed by the log's did:key and names the tree head it was given under.

curl -sS https://histor.modelmarket.dev/api/v1/check \
  -H 'Content-Type: application/json' \
  -d '{"endpoint":"https://example.com/mcp","tools":[ …tools/list result… ],"contribute":true}'
# -> {"type":"histor.check/v1","match":"same"|"different"|"previously-observed"|"same-other-revision"|…,
#     "observed":{"unchangedSince":"…","changes":0}, "patternScan":{…}, "signature":{…}}

# Only looking a server up: a GET with its endpoint (writes nothing)
curl -sS "https://histor.modelmarket.dev/api/v1/check?endpoint=https://example.com/mcp"

# README badge for your server
[![MCP tool defs](https://histor.modelmarket.dev/badge/<id>.svg)](https://histor.modelmarket.dev/s/<id>)

# Atom feed of every observed change
https://histor.modelmarket.dev/feed.xml
WARDENchecks definitions at connect
HISTORremembers what was advertised
THEMISadmits at publish
Hublists histor.check@v1
AWRthe signed format

Questions

Is this a marketplace listing?

No. The server list is the log's index: every remote endpoint in the official MCP registry, with what HISTOR could observe about it. Nothing here is for sale and nothing is ranked by quality.

Does HISTOR tell me a server is safe?

No, and it never will. It tells you what a server advertised, whether that changed, and which published patterns matched the text. Whether to trust the server is your decision — HISTOR makes sure you decide on the same facts as everyone else.

Why are so many servers "not observed"?

Most remote MCP endpoints require a login (they answer 401 to anyone without a key), some use the legacy SSE transport or need per-user values in the URL, and some are simply down. They stay on the list with the reason, so the numbers never hide them.

How do I check a server I already use?

Open the Check tab, paste the server's endpoint and the tools/list result your client received, and press Check. You get back, signed, whether HISTOR observed the same definitions — or different ones, or an older set.

What does HISTOR record when a tool definition changes?

HISTOR records tool names, descriptions and input schemas from tools/list, plus any output schemas the server returns. Each change compares the newly observed list with the previous list from the same server. A full diff shows tools added or removed, word-level edits to descriptions, and old and new schema values at the JSON paths that changed. If either observation has only names, the diff is limited to names. HISTOR tracks annotations such as readOnlyHint separately when it captures them.

Browse observed changes · Example diff (JSON) · Original question on DEV

How do I get a badge for my server?

Find your endpoint on the Servers tab, open it, and copy the Markdown snippet under the facts. The badge shows the date your definitions were pinned or last changed, and links to the full history.

Why should I trust HISTOR itself?

You do not have to. Every label and every tree head is signed with one published key; the Log tab proves in your browser that the log only grew; and the command-line auditor does the same from any machine. What remains is that one operator runs it today — a second, independent observer is the next step.

What does it cost?

Looking things up, the badges, the feed and /check are free. HISTOR also offers histor.check@v1 to the AIMarket Hub, so agents can reach it through the market.

I run an MCP server. What does HISTOR send it, and how do I opt out?

Every 6 hours, and every 30 minutes for a week once its tools have changed twice in a week. First it reads /robots.txt (RFC 9309, product token histor, about once a day per site): a path that file does not allow HISTOR is not read, and its page here says so. Otherwise server/discover and tools/list (MCP 2026-07-28), or, for a server without that, initialize, notifications/initialized and tools/list — never a tool call, never a redirect followed on the MCP path, at most two connections per host, from a User-Agent that starts with histor/. To keep HISTOR out, disallow your MCP path for User-agent: histor (or for all crawlers); to let HISTOR alone in, add User-agent: histor with an Allow line for that path. An issue on the histor repository with your endpoint or host also works: it is then listed as not observed (operator-opt-out), with the reason, rather than silently dropped. Labels already in the log stay: the log only grows.