AI Agents
AI Agents
Use the Agent sidebar, or let coding agents work with your requests through Relay's MCP server.
Overview
Relay includes a Model Context Protocol (MCP) server, so AI coding agents such as Claude Code, Codex and Cursor can work with your requests. An agent can list and read your requests, edit and send them, create drafts, import API specs, generate client code, and read or write scripts. Relay also has an Agent of its own in the sidebar, which uses the same tools with a provider you connect.
The server runs on your Mac only while Relay is open, listens only on the local loopback address and requires a token. Scripts an agent writes don't run until you allow them.
Topics
Setup
- Connecting an AI agent to Relay: Turn on Relay's MCP server and add it to Claude Code, Cursor or another agent.
Using agents
- Working with Relay from an agent: Learn what an agent can do in Relay and how its changes reach your workspaces.
- Using the Agent sidebar: Ask an AI model to read, change and test your requests from inside Relay.
See Also
- MCP Tools: The tools Relay's MCP server offers to AI agents.
- Allowing scripts to run: Review and allow scripts that changed outside Relay before they run.