Connect your agent
Add a server block to config.toml.
Open the config file
Codex reads MCP servers from ~/.codex/config.toml. Create the file if it doesn't exist.
Add ScreenTap
Add this block anywhere in the file.
[mcp_servers.screentap]
command = "/Applications/ScreenTap.app/Contents/MacOS/ScreenTap"
args = ["--stdio"]Try it
Start a new Codex session and ask:
Take a screenshot of my iPhone and tell me what's on screen.Check that the ScreenTap app is open and your iPhone is connected, then restart your agent or start a new session. More fixes in Troubleshooting.