Add the Disbug MCP server to Codex
Paste one prompt into Codex and it installs the Disbug CLI, signs you in, and adds the Disbug MCP server to ~/.codex/config.toml with the using-disbug skill. Codex can then read your team’s bug reports, fix the code and mark each pin resolved.

Set it up in Codex
- 01
Paste this prompt into Codex
PromptI want to set up Disbug. Read https://app.disbug.io/agent-setup/ and follow its instructions.Approve the steps it asks about. It’s done when Codex reports
MCP OK, skill OK. - 02
Start a new session
Codex reads its configuration when a session starts.
›Prefer to run the commands yourself?
Install the CLI and connect Codex, or add the server to ~/.codex/config.toml:
brew install disbug-io/tap/disbug
disbug onboard --agent codex[mcp_servers.disbug]
command = "disbug"
args = ["mcp"]If Codex can’t find disbug, put the full path from which disbug in command. To repair the setup, run disbug configure --agent codex, then disbug doctor.

What Codex can do with Disbug
list_sessionssearch_sessionsList open sessions in a project, or search them by text.
get_sessionRead one report: its title and every pin with its note and page URL.
get_pinget_pinssearch_pinsRead or search pins with only the fields needed: screenshot, console, network, events, replay, voice_note or video.
download_attachmentOpen a file a reporter attached to a pin.
set_pin_statusset_session_statusMark a pin or session open, resolved or dismissed, with an optional note.
inspect_local_reportRead a report JSON downloaded from the extension.
whoamiShow which Disbug account and team the server uses.
How to give Codex a bug to fix
Give it what you’d give a developer, as text it can read. Ask it to find the cause first and name the evidence that points there, then to write a test that fails before the fix and passes after.
What Codex needs
- Where it happens
- The page URL and the element.
- What the person did
- The steps, in order, with the data they used.
- Expected and actual
- Without it, the agent guesses which behaviour is the bug.
- Console errors
- The message, file and line.
- Failed requests
- Method, URL, status and response body.
- A screenshot
- So the agent sees the state of the page.
With Disbug: Give Codex the report link. It reads each of these through the MCP server, so you don’t paste logs into the chat.
Prompts to try
- Find the cause of the open Disbug session on checkout before you change any code.
- Fix the open Disbug session on checkout and mark the pins resolved with a note.
- List open Disbug sessions from the last day and group the ones with the same error.
- Inspect ./disbug-report.json and reproduce the bug in a test.
The using-disbug skill tells Codex which tools to use. Full reference: theDisbug CLI READMEand theagent guide.
Codex questions
Does Codex need the CLI too?
Codex can use both: the MCP server for the Disbug tools, and the CLI through shell commands such as disbug sessions --status open or disbug inspect.
Can I use a second Disbug account?
Yes. Sign in with disbug --profile work login and set args = ["--profile", "work", "mcp"] in config.toml.
Does the MCP server run locally?
Yes. Codex starts disbug mcp on your machine and talks to it over stdio. For cloud reports, the CLI fetches sessions from your Disbug team with the token from disbug login.
What can Codex see?
Sessions and pins from the Disbug team you signed in to, and the files reporters attached. It fetches only the fields it asks for, one tool call at a time.
Does it work with local reports that were never uploaded?
Yes. The Chrome extension can save a report as a JSON file instead of uploading it, and inspect_local_report reads that file from disk.
Can the agent change anything in Disbug?
Only the status of sessions and pins, through set_session_status and set_pin_status. Every other tool only reads.
Which plan do I need?
MCP and CLI access is part of every plan, including Free. See pricing for session and seat limits.
Give Codex the whole bug.
Start free and capture your first report with the Chrome extension.