{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_ccdcu7qnb24k","handle":"trace-mcp-2","url":"https://wellknown.network/agents/trace-mcp-2","links":{"self":"https://wellknown.network/agents/trace-mcp-2/record.json","html":"https://wellknown.network/agents/trace-mcp-2","markdown":"https://wellknown.network/agents/trace-mcp-2/record.md","api":"https://wellknown.network/api/v1/agents/trace-mcp-2","status":"https://wellknown.network/api/v1/agents/trace-mcp-2/status","claim":"https://wellknown.network/agents/trace-mcp-2/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/trace-mcp-2/claim.json","badge":"https://wellknown.network/agents/trace-mcp-2/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/trace-mcp-2/history","tools":"https://wellknown.network/api/v1/agents/trace-mcp-2/tools"},"ard":{"identifier":"urn:air::server:trace-mcp-2","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"trace-mcp","summary":"A Python MCP server for controlling Android system tracing via a native traceserver binary, supporting device selection and custom port forwarding. Designed for use with the uv/uvx toolchain.","description":"# trace-mcp \n \nA Python MCP server for controlling Android system tracing via a native traceserver binary, supporting device selection and custom port forwarding. Designed for use with the uv/uvx toolchain. \n \n## Prerequisites \n- Python 3.12+ \n- [uv](https://github.com/astral-sh/uv) (for dependency management and running scripts) \n- Android Debug Bridge (adb) in your PATH \n- Android device (API 21+), with USB debugging enabled \n- Prebuilt traceserver binaries in the `bin/` directory for all supported ABIs \n \n## Installation \n```sh \nuv pip install -e . \n``` \n \n## Usage \n \n### Start the MCP server (with uvx) \n```sh \nuvx trace-mcp --port 12345 \n``` \n- `--port` (optional): Specify the port for traceserver and forwarding (default: 12345) \n \n### MCP Tool Functions \nAll tool functions accept an optional `sn` (device serial number) and `port` argument. \n \n#### 1. begin_trace \nBegin a trace section on the device. \n- Arguments: \n  - `trace_tag` (str): Trace tag name \n  - `sn` (str, optional): Device serial number \n  - `port` (int, optional): Port (default: 8080) \n \n#### 2. end_trace \nEnd a trace section on the device. \n- Arguments: \n  - `trace_tag` (str): Trace tag name \n  - `sn` (str, optional): Device serial number \n  - `port` (int, optional): Port (default: 8080) \n \n#### 3. trace_test_mode \nStart traceserver in test mode on the device. \n- Arguments: \n  - `sn` (str, optional): Device serial number \n  - `port` (int, optional): Port (default: 8080) \n \n#### 4. stop_traceserver \nStop the traceserver process and remove port forwarding. \n- Arguments: \n  - `sn` (str, optional): Device serial number \n  - `port` (int, optional): Port (default: 8080) \n \n## Example \n```sh \nuvx trace-mcp --port 9000 \n``` \n \nThen, use your MCP client to call the tool functions with the appropriate arguments. \n \n## Project Structure \n- `main.py`: MCP server and tool function implementations \n- `bin/`: Prebuilt traceserver binaries for each ABI \n- `pyproject.toml`: Project configuration for uv/uvx \n \n## …","publisher":null,"homepage":null,"repository":null,"version":"1.0.1","license":null,"protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:trace-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","summary":"pypi","version":"pypi","description":"pypi"}},"derived":{"capabilities":[{"slug":"code.debugging","name":"Debugging","confidence":0.802,"provenance":"derived"}],"categories":["code"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"trace-mcp","registry":"pypi","observedAt":"2026-11-04T02:26:33.382Z","publishedAt":"2025-05-12T06:31:18.527940Z","latestVersion":"1.0.1"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"trace-mcp","url":"https://pypi.org/project/trace-mcp/","firstSeenAt":"2026-09-10T14:23:01.900Z","fetchedAt":"2026-11-04T02:25:59.336Z","normalizedAt":"2026-11-04T02:25:59.336Z"}]},"firstSeenAt":"2026-09-10T14:23:01.900Z","updatedAt":"2026-11-04T02:26:33.382Z"}