# frida-mcp

```bash
cd codex-frida-mcp
pip install -r requirements.txt
pip install -e . // 直接安装codex-frida-mcp
```



## Codex MCP config

Add this to Codex MCP config (TOML):

```toml
[mcp_servers.frida-mcp]
command = "python"
args = ["D:\\js_pachong\\codex-frida-mcp\\frida_mcp.py"]
env = { PYTHONUTF8 = "1", PYTHONIOENCODING = "utf-8", FASTMCP_SHOW_SERVER_BANNER = "false" }
startup_timeout_sec = 30
tool_timeout_sec = 120
```

If you installed with `pip install -e .`, you can also use:

```toml
[mcp_servers.frida-mcp]
command = "frida_mcp_server"
args = []
env = { PYTHONUTF8 = "1", PYTHONIOENCODING = "utf-8", FASTMCP_SHOW_SERVER_BANNER = "false" }
startup_timeout_sec = 30
tool_timeout_sec = 120
```

## Optional config.json

`config.json` example:

```json
{
  "server_path": "/data/local/myfr",
  "server_name": "aaabbb",
  "server_port": 27042,
  "device_id": null,
  "adb_path": "adb"
}
```

