Labsco
VIKAS9793 logo

AndroJack MCP

β˜… 22

from VIKAS9793

An MCP server that equips your AI coding assistant with live, verified Android knowledge β€” so it builds from official sources, not from memory.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup
<div align="center">

AndroJack Banner

AndroJack β€” The Jack of All Android Trades

<img src="https://img.shields.io/badge/Android-3DDC84?style=for-the-badge&logo=android&logoColor=white" /> <img src="https://img.shields.io/badge/Kotlin-7F52FF?style=for-the-badge&logo=kotlin&logoColor=white" /> <img src="https://img.shields.io/badge/MCP-Protocol-blueviolet?style=for-the-badge" />

An MCP server that equips your AI coding assistant with live, verified Android knowledge β€” so it builds from official sources, not from memory.

<br/>

npm version VS Code GitHub stars GitHub clones Tools MCP Spec TypeScript Node.js Android API License: MIT Security Policy

<br/>

Install in VS Code Install in Claude Desktop Install in Cursor Add to Kiro View on npm

<br/>

Official Product Page Watch AndroJack in Action on YouTube

<br/>

Also works with: Windsurf Β· VS Code Copilot Β· Google Antigravity Β· JetBrains AI β€” see Manual Config below ↓

VS Code distribution: Also live on the VS Code Marketplace as AndroJack MCP for VS Code.

PM / APM docs: Product strategy, JTBD, personas, roadmap, user stories, competitive analysis, and GTM materials live under product-management/README.md.

</div>

Table of Contents


πŸ”₯ The Crisis That Created This Tool

In 2025, the Stack Overflow Developer Survey asked 49,000 developers about their experience with AI coding tools. The results should alarm every Android engineer:

  • 84% of developers now use AI coding tools β€” up from 76% the year before.
  • Trust in AI accuracy collapsed from 40% to just 29% in a single year.
  • 35% of all Stack Overflow visits in 2025 are now triggered by developers debugging and fixing AI-generated code.

The gap between usage and trust is not a coincidence. It is the product of a structural problem: AI models predict tokens, not APIs. They were trained on a snapshot of the world and have no mechanism to know what changed at API 30, what shipped at Google I/O 2025, or what Google Play now rejects at review time.

For Android developers, this failure mode is uniquely dangerous. Android has the fastest-moving ecosystem in mobile development β€” a new Compose BOM every month, Navigation 3 going stable after seven years of Nav2, Android 16 rewriting the rules on screen orientation locking β€” and most AI tools have training data that is six months to two years stale by the time you use them.

The result is not just bad code. It is confidently bad code.


⚑ What Actually Breaks In Practice β€” Documented Evidence

These are not hypothetical risks. They are documented failure modes from real developer projects.

<details> <summary><strong>The Navigation 3 Hallucination (January 2026)</strong></summary>

A published case study from Atomic Robot documented a live Navigation 2 β†’ Navigation 3 migration using both Gemini and Claude β€” with internet access enabled on both. The conclusion, verbatim:

"LLMs still hallucinate versions. Even with internet access, both agents wanted to use an outdated release candidate instead of the stable 1.0.0 release."

Navigation 3 went stable in November 2025 after seven years of the same library. It is a complete architectural rethink: back stacks are now plain Kotlin lists, the monolithic nav graph is gone, and NavDisplay replaces NavController. Google's own migration guide is so aware that AI tools get this wrong that it now contains special "AI Agent:" annotations β€” instructions embedded directly in the official docs for AI tools to follow. An AI tool that generates Nav2 code for a new Compose project in 2026 is not making a small mistake. It is creating an architectural incoherence that requires a full rewrite to fix.

</details> <details> <summary><strong>The Compose Deprecation Treadmill</strong></summary>

Jetpack Compose ships a new BOM every month. Since most models' training cutoffs, these APIs changed:

APIStatusWhat goes wrong
ContextualFlowRow / ContextualFlowColumnDeprecated in Compose 1.8AI still generates them β€” compile warning today, removal tomorrow
TestCoroutineDispatcherRemoved from coroutines-test 1.8+AI still generates it β€” non-deterministic test failures in CI
FlowRow overflow parameterDeprecated in 1.8Subtle behavioral regression at runtime, silent in most linting setups
AnchoredDraggableState.confirmValueChangeDeprecatedIncorrect drag behavior at anchor boundaries
Navigation 2 in new projectsSuperseded by Nav3 stable Nov 2025Architectural dead-end that requires a rewrite to fix

Every one of these compiles. Most run without errors. The bugs surface later in CI flakiness, UI regressions, or Play Store review failures.

</details> <details> <summary><strong>The Android 16 / API 36 Mandate (August 2026 deadline)</strong></summary>

