Skip to main content
After Struct completes an investigation, you can open it directly in Claude Code or Cursor with one click. Your coding agent receives the full investigation context — root cause, relevant logs, code references, and suggested fix — so it can start implementing immediately.
You can also use the Struct Build Agent to implement fixes automatically without leaving Struct.
Setup requires two steps. Install the MCP server (Step 1) so your agent can access investigation data, and the CLI bridge (Step 2) so the one-click “Open in” buttons work.

Step 1: Set Up MCP

The Struct MCP server gives your coding agent access to investigation data. Set it up from SettingsCoding Agent in the web app.
1

Install MCP

Go to SettingsCoding AgentClaude Code tab and copy the install command:
claude mcp add --transport http struct <your-mcp-url>
You can find the full command with your MCP URL in the settings page.
2

Ready

OAuth login is triggered automatically on first use. You can now use Struct MCP tools directly in Claude Code.

Available MCP Tools

ToolDescription
get_investigation_detailFetch the full investigation report for a session
search_investigationsSearch across past investigations

Step 2: Install the CLI Bridge

The CLI bridge registers a struct:// protocol handler on your machine, enabling the one-click Open in buttons in the Struct web app.
npm install -g @struct/cli
struct bridge install
Then authenticate:
struct login

How “Open in” Works

  1. Open an investigation in the Struct web app
  2. Click Open in Claude Code or Open in Cursor
  3. Your browser triggers the struct:// protocol, which the CLI bridge handles
  4. Your coding agent opens with the full investigation context loaded via MCP
If the CLI bridge isn’t installed, Struct will show install instructions and a fallback option to copy the investigation context to your clipboard.

CLI Commands

The Struct CLI also supports manual handoff from the terminal:
# Open an investigation in your coding agent
struct fix <session-id> --agent claude_code
struct fix <session-id> --agent cursor

# Take over a session locally
struct local --issue-url <linear-issue-url>
struct local --pr-url <github-pr-url>
struct local --thread-url <slack-thread-url>

# Generate MCP config for your agent
struct connect

Uninstall

struct bridge uninstall