> For clean Markdown of this page, append .md to its URL. For the complete documentation index, see https://www.superagent.sh/llms.txt.


Connect Claude Code to Superagent MCP and complete a finding-to-report workflow.

# Set up Claude Code

Connect Claude Code to Superagent MCP, then route signed findings through the automation endpoint used by your Claude Code environment.

## Connect Superagent MCP

```bash
claude mcp add --transport http --scope user superagent https://www.superagent.sh/mcp \
  --header "Authorization: Bearer $SUPERAGENT_API_KEY"
```

Run `/mcp` inside a Claude Code session to verify the connection. Keep the API key in your environment or secret manager.

## Configure the finding handoff

Configure an authenticated relay for [Superagent webhooks](https://www.superagent.sh/docs/webhooks). The relay verifies the signature and event type, converts the event to the input expected by the Claude Code automation, and keeps automation credentials outside Superagent.

## Test the complete loop

1. Send a Superagent webhook test event.
2. Confirm the relay verifies it and starts one Claude Code task.
3. Retrieve the finding through Superagent MCP.
4. Investigate or remediate within the task's assigned scope.
5. Return the structured agent report through Superagent MCP.
6. Confirm that Superagent retained the report.
7. Leave consequential changes for normal review.

## Next steps

- [Use Superagent MCP](https://www.superagent.sh/docs/mcp)
- [Subscribe to events with Webhooks](https://www.superagent.sh/docs/webhooks)
- [Compare Superagent interfaces](https://www.superagent.sh/docs/build)

---
Source: https://www.superagent.sh/docs/connect/claude-code
Index: https://www.superagent.sh/llms.txt