Android 16 made a platform-level change affecting every published app: on devices β‰₯600dp β€” tablets, foldables, ChromeOS β€” apps can no longer lock screen orientation or restrict resizability. Google Play requires API 36 targeting by August 2026.

An AI tool generating android:screenOrientation="portrait" or android:resizeableActivity="false" today is generating code that will trigger App Compatibility warnings in Play Console, fail large-screen quality checks, and get apps demoted in Play Store search results.

The business impact is not theoretical: Foldable users spend 14Γ— more on apps than phone-only users. Tablet + phone users spend 9Γ— more. FlipaClip saw 54% growth in tablet users within four months of going adaptive.

</details> <details> <summary><strong>The KMP Silent Failure</strong></summary>

Kotlin Multiplatform went mainstream in 2025 β€” over 900 new KMP libraries published, Room added KMP support, companies now hire specifically for KMP skills. When a developer on a KMP project asks an AI tool to add database support, the AI generates Android-only Room code. It compiles. It runs perfectly on Android. The iOS build fails. The developer spends hours debugging before realizing the root cause: their AI tool does not know KMP exists.

</details>

🧩 What AndroJack Does

AndroJack is a documentation-grounded Android engineering MCP server. It gives your AI coding assistant 22 specialized tools that fetch live, verified answers from official Android and Kotlin sources β€” instead of predicting from stale training data.

It does not make the AI smarter. It makes the AI accountable to evidence.

Think of it as a pre-build linter for LLMs. While other tools retrieve documentation, AndroJack acts as a strict architectural gatekeeper.

Without AndroJack:  You ask β†’ AI predicts from stale weights β†’ Code (possibly wrong)

With AndroJack:     You ask β†’ AI calls tool β†’ Tool fetches official source live
                             β†’ AI reads verified answer β†’ Code (grounded)

⚠️ Honest Activation Model β€” Two Levels

[!IMPORTANT] This is the most important thing to understand before you install AndroJack.

LevelWhat's ActiveWhat the AI Does
Level 1 β€” Tools only22 tools registered in IDEAI may call the right tool. Depends on the IDE and the AI's judgment.
Level 2 β€” Tools + Grounding Gate22 tools + mandatory pre-generation rulebookAI must call the correct tool for every decision before writing code.
Level 3 β€” Full loop-backLevel 2 + android_code_validatorAI validates every code block against 24 rules. Errors must be fixed before the user sees the code.

Level 1 is passive. The tools are available but the AI decides when to use them. An AI building a Compose screen may call architecture_reference but skip material3_expressive β€” and ship M3E violations silently.

Level 2 is active. The androjack_grounding_gate system prompt maps every task type to the correct tool. Building Compose UI? The AI is mandated to call material3_expressive first. Adding a dependency? It must call gradle_dependency_checker. No exceptions.

Level 3 is the loop-back. android_code_validator runs on every code block the AI generates before returning it to the user. 31 rules covering removed APIs, deprecated patterns, Android 16 and Android 17 compliance. Verdict FAIL means the AI must fix and re-validate β€” the user never sees the broken code.

β†’ For full grounding, always activate Level 2 + Level 3. See Getting the Full Guarantee below.


πŸͺ² What Can Still Break β€” Even at Level 3

[!IMPORTANT] AndroJack is a documentation-grounding and API-validation tool. It is not a Compose layout engine, a design system enforcer, or a runtime renderer. Level 3 catches removed APIs and deprecated patterns. It cannot catch every class of Android bug. This is not a limitation of AndroJack β€” it is a fundamental property of static text analysis applied to a visual, runtime-rendered UI framework.

The following bugs were encountered in a real Android app built with AndroJack at Level 2 (v1.4.0). They are documented here honestly so you know exactly what to watch for β€” and where to reach for different tools.

βœ… What Level 3 Catches

// ❌ REMOVED β€” android_code_validator fires: REMOVED_ASYNCTASK
class MyTask : AsyncTask<Void, Void, String>()

// ❌ REMOVED β€” fires: REMOVED_TEST_COROUTINE_DISPATCHER
val dispatcher = TestCoroutineDispatcher()

// ❌ DEPRECATED β€” fires: DEPRECATED_CONTEXTUAL_FLOW_ROW
ContextualFlowRow { Text("hello") }

// ❌ LEAK β€” fires: GLOBALSCOPE_LAUNCH
GlobalScope.launch { fetchData() }

⚠️ What Level 3 Cannot Catch

[!WARNING] The following bugs were found in a real project. They are valid, API-current Compose code that violates design system constraints, accessibility minimums, or architectural boundaries. Static text scanning cannot detect them.

