Skip to content
项目

关于

A modular Android debugging toolkit and network inspector built with Clean Architecture and Jetpack Compose — designed for zero-impact production builds.

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

WormaCeptor

GitHub Stars Maven Central API Kotlin Compose License

Your AI agent can read your code. Now it can read your running Android app. WormaCeptor puts network traffic, crashes, logs, databases and preferences one tool call away for Claude Code, Cursor and other MCP clients, and on screen for you. No proxy, no certificates. Ships only in debug builds through Gradle's debugImplementation, so nothing reaches production. Set up the agent in two lines.

Demo

An agent finds and fixes a failing checkout by reading the app's network traffic through WormaCeptor:

An AI agent calls WormaCeptor, reads the 422 response body, and fixes the currency field

Network inspection, system tools, and performance monitoring side by side:

Get it on Google Play
Watch the demo video


Quick Start

Make sure mavenCentral() is declared in your settings.gradle.kts (it's in the default Android template):

dependencyResolutionManagement {
    repositories {
        mavenCentral()
    }
}

Add the dependencies in your app's build.gradle.kts:

dependencies {
    implementation("com.azikar24.wormaceptor:wormaceptor-client:3.5.0")
    debugImplementation("com.azikar24.wormaceptor:wormaceptor-persistence:3.5.0")
}

Initialize in your Application class:

import com.azikar24.wormaceptor.api.WormaCeptorApi

class App : Application() {
    override fun onCreate() {
        super.onCreate()
        WormaCeptorApi.init(this)
    }
}

Add the interceptor to your OkHttp client:

import com.azikar24.wormaceptor.api.WormaCeptorInterceptor

val client = OkHttpClient.Builder()
    .addInterceptor(WormaCeptorInterceptor())
    .build()

Open WormaCeptor from anywhere:

startActivity(WormaCeptorApi.getLaunchIntent(context))

You can also enable the shake gesture with WormaCeptorApi.startActivityOnShake(activity). Using Ktor? See the Ktor guide.


Features

Network: Intercept HTTP/HTTPS via OkHttp or Ktor, monitor WebSocket connections and WebView requests, copy URLs or export as cURL, JSON and HAR, throttle with the rate limiter, and mock responses with Mock Rules (turn any captured request into a mock with Add to Mock)

Performance: Track FPS, memory, and CPU in real time with a live overlay, catch memory leaks and StrictMode thread violations, spot excessive Compose recompositions

System: Browse SQLite databases, edit SharedPreferences, inspect DataStore and encrypted storage, explore files, view loaded native libraries and Gradle dependencies, read device info and logcat, capture crash reports

Testing: Fire test push notifications, manage FCM tokens, mock GPS locations, encrypt/decrypt and hash with the crypto tool

AI agents: An optional MCP server lets Claude Code, Cursor, and other MCP clients query the running debug app: 44 tools for transactions, crashes, logs, performance, storage, mock rules, request replay, and actions. See AI Agents (MCP)

Every feature is its own module. Enable exactly what you need at init time, disable the rest. See Feature Toggles.


How It Works

Your release APK never sees debug code. Here's why:

  1. wormaceptor-client ships in all build types. It contains only interfaces and a reflection-based lookup, no debug logic.
  2. wormaceptor-persistence (or wormaceptor-imdb) ships only in debug via debugImplementation. It registers itself through classpath discovery.
  3. In release builds, no implementation exists on the classpath. wormaceptor-client falls back to a no-op automatically. No ProGuard rules, no runtime checks, no dead code.

More details in No-Op Behavior.


Redacting Sensitive Data

Strip credentials and PII before they hit the inspector.

val interceptor = WormaCeptorInterceptor()
    .redactHeader("Authorization")
    .redactJsonValue("password")
    .redactXmlValue("apiKey")
    .redactBody("ssn=\\d{3}-\\d{2}-\\d{4}")

For global redaction that applies across all interceptors, use WormaCeptorApi.redactionConfig. See the Data Redaction guide.


AI Agents (MCP)

Add the MCP device server to your debug build and your AI coding agent can read live app data over MCP instead of you pasting logs.

debugImplementation("com.azikar24.wormaceptor:wormaceptor-mcp-server:3.5.0")

Register the bridge with your client (needs Node.js 18+, Java 17+ and adb; the launcher downloads the matching bridge jar and checks its SHA-256):

claude mcp add --transport stdio wormaceptor -- npx -y [email protected]

No Node? Download wormaceptor-mcp-bridge.jar from the latest release and run it with java -jar.

The server listens on an abstract Unix socket that only adb, root and the app itself can connect to, and the bridge reaches it through adb forward. Bearer-token auth is available and off by default; read Security before using it on a shared device. Setup, all 44 tools, and configuration: docs/MCP.md. Walkthrough: docs/MCP_TUTORIAL.md.


Documentation

Full docs at wormaceptor.com: Getting Started


Contributing

PRs welcome. See CONTRIBUTING.md for setup, architecture rules and the PR process. To get started:

./gradlew build              # Build everything
./gradlew spotlessApply      # Format code
./gradlew :app:installDebug  # Run the demo app

License

MIT, see LICENSE.

探索相关项目

加载中…