Kotzilla MCP Server
Overview
The Kotzilla MCP Server connects your AI coding assistant to the Kotzilla Platform. The assistant gets the structural and runtime context Kotzilla captures from real user sessions (dependency graphs, resolution timings, crashes, component behavior), plus a knowledge base of fix patterns for Android and Kotlin Multiplatform projects.
With that, the assistant can take an issue from detection to a concrete fix inside the editor you already use.

With the MCP Server you can:
- Register your app and configure the SDK in your project through a single natural-language prompt.
- Analyze performance and stability issues from real user sessions across Android and Kotlin Multiplatform targets.
- Get root cause analysis with full dependency resolution trees and timings.
- Get guided fix recommendations and apply them directly in your code.
Key capabilities
Automated setup
One prompt registers your app on the Kotzilla Platform and sets up the SDK. The assistant reads your project structure (package name, app type), creates the app on the platform, generates kotzilla.json, updates the version catalog and Gradle plugin, and wires up SDK initialization. It detects whether your app uses Koin and sets it up accordingly, including apps on Hilt, Metro, Dagger, or manual DI. See Setup with Hilt, Metro, or manual DI.
Performance and stability analysis
Your assistant analyzes performance and stability issues from real user sessions on Android, iOS, Desktop (JVM), JS, and WASM targets. Ask for a lint-style report, compare versions to spot regressions, or rank issues by severity across all your registered apps.
Root cause analysis
Your assistant gets full dependency resolution trees with timings, down to the component that costs the time. It can find the blocking components on a given screen, trace crashes with symbolicated stack traces, and tell on which thread each event runs. When the window around an issue is not enough, your assistant can read any session's full timeline with get_session_timeline, filtered by thread or event type: what happened before a crash, what other threads did during a slow resolution, how a startup unfolded.
Impacted-population and session analysis
For each issue, see who it affects: a breakdown of the devices and OS versions hit, and the full timeline of the worst session (Koin resolutions, lifecycle, screen renders, threads). Your assistant gets this from get_issue_context with include_sessions, so it can sample and compare sessions without opening each one in the Console, and can focus any analysis on specific devices or OS versions.
Guided fixes in your code
Your assistant retrieves fix patterns for the detected issue type (blocking calls in Koin modules, eager initialization, heavy ViewModel init, StateFlow strategies, constructor work, scope misuse), then reads your code and applies changes across files, under your review. For crashes, the guidance reads the stack trace, points to the fix site, and handles iOS and Koin InstanceCreationException wrappers.
Verify the fix locally
After applying a fix, the assistant checks that it worked. It rebuilds, runs the app, waits for a fresh session, then verifies the fix two ways. Structurally: the anti-pattern is gone (the component is off the main thread, out of the startup graph, lazy, created once). On timing: the new version is compared with the same issue in the same local environment, not with production thresholds. Crashes are reproduced first, then confirmed clean by running the exact path that crashed.
Close the issue once the fix is verified
Once a fix is verified, the assistant proposes closing the issue with the version that fixed it, and calls update_issue_status only after you agree. You can also ask it to acknowledge a known issue or reopen one that came back.
Koin configuration diagnosis and fixes
The assistant also diagnoses Koin configuration problems (missing bindings, wrong qualifiers, scope errors) and apply the fix in your code. This works even without prior Kotzilla setup: paste a Koin error and the assistant resolves it. See Fix Koin issues with the MCP Server.
Per-version data control
List your app versions and turn monitoring on or off per version, directly from your assistant, so you control which builds send data to the platform.
What you can ask
Once the SDK is set up and your first sessions are recorded, ask in plain language. Some examples:
Generate a performance report
Generate a report for my app
Returns a compact lint-style summary with pass/warn/fail status, crash count, ANR count, and prioritized fixes.
Compare versions
Is version 1.2.1 performing better than 1.1.5?
Compares crashes, screen rendering times, issue counts, and component performance between two versions to spot regressions.
Find what to fix first across all your apps
Which issues should I focus on as main priority among my apps?
Generates reports across all your registered apps and ranks them by severity: crashes first, then startup time, ANR, and others.
Root cause analysis
What are the main performance issues in my app?
Lists all detected issues ranked by impact. Then ask "Why is it slow?" and the assistant shows the cause: dependency resolution trees with timings, the components blocking a given screen, what creates ANR risk, and on which thread everything runs.
Fix issues in your code
How can I fix this issue?
The assistant gets the fix patterns for the issue type (crash stack traces, blocking calls in Koin modules, eager initialization, heavy ViewModel init, StateFlow strategies, constructor work, scope misuse), reads your code and applies the changes across files, under your review.
Investigate crashes
Show me the crashes on the iOS target of my CMP app and help me fix them
Returns symbolicated stack traces with surrounding lifecycle events, and suggests fixes based on the crash context.
Fix and close an issue
Fix the ANR in BookmarksRoute screen and close the issue once the fix is verified
The assistant fixes the issue, verifies it on a fresh session, then proposes closing it with the version that fixed it.
Read a session end to end
What happened on the main thread before this crash?
The assistant pages through the session's timeline, filtered by thread and event type, and shows the events that led to the crash.
Investigate who is impacted
Which devices and OS versions are hit by this issue, and which session is worst?
Returns a device and OS breakdown of the impacted sessions and points you to the worst one, which you can open directly.
Fix a Koin configuration error
I'm getting a Koin error, here is the message: ...
The assistant diagnoses the configuration problem (missing module, wrong qualifier, scope misuse) and applies the fix. See Fix Koin issues with the MCP Server.
Available tools
| Tool | What it does |
|---|---|
list_apps | List your registered apps |
create_app | Register a new app |
guide_sdk_installation | Get SDK setup instructions for your app type |
generate_app_config | Generate kotzilla.json (creates a new API key each call) |
get_platform_activity | See which apps are active and sending data |
get_screen_performance | Screen rendering times and ANR counts |
get_issues | Performance and architecture issues |
get_issue_context | Deep dive: dependency tree, timings, stack traces, and impacted sessions |
get_session_timeline | Read one session's full timeline, filtered by thread, event type or event range |
get_fix_guidance | Fix patterns, and a local verification protocol, for a given issue type, including crashes |
update_issue_status | Acknowledge, close or reopen an issue, with the version that fixed it |
generate_report | Performance summary report |
list_app_versions | List app versions and whether each is ingesting data |
set_app_versions_enabled | Turn data collection on or off per version |
list_app_notification_preferences | List which notifications are on or off for an app |
set_app_notification_preference | Turn a notification on or off for an app |
koin_diagnose | Diagnose a Koin configuration issue |
koin_search_graph | Search the Koin dependency graph |
koin_apply_fix | Apply a fix for a Koin configuration issue |
Authentication and security
On first use, the MCP Server asks you to sign in with your Kotzilla account. You can create one for free at console.kotzilla.io.
All communication between the MCP Server and the Kotzilla Platform is encrypted over HTTPS. The same API key scoping and data rules apply as for the SDK and Console.
The MCP Server operates on the same technical data collected by the Kotzilla SDK. The SDK is not designed to collect the personal data of your end users, and Kotzilla does not intentionally collect any. See Kotzilla SDK data processing for detail.
Why use the MCP Server
- One prompt registers the app and configures the SDK.
- You stay in your editor or terminal while your assistant works from real session data.
- Fixes combine your app's structure with Kotlin fix patterns, and are verified on a fresh session.
- It works with Claude Code, Codex, Cursor, Junie, JetBrains AI Assistant, the Android Studio MCP panel, and any other agent that supports MCP.
Get started
To install the MCP Server and register your first app, follow the MCP Server quick start guide.