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 Settings → Coding Agent in the web app.
Install MCP
Go to Settings → Coding Agent → Claude 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. Ready
OAuth login is triggered automatically on first use. You can now use Struct MCP tools directly in Claude Code.
Install MCP
Go to Settings → Coding Agent → Cursor tab and click Install Struct MCP. This opens Cursor and configures the MCP server automatically.Alternatively, add this to your .cursor/mcp.json manually:{
"mcpServers": {
"struct": {
"url": "<your-mcp-url>"
}
}
}
You can find your MCP URL in the settings page. Ready
OAuth login is triggered automatically on first use. You can now use Struct MCP tools directly in Cursor.
| Tool | Description |
|---|
get_investigation_detail | Fetch the full investigation report for a session |
search_investigations | Search 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:
How “Open in” Works
- Open an investigation in the Struct web app
- Click Open in Claude Code or Open in Cursor
- Your browser triggers the
struct:// protocol, which the CLI bridge handles
- 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