Lionscope
概览
作者提供的说明(英文原文)
Android profiler and Layout Inspector: CPU, memory, frames, stalls, layouts, network, logcat
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段↓ 439/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"lionscope": {
"command": "npx",
"args": [
"-y",
"lionscope",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add lionscope -- npx -y lionscope mcp或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"lionscope": {
"command": "npx",
"args": [
"-y",
"lionscope",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"lionscope": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"lionscope",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 risyadul 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5686 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5686 个服务器的 91% 更新
- 基础检查结果等于或优于此分类中其他 5686 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Lionscope 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.12.0)于4天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Lionscope
Lionscope is a lightweight Android profiler and Layout Inspector in your browser, and your AI agent can use it too. No Android Studio needed: run npx lionscope@latest, pick a device and an app.
- Profile: CPU, memory, frame rendering, main-thread stalls, layout inflation and logcat for one app, on a single shared time axis. With the SDK, each stall names the line that blocked and where its work came from (an RxJava chain and the line that subscribed it, a coroutine, a posted Runnable, a click).
- Inspect: freeze the screen, click a view, and see its attributes; with the SDK, also the XML layout and line it came from and the Fragment that owns it, the composables of Compose screens with the Kotlin line that calls them, and live edits of a View's properties (padding, size, colors with a picker, text…) on the running app.
- Network: with the SDK's OkHttp interceptor, see the app's HTTP requests (headers, bodies, timings) on the same time axis, and mock responses or failures from the dashboard.
- Operate: see and control emulators (which it can also boot headless) and USB devices right next to the charts, and move them to another location on a map.
- AI agents: the same data as tools over MCP or a CLI (Claude Code, Cursor, VS Code, Codex, …). Select a view in the Inspector and ask your agent about "this element".
It stays light. Measured with the sample app on an emulator, the server uses under 1% of one CPU core while the app is idle and about 4% while it scrolls, with 100–150 MB of memory. The SDK adds about 0.5% CPU in the app.
It works in two modes:
- ADB-only (no app changes): everything is collected through
adb shell(/proc,dumpsys,logcat). - With the optional SDK in the app's debug build: adds which screen is on top (Activity, Fragment, DialogFragment), per-frame
FrameMetricswith a stage-by-stage breakdown, grouped per screen, and main-thread stalls with the app code line that caused them and where their work came from (plus opt-in StrictMode violations), layout inflation timing, the Layout Inspector's own view tree with layout sources and owners, the composables of Compose screens, live edits of Views, and (with one line in yourOkHttpClient) the app's HTTP traffic and mock responses.
The bundled sample app on a headless emulator, operated from the Device column: screen bands across all charts, SDK FrameMetrics in the Rendering lane, logcat below the timeline, and the Screens tab ranking the screens by jank.
What the dashboard shows
One page: the device, the charts on one time axis, logcat and, with the SDK, the Screens, Stalls, Layouts and Network tabs. See What the dashboard shows, and each part in detail:
- Finding the line that blocks the main thread
- Layouts: what inflating XML costs
- Layout Inspector: pick a view, see where it came from, and editing views live
- Network: requests and mocks
- Saved state: what makes it too large
- Operating the emulator or a physical device from the dashboard
- Changing the device's location
Requirements
- Node.js ≥ 22.12
- Android SDK platform-tools (
adb). Lionscope looks for it inLIONSCOPE_ADB,$ANDROID_HOME,$ANDROID_SDK_ROOT,~/Library/Android/sdk, thenPATH. - A device or emulator with USB debugging enabled, running Android 7.0 (API 24) or newer (Lionscope relies on
pidof, toyboxdate +%s%3Nand a non-PTYadb shell).
Quick start
npx lionscope@latest
open http://localhost:8701
@latest makes npx check for a new release; a bare npx lionscope can keep running a version it cached earlier.
From source instead (the npm package may lag the latest git tag): git clone https://github.com/risyadul/Lionscope.git && cd Lionscope && npm install && npm run lionscope.
Pick the device, pick the app, press Start. Nothing needs to be installed on the device for the ADB-only mode. npx lionscope --help lists the options (--port, --device-port, --adb, --allow-device-control, --allow-network-bodies) and the mcp and query commands for AI agents; the lionscope package is a single bundled file plus the built dashboard, with no runtime dependencies.
Adding the SDK (optional, debug builds only)
The SDK is published on JitPack. It is a public artifact: no credentials or opt-in property are needed.
// settings.gradle (dependencyResolutionManagement) or app/build.gradle repositories
maven { url "https://jitpack.io"; content { includeGroup "com.github.risyadul.Lionscope" } } // app/build.gradle debugImplementation "com.github.risyadul.Lionscope:lionscope:0.12.0"
If the project uses dependencyResolutionManagement, the maven block goes in settings.gradle; otherwise in the module's repositories. The content { includeGroup … } filter keeps JitPack from serving anything except Lionscope.
No code changes are needed: the SDK starts itself through androidx.startup, and only does anything in a debuggable build and in the app's main process. When a session starts, the server runs adb reverse tcp:8700 tcp: for the selected device itself and removes it when the session stops. If an app removes androidx.startup's InitializationProvider, call Lionscope.install(context) from Application.onCreate.
Apps that call the SDK's API (Lionscope.install(), Lionscope.trackNavigation(), Lionscope.okHttpInterceptor(), …) also need the lionscope-noop artifact in release builds. That, screen names, Navigation Compose, the Network interceptor and what the SDK costs when no dashboard is connected are in The SDK.
Use with AI agents
AI coding agents (Claude Code, Cursor, VS Code, Codex, …) get the dashboard's data as tools, over MCP (npx -y lionscope mcp) or the shell (npx lionscope query ). Tools that operate the device stay off unless you add --allow-device-control. Setup for each client, the tools, the agent skill and the safety notes are in Use with AI agents.
Architecture
The server, the dashboard, the SDK and how they connect: Architecture.
Security model
What the server accepts, from where, and what reaches an agent: Security model.
Known limitations
See Known limitations.
Configuration
Flags and environment variables: Configuration.
Development
Building and testing from source: Development.
License
Licensed under the Apache License, Version 2.0. See NOTICE.