NDKTrace
FreeNot checkedAnalyzes Android NDK crashes by resolving native symbols with ELF BuildId verification for AI-assisted crash diagnosis.
About
Analyzes Android NDK crashes by resolving native symbols with ELF BuildId verification for AI-assisted crash diagnosis.
README
NDKTraceSkills is a local toolchain for Android native crash restoration and AI-assisted analysis. The recommended workflow is a project-aware agent skill that runs a deterministic C++ CLI first and falls back to guided workspace inspection only when project resolution is incomplete. The repository is organized around three primary parts:
- a C++ CLI in
cli/ - a shared core library in
cli/that includes crash artifact parsing and symbolization helpers - a Codex skill in
skills/android-native-crash-analysis/
The current scaffold already includes a buildable CLI, project-aware Android resolution, and a local skill workflow that can fall back to workspace inspection when project resolution is incomplete.
Repository Layout
cli/contains the CMake-based C++ command-line applicationskills/android-native-crash-analysis/contains the Codex skilldocs/contains the project notes and contracts
Documentation
Current Scope
- Define the CLI command surface and JSON output contract, including artifact, frame, and memory-map metadata fields
- Keep crash artifact parsing in the shared core library instead of the CLI entry point
- Prefer verified ELF BuildId matches before path or basename fallback when selecting local symbol files
- Normalize logcat-wrapped native crash lines before frame parsing so raw logcat excerpts can be restored directly
- Let the CLI resolve Android project metadata, module selection, NDK paths, and preferred unstripped symbols when explicit paths are missing
- Let the local analysis skill call the CLI first and use workspace inspection only when the CLI reports partial or ambiguous project resolution
- Keep deterministic stack restoration, validation, and BuildId-aware matching in the CLI
Recommended Local Workflow
- provide the crash text plus either explicit
ndk_pathandsymbol_pathvalues or an Androidproject_path - let the skill call
ndktrace-cli resolve-projectfirst to resolve the module, variant, ABI, NDK path, and preferred unstripped.so - use skill-driven workspace inspection only when
resolve-projectreturnspartial,ambiguous, ornot_found - run
ndktrace-cli validatebefore stack restoration when the selected native inputs are uncertain - run
ndktrace-cli restoreonly after the skill has selected concrete local paths
Quick Start
Build the CLI:
cmake -S cli -B cli/build
cmake --build cli/build --config Debug
Run the scanner:
cli\build\Debug\ndktrace-cli.exe scan-ndk --pretty
Resolve an Android project directly from a crash artifact:
cli\build\Debug\ndktrace-cli.exe resolve-project --project D:\Project\Android --stack-file crash.txt --pretty
Run the CLI tests:
ctest --test-dir cli/build -C Debug --output-on-failure
Installing NDKTrace
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/finalscave/ndktraceskillsFAQ
Is NDKTrace MCP free?
Yes, NDKTrace MCP is free — one-click install via Unyly at no cost.
Does NDKTrace need an API key?
No, NDKTrace runs without API keys or environment variables.
Is NDKTrace hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install NDKTrace in Claude Desktop, Claude Code or Cursor?
Open NDKTrace on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare NDKTrace with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
