
steve228uk/metro-mcp 是从 https://github.com/steve228uk/metro-mcp. 导入的 MCP 服务器候选
概览
steve228uk/metro-mcp 是从 https://github.com/steve228uk/metro-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
基于插件的MCP服务器,用于React Native运行时调试、检查和自动化。通过Chrome DevTools协议连接Metro Bundler——大多数功能无需更改应用代码。
支持Expo、裸React Native以及任何使用Metro + Hermes的项目。
目录
- 快速入门
- 要求
- 工作原理
- 特色
- Chrome 开发工具
- Claude 代码状态栏
- 测试录制
- 应用集成
- 配置
- 自定义插件
- 兼容性
快速启动
克劳德·科德
法典
Codex 默认将 MCP 服务器存储在 ~/.codex/config.toml 中,Codex CLI 和 IDE 扩展共享该配置。
如果你更喜欢手动配置:
开放代码
运行OpenCode的交互式MCP安装程序:
选择一个本地服务器,命名为metro-mcp,并使用npx -y metro-mcp作为命令。
如果你更喜欢手动配置,可以在项目中的opencode.json中添加,或在全局安装时添加到~/.config/opencode/opencode.json中:
或者和Bun一起:
光标 / VS 代码
或者和Bun一起:
跨多个代理安装
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
metro-mcp
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.
Contents
- Quick Start
- Requirements
- How It Works
- Features
- Chrome DevTools
- Claude Code Status Bar
- Test Recording
- App Integration
- Configuration
- Custom Plugins
- Compatibility
Quick Start
Claude Code
claude mcp add metro-mcp -- npx -y metro-mcp
# or with Bun
claude mcp add metro-mcp -- bunx metro-mcp
Codex
codex mcp add metro-mcp -- npx -y metro-mcp
# or with Bun
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"]
OpenCode
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
}
}
}
Cursor / VS Code
{
"mcpServers": {
"metro-mcp": {
"command": "npx",
"args": ["-y", "metro-mcp"]
}
}
}
Or with Bun:
{
"mcpServers": {
"metro-mcp": {
"command": "bunx",
"args": ["metro-mcp"]
}
}
}
Install across multiple agents
安装
npx -y metro-mcp配置
{
"mcpServers": {
"metro-mcp": {
"command": "npx",
"args": ["-y", "metro-mcp"]
}
}
}