# Connect Hallway Test to Codex

> Add the Hallway Test MCP server to OpenAI Codex with two commands, codex mcp add and codex mcp login. Works in the Codex CLI and the IDE extension.

Page: https://hallwaytest.ai/connect-codex
MCP endpoint: https://mcp.hallwaytest.ai/mcp
Last updated: November 9, 2026

Codex supports remote MCP servers with OAuth out of the box. Two commands register Hallway Test and sign you in; the 22 tools are then available in every Codex session, in the terminal and in the IDE extension.

## Add the server in Codex

1. **Add the server from the CLI.** Run this in your terminal. Codex writes the entry to ~/.codex/config.toml.

   ```bash
   codex mcp add hallwaytest --url https://mcp.hallwaytest.ai/mcp
   ```

2. **Or add it to config.toml by hand.** The same entry in ~/.codex/config.toml. No token variable is needed: Hallway Test uses OAuth.

   ```toml
   [mcp_servers.hallwaytest]
   url = "https://mcp.hallwaytest.ai/mcp"
   ```

3. **Sign in.** Codex opens your browser: sign in with Google and approve the connection. Codex registers itself with the server automatically, so no client ID is required.

   ```bash
   codex mcp login hallwaytest
   ```

4. **Check the connection.** codex mcp list shows hallwaytest with its URL. In a Codex session, ask What Hallway Test tools do you have? and you should get the 22 tools back.

   ```bash
   codex mcp list
   ```

5. **Using the IDE extension instead.** Open the gear menu, choose MCP servers, then Add server and Streamable HTTP. Enter hallwaytest as the name and https://mcp.hallwaytest.ai/mcp as the URL, restart the extension, and choose Authenticate when prompted.

6. **Run your first test.** Describe the flow in one sentence, for example:

   ```bash
   Use Hallway Test to have a real user place an order as a guest on https://staging.example.com and reach the confirmation page.
   ```

7. **You’re all set.** Codex calls create_usability_task and a tester gets to work; results come back within 24 hours. Ask Codex for the status at any time, and when the session is ready, ask it to audit the recording and fix what the tester got stuck on.

## Account activation

A new account can connect right away, but the first request to dispatch a test answers with a link to book the free pilot call. After the 30-minute call we activate the account, with no need to reconnect: you can send tests right away, and results come back within 24 hours. Book the pilot call: https://hallwaytest.ai/book

## What Hallway Test exposes to Codex

### Run a test

- `create_usability_task`: Writes and dispatches a real usability test to a real user, based on the flow you describe.
- `get_usability_result`: Checks a test right away: still with the tester, failed, or the recording ready to audit.
- `list_usability_tasks`: Lists your recent tests with their status, so you can ask how they are going without a task ID.
- `wait_for_usability_result`: For clients that keep long requests open: follows the run and hands back the recording as soon as it’s ready.
- `cancel_test_run`: Cancels a test that was already dispatched.

### Plan tests

- `plan_usability_test_suite`: Scans your project and drafts a full test suite – 5 to 10 critical user flows, ranked by risk.

### Analyze a recording

- `plan_jam_ux_audit`: Turns a raw recording into a structured, evidence-backed UX audit by running the tools below in the right order.
- `jam_get_details`: Recording metadata – type, duration, whether a voice transcript exists, and the shareable link.
- `jam_get_user_events`: The full click / type / navigation log – the source of truth for what the tester actually did.
- `jam_get_video_transcript`: The tester’s spoken think-aloud commentary, timestamped.
- `jam_get_frames`: Pulls screenshots from key moments in the recording to visually confirm a friction point.
- `jam_get_console_logs`: Browser console logs, used to explain a technical cause behind friction that’s already been proven.
- `jam_get_network_requests`: Network request log, used to trace a failed call behind an already-evidenced UX problem.

### Mobile apps

- `setup_mobile_sdk`: Adds the Hallway Test SDK to your React Native or Expo app, with your app key filled in, and confirms the first recording arrived.
- `list_mobile_apps`: Your mobile apps and their app keys, including apps a teammate shared with you.
- `mobile_get_details`: Start of every mobile audit: device, app version, duration, crash, what was recorded, and the viewer link.
- `mobile_get_user_events`: Taps, swipes, text input, screens and navigation, each at its second in the video – the source of truth for a mobile audit.
- `mobile_get_video_transcript`: What the person said while recording, timed to the video.
- `mobile_get_frames`: Screenshots from the screen video at the seconds the events point to.
- `mobile_get_errors`: JavaScript errors, native crashes and frozen screens, each with its time in the video.
- `mobile_get_console_logs`: JavaScript console output and native logs, filtered by level.
- `mobile_get_network_requests`: HTTP and WebSocket traffic of the app, used to explain a spinner that never ends or a submit that does nothing.

## Troubleshooting

**codex mcp login says the server is unknown**
The name must match the entry: codex mcp list shows the names Codex knows. If the entry is missing, check ~/.codex/config.toml for a typo in the [mcp_servers.hallwaytest] header.

**Hallway Test replies with a link to book a call instead of running the test**
Your account is connected but not activated yet. Activation happens on the free pilot call; book it through the link, and after the call every test dispatch goes through without reconnecting.

**Calls fail with an authorization error after some time**
Run codex mcp login hallwaytest again. The configuration stays in place; only the sign-in is refreshed.

**Does this work with Claude Code as well?**
Yes, with one command: claude mcp add --transport http hallwaytest https://mcp.hallwaytest.ai/mcp. Claude Code opens the same Google sign-in.

## Other clients

- [Connect Hallway Test to Claude](https://hallwaytest.ai/connect-mcp.md)
- [Connect Hallway Test to Cursor](https://hallwaytest.ai/connect-cursor.md)
- Claude Code (CLI): `claude mcp add --transport http hallwaytest https://mcp.hallwaytest.ai/mcp`

## Related

- [Home](https://hallwaytest.ai/index.md)
- [Pricing](https://hallwaytest.ai/pricing.md)
- [Book a free pilot](https://hallwaytest.ai/book.md)

Stuck partway through? Write to support@hallwaytest.ai.
