Skip to main content
Glama
MarwanDevSpace

mcp-flutter-apk-injector

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_FLUTTER_LOG_LEVELNoLog level for the MCP server (e.g., info, debug, error).info

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
decompile_apkA

Decode an APK into a Smali, resources, assets, native-library, and manifest workspace for later analysis or modification. The input APK is read-only, but outputDir is removed and recreated; use analyze_injection_surface next, and do not call this when a valid decoded workspace already exists. Full source decoding requires apktool and Java, while decompileSources=false is limited to resource and manifest inspection.

analyze_injection_surfaceA

Read a decoded APK workspace to identify manifest components, ABI coverage, Flutter conflicts, JNI loading evidence, and candidate integration points. This operation is read-only and idempotent; use it after decompile_apk and before choosing an injection mode, not to modify files. Review warnings and evidence before calling inject_flutter_runtime_and_smali or patch_manifest_and_config.

synthesize_flutter_payloadA

Build a Flutter project into native libraries and flutter_assets for the selected Android ABIs, ready for injection into a decoded workspace. Use it after target ABI analysis and before injection when source Flutter code is available; use an existing validated payload directory instead when artifacts are already built. This invokes the local Flutter SDK and replaces the payload output directory, so expect build time, disk writes, and build diagnostics.

inject_flutter_runtime_and_smaliA

Inject a synthesized Flutter payload and generated Smali bootstrap into a decoded APK workspace after decompile_apk and synthesize_flutter_payload have completed. This mutates workspaceDir by adding libraries, assets, and Smali files; run analyze_injection_surface first when the host lifecycle or ABI compatibility is uncertain. Choose activity_overlay for the supported cached-engine screen path, use direct_application_hook only for a resolvable host Application, and treat view_tree_injection as experimental because it requires a lifecycle-compatible host.

patch_manifest_and_configA

Apply requested Flutter-related component, application, permission, and rendering changes to AndroidManifest.xml in a decoded workspace. Use it only after reviewing the injection surface and generated classes; it mutates the manifest in place, so use analyze_injection_surface instead when only inspection is needed. Review the structured delta before recompilation, especially for application-class, permission, exported-component, or network-security changes.

recompile_align_and_signA

Build a modified decoded workspace with apktool, align the APK, sign it with apksigner, and verify the resulting signature. Use this as the final packaging step after manifest and Smali validation; it overwrites outputApkPath and creates signing artifacts, so do not call it for read-only inspection. Provide a custom keystore only for an authorized signing workflow; otherwise the result is a debug-signed test artifact, not an update-compatible release by default.

get_agent_contextA

Retrieve Hermes+ persona, loaded skills, live memory summary, and pipeline telemetry

update_agent_memoryB

Update active session memory state with notes, identified targets, or patch logs

query_memory_graphB

Search and inspect historical patch logs, register allocations, and decompilation metadata

Prompts

Interactive templates invoked by user choice

NameDescription
scanPerform a detailed injection surface diagnostic audit of a decompiled APK workspace
decompileDisassemble an Android APK file into Smali bytecode and decoded resources
injectExecute Flutter engine and Smali glue code injection into a target APK workspace
patchPatch AndroidManifest.xml and Smali structures with Flutter requirements
recompileRebuild, align, and sign the modified APK workspace
pipelineExecute full end-to-end automated reverse engineering & Flutter injection pipeline
mergePlan and validate split-package compatibility without blindly merging APK directories
revertInspect patch history and determine whether verified rollback evidence exists
memoryInspect active Hermes+ session memory state, historical patch logs, and telemetry
hermes_guideDisplay Hermes+ system architecture rules and reverse engineering guidelines

Resources

Contextual data attached and managed by the client

NameDescription
agent-persona
agent-rules
skill-hermes-apk-reverse-engineering
skill-mcp-toolchain-orchestrator
memory-session
memory-patch-history

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MarwanDevSpace/mcp-flutter-apk-injector'

If you have feedback or need assistance with the MCP directory API, please join our Discord server