<details> <summary><strong>Bug PH-UI-001 β€” Segmented button text truncation</strong></summary>
// Compiles and runs. Level 3 sees no violation.
// The bug: Text inside MultiChoiceSegmentedButtonRow truncates because a
// fixed height modifier prevents the Roboto Flex variable font from expanding.
MultiChoiceSegmentedButtonRow {
    SegmentedButton(/* fixed height modifier */) {
        Text("Light")
    }
}

[!NOTE] This is an absence bug. The correct modifier is missing β€” no wrong one is present. Use visual testing or runtime inspection.

</details> <details> <summary><strong>Bug PH-UI-003 β€” Disabled button contrast failure</strong></summary>
// Correct Material 3 API. Level 3 sees no violation.
// The bug: disabled state colours fail WCAG AA 4.5:1 contrast against surface.
Button(enabled = false, onClick = {}) {
    Text("INITIALIZE VAULT")
}

[!NOTE] This is a runtime visual property bug. Use paparazzi screenshot tests or Google's Accessibility Scanner.

</details> <details> <summary><strong>Bug PH-AR-004 β€” Raw stack trace rendered to end user</strong></summary>
// A missing try/catch produces no pattern match.
class VaultViewModel : ViewModel() {
    fun initializeVault() {
        viewModelScope.launch {
            val result = repository.initialize() // Missing try/catch
            _uiState.value = UiState.Success(result)
        }
    }
}

[!WARNING] UDF architecture violations require Detekt with custom rules or unit tests verifying exception mapping.

</details>

πŸ—‚οΈ Defence-in-Depth: The Right Tool for Each Bug Class

Bug ClassReal ExampleRight Tool
Removed / deprecated APIAsyncTask, TestCoroutineDispatcherβœ… AndroJack Level 3
Android 16 violationsscreenOrientation, resizeableActivity=falseβœ… AndroJack Level 3
Android 17 violationsstatic final reflection, LAN without permissionβœ… AndroJack Level 3
Architecture (flagged root)GlobalScope leaking to UIβœ… AndroJack Level 3
Absent modifier / missing constraintPH-UI-009 (innerPadding)πŸ”§ Android Lint / IDE inspector
Runtime contrast / colour failuresPH-UI-003 (WCAG)πŸ”§ paparazzi + Accessibility Scanner
Touch target violationsPH-UX-008πŸ”§ Accessibility Scanner
Architecture boundary (missing catch)PH-AR-004 (stack trace to UI)πŸ”§ Detekt + ViewModel unit tests

🎯 The Killer Argument

"Can your agents.md file tell me the Gradle version that shipped last Tuesday?"

No markdown file can. No rules in .cursorrules can. No SKILL.md can.

βœ… Only a live tool call can.

That's the job AndroJack exists to do β€” and nothing else in the current ecosystem does it for Android specifically.

What you needagents.md / SKILL.mdAndroJack MCP
Format output a specific wayβœ… PerfectWorks too
Follow team conventionsβœ… PerfectWorks too
Latest Gradle version right now❌ Guesses from memoryβœ… Fetches live
Is AsyncTask removed?❌ May be wrongβœ… Verified against SDK
Android 16 Play Store rules❌ Unknownβœ… Official source

Prompt engineering controls how the AI responds. MCP controls what the AI knows.


✨ What AndroJack Covers β€” 22 Tools

#ToolWhat It DoesWhat Breaks Without It
1πŸ” searchLive search across official Android/Kotlin docsAI reasons from memory β€” possibly wrong today
2⚠️ componentDeprecated/removed check on 40+ APIsCompiles fine, breaks at runtime/review
3πŸ“ architectureGuides for 40+ topics β€” MVVM, Nav3, MVI...AI gives 2022 advice; misses Nav3
4πŸ› debuggerParses stacktraces β†’ searches Issue TrackerAI hallucinates fixes for known bugs
5πŸ“¦ gradleLive lookup from Google Maven + BOM resolutionStale Compose BOM, KAPT instead of KSP
6πŸ“Š api-levelAPI 21–36 table, minSdk warningsAPI 26+ calls in minSdk 21 apps
7🎯 kotlin10 patterns β€” coroutines, MVI, Compose stateGlobalScope.launch, runBlocking in UI
8🎨 m3eMaterial 3 Expressive components & MotionM2 MaterialTheme in M3E app
9πŸ” permissions40+ permissions rules & contractsdeprecated requestPermissions()
10πŸ§ͺ testingUnit/Compose UI testing official patternsThread.sleep() in tests; missing Hilt
11πŸ—οΈ buildR8, libs.versions.toml, signing, AABimplementation instead of ksp
12πŸ“± large-screenWindowSizeClass (5 breakpoints incl. Large/XL), Adaptive ScaffoldsPhone-only layouts on foldables and desktops
13πŸš€ scalabilityPaging 3, WorkManager, modularizationNaive loadAll(); unstable keys in lists
14🧭 nav3Nav3 (Nov 2025) β€” Scenes, migrationAI generates Nav2 dead-ends
15βœ… complianceAPI 36 / Android 16 / 16 KB page sizeApps fail Play Store August 2026 mandate
16🌐 kmpRoom KMP, Ktor, source sets, Room 3.0 alphaAndroid-only code in KMP projects
17πŸ€– ondevice-aiAICore, ML Kit Gen AI, Gemini NanoCloud-only AI when offline is required
18πŸ“‹ policyPlay Store age-gating, billing openness, data safetyApps rejected for unknown policy changes
19πŸ₯½ xrAndroid XR SDK, SpatialPanel, OrbiterWorks as 2D panel, misses spatial value
20⌚ wearTiles, Health, M3 Expressive for Wear OSHandheld patterns on round displays
21πŸ›‘οΈ validatorLevel 3 loop-back validation gate β€” 31 rulesAI ships broken code without checking
22πŸ†• api17Android 17 / API 37 β€” static final, LAN, OTP, HandoffApps crash or fail Play Store on API 37

