GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者による説明(英語の原文)
MCP server for React Native/Expo runtime debugging, inspection, and automation via Metro/CDP
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"metro": {
"command": "npx",
"args": [
"-y",
"metro-mcp"
]
}
}
}ターミナルでこれを実行します
claude mcp add metro -- npx -y metro-mcpプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"metro": {
"command": "npx",
"args": [
"-y",
"metro-mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"metro": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"metro-mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント steve228uk で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.15.0)がレジストリに届いたのは2 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
A plugin-based MCP server for React Native runtime debugging, inspection, and automation. Connects to Metro bundler via Chrome DevTools Protocol — no app code changes needed for most features.
Works with Expo, bare React Native, and any project using Metro + Hermes.
claude mcp add metro-mcp -- npx -y metro-mcp
claude mcp add metro-mcp -- bunx metro-mcp
codex mcp add metro-mcp -- npx -y metro-mcp
codex mcp add metro-mcp -- bunx metro-mcp
Codex stores MCP servers in ~/.codex/config.toml by default, and the Codex CLI and IDE extension share that configuration.
If you prefer to configure it manually:
[mcp_servers.metro-mcp]
command = "npx" args = ["-y", "metro-mcp"]
Run OpenCode's interactive MCP installer:
opencode mcp add
Choose a local server, name it metro-mcp, and use npx -y metro-mcp as the command.
If you prefer to configure it manually, add this to opencode.json in your project, or to ~/.config/opencode/opencode.json for a global install:
{
"$schema": "https://opencode.ai/config.json", "mcp": { "metro-mcp": { "type": "local", "command": ["npx", "-y", "metro-mcp"], "enabled": true } } }
Or with Bun:
{
"$schema": "https://opencode.ai/config.json", "mcp": { "metro-mcp": { "type": "local", "command": ["bunx", "metro-mcp"], "enabled": true } } }
{
"mcpServers": { "metro-mcp": { "command": "npx", "args": ["-y", "metro-mcp"] } } }
Or with Bun:
{
"mcpServers": { "metro-mcp": { "command": "bunx", "args": ["metro-mcp"] } } }
If you use several MCP clients, add-mcp can write the config for supported agents, including Claude Code, Codex, Cursor, OpenCode, and VS Code:
npx add-mcp metro-mcp --all -g -y
metro-mcp supports multiple agents at the same time. Standard stdio installs start or reuse a local shared daemon for the same project directory and Metro/config options, so Codex, Claude Code, Cursor, and other clients can connect concurrently to the same running Metro app and see the same logs, network requests, errors, and runtime state.
If you want to expose one long-lived MCP endpoint yourself, start the shared server explicitly:
npx -y metro-mcp serve --mcp-port 8765
This serves Streamable HTTP at http://127.0.0.1:8765/mcp. The endpoint supports both the 2025-era MCP handshake and the 2026-07-28 negotiation; /sse and /messages are intentionally unavailable. Tools such as supergateway can point at the Streamable HTTP endpoint instead of launching a fresh stdio process per request.
codex mcp add metro-mcp -- npx -y metro-mcp --port 19000
claude mcp add metro-mcp -- npx -y metro-mcp --port 19000
For OpenCode, add the port to the command array:
"command": ["npx", "-y", "metro-mcp", "--port", "19000"]
xcrun simctl is used for most operations)adb on your PATHbrew install idb-companion. Tools will tell you when IDB is needed.metro-mcp connects to your running Metro dev server the same way Chrome DevTools does:
No app modifications required for core debugging features.
| Plugin | Tools | Description |
|---|---|---|
| console | 2 | Console log collection with filtering |
| network | 6 | Network request tracking, response body inspection, and stats |
| errors | 3 | Runtime exception collection + Metro bundle error detection |
| evaluate | 1 | Execute JavaScript in the app runtime |
| device | 4 | Device management, connection status, and app reload |
| environment | 4 | Build flags, platform constants, env vars, and Expo config inspection |
| source | 1 | Stack trace symbolication |
| redux | 3 | Redux state inspection and action dispatch |
| components | 5 | React component tree inspection |
| storage | 3 | AsyncStorage reading |
| simulator | 6 | iOS simulator / Android device control |
| deeplink | 2 | Cross-platform deep link testing |
| permissions | 5 | Inspect and manage app permissions on iOS Simulator and Android Emulator |
| ui-interact | 6 | UI automation (tap, swipe, type) |
| navigation | 4 | React Navigation / Expo Router state |
| accessibility | 3 | Accessibility auditing |
| commands | 2 | Custom app commands |
| automation | 3 | Wait/polling helpers for async state changes |
| profiler | 9 | CPU profiling (React DevTools hook) + heap sampling + render tracking |
| test-recorder | 7 | Record interactions and generate Appium, Maestro, or Detox tests |
| filesystem | 5 | Browse and read files in app sandbox directories (Documents, caches, SQLite DBs) |
| devtools | 1 | Open Chrome DevTools alongside the MCP via CDP proxy |
| debug-globals | 1 | Auto-discover Redux stores, Apollo Client, and other debug globals |
| inspect-point | 1 | Coordinate-based React component inspection (experimental) |
| statusline | 1 | Claude Code status bar integration |
→ See the full tools reference.
Hermes (the React Native JavaScript engine) only allows a single CDP debugger connection at a time. Since metro-mcp uses that connection, pressing "j" in Metro or tapping "Open Debugger" in the dev menu will steal the connection and disconnect the MCP.
metro-mcp solves this with a built-in CDP proxy that multiplexes the single Hermes connection, allowing Chrome DevTools and the MCP to work simultaneously.
Use the open_devtools MCP tool instead of the usual methods. It opens the same React Native DevTools frontend (rn_fusebox) that Metro uses, but routes the WebSocket connection through the proxy so both can coexist.
The tool automatically finds Chrome or Edge using the same detection as Metro and opens a standalone DevTools window.
| Method | What happens |
|---|---|
| Pressing "j" in Metro terminal | Disconnects the MCP |
| "Open Debugger" in the dev menu | Disconnects the MCP |
open_devtools MCP tool | Works alongside the MCP |
The CDP proxy is enabled by default. To change the port or disable it:
# Set a fixed proxy port
METRO_MCP_PROXY_PORT=9222 npx metro-mcp
METRO_MCP_PROXY_ENABLED=false npx metro-mcp
Get live Metro CDP connection status in your Claude Code status bar.
Run setup_statusline in Claude Code — it writes a script to ~/.claude/metro-mcp-statusline.sh, then ask Claude to add it to your status bar:
/statusline add the script at ~/.claude/metro-mcp-statusline.sh
The status bar segment shows three states:
| State | Display |
|---|---|
| Not running | Metro ○ (dimmed) |
| Running, not connected | Metro ● (red) |
| Connected | Metro ● localhost:8081 (green) |
Record real user interactions (taps, text entry, scrolls) and generate production-ready tests — no app code changes required.
Describe a flow and the AI navigates the app, then generates the test:
_"Write an Appium test for the guest checkout flow — start by tapping 'Start Shopping' on the welcome screen and end when the cart screen is visible."_
The AI calls start_test_recording, navigates using tap_element/type_text/swipe, then generates a complete test with real selectors observed from the fiber tree.
start_test_recording → inject interceptors
(interact with the app) stop_test_recording → retrieve event log generate_test_from_recording format=appium
Supports Appium (WebdriverIO), Maestro YAML, and Detox.
→ See the testing guide for full details, format examples, and tips.
Register custom commands and expose state to the MCP server — no package needed. Add this to your app entry point in dev mode:
if (__DEV__) {
globalThis.__METRO_BRIDGE__ = { commands: { // Run custom actions from the MCP client login: async ({ email, password }) => { return await authService.login(email, password); }, resetOnboarding: () => { AsyncStorage.removeItem('onboarding_completed'); }, switchUser: ({ userId }) => { store.dispatch(switchUser(userId)); }, }, state: { // Expose state snapshots readable via get_redux_state userStore: () => useUserStore.getState(), }, }; }
Use list_commands and run_command to call these from the MCP client.
For enhanced featur
冒頭だけを表示しています。続きはリポジトリで読めます