🧩 Manual Config / Copy / Paste

If you prefer to wire the server manually, or want to inspect the exact JSON before writing anything:

  • Run npx -y androjack-mcp@1.7.1 install --list to preview detected IDEs and target config paths.
  • Ready-to-paste examples live in config/.
IDE / ClientConfig file
Claude Desktopconfig/claude_desktop_config.json
Cursorconfig/cursor_mcp.json
VS Code / GitHub Copilotconfig/vscode_mcp.json
Windsurfconfig/windsurf_mcp.json
Android Studio / IntelliJconfig/jetbrains_mcp.json
AWS Kiroconfig/kiro_mcp.json
Google Antigravityconfig/antigravity_mcp.json

Every example keeps AndroJack local by default and runs the published package via npx -y androjack-mcp@1.7.1.


πŸ“ The Ecosystem: AndroJack vs. Other MCPs

FeatureGoogle Developer Knowledge MCPAndroJack MCP
IdentityThe Librarian (Information)The Gatekeeper (Enforcement)
MechanismContext RetrievalContext Enforcement
ScopeGeneralist β€” Firebase, Cloud, MapsAndroid engineering specialist
Tools3 retrieval tools22 specialized tools
SetupGoogle Cloud project + API key requirednpx androjack-mcp@1.7.1 β€” zero auth
EnforcementPassive β€” AI decides when to retrieveActive β€” mandating calls by task type

πŸ”’ Security & Privacy

PropertyImplementation
Domain allowlistRequests only to Google/Android/Kotlin official domains
HTTPS onlyOutbound documentation fetches refuse non-HTTPS URLs, cap body size, and redact query strings in retry logs
Local by defaultserve binds to loopback only unless you explicitly pass --allow-remote
HTTP hardeningStreamable HTTP validates Origin and Host headers and caps request bodies and active sessions
Transparent agentUser-Agent: AndroJack-MCP/1.7.1
Read-onlyAll 22 tools annotated readOnlyHint: true
Zero credentialsNo API keys or tokens required for documentation fetching
Security policyDisclosure process and supported versions in SECURITY.md

πŸ“‹ Changelog

v1.7.1 β€” Engineering Hardening & Community Parity

  • 54-Test Coverage β€” Implemented comprehensive unit and contract tests for validator rules, HTML parser, LRU cache, and HTTP security layer.
  • Discovery Parity β€” Fixed /.well-known/mcp endpoint to correctly report tools: 22.
  • Dependency Sanitization β€” Removed node-fetch (migrated to native fetch) and pruned stale overrides for a cleaner supply chain.
  • Rule Hardening β€” Improved Compose component detection for NavHost and BottomAppBar.
  • URL Remediation β€” Fixed broken documentation anchors for Android 17 ACCESS_LOCAL_NETWORK and handoff.

v1.7.0 β€” Android 17 / API 37 Support

  • Tool 22: android_api17_compliance β€” Full reference for Android 17 platform stability (March 26, 2026).
  • 31 validator rules β€” Expanded from 24 to 31 with dedicated Android 17 and Room 3.0 removal checks.
  • WindowManager 1.5.0 β€” Added Large (1200dp) and Extra-large (1600dp) breakpoints and layout patterns.
  • Room 3.0 alpha β€” Support for modern SQLiteDriver migration paths.

πŸ‘₯ Authorship & Ownership

Vikas Sahani β€” Product Lead (vikassahani17@gmail.com)
Claude AI β€” AI Engineering Lead


<div align="center">

MIT License Β© 2026 Vikas Sahani | SECURITY.md

Built because 35% of Stack Overflow visits in 2025 are developers debugging AI-generated code.
AndroJack exists so none of those visits are yours.

</div>