Connect an agent
Belay has an MCP server. A coding agent connected to it can create projects, write and save workflows, start runs and batches, and read the results, including each step’s screenshot.
Add the server
Section titled “Add the server”The address and how to add it to each agent are in two places in Belay, the same in both:
- On a project’s dashboard, while the project has no workflow and no run, under Write it with my agent, in Add the server to your agent. See Write a test with an agent.
- Under Preferences, in the MCP server panel.
The address is your Belay address followed by /mcp. Each command and the address have a Copy button.
Claude Code
claude mcp add --transport http semantic-test-runner https://app.belayqa.com/mcpCodex
codex mcp add semantic-test-runner --url https://app.belayqa.com/mcpGemini CLI
gemini mcp add --transport http semantic-test-runner https://app.belayqa.com/mcpCursor: choose Add to Cursor, Cursor’s own install link, with the address in it.
VS Code: run MCP: Add Server, choose HTTP, and enter the address.
Any other MCP client that supports HTTP servers with sign-in can use the same address.
Sign in
Section titled “Sign in”The first time the agent uses the server, it asks you to sign in, and your browser opens on Belay’s sign-in page. Sign in the way you always do. How the agent asks depends on the agent: in Claude Code, run /mcp and choose the server. There is no API key to create, copy, or rotate.
Connected
Section titled “Connected”Your agent is connected once it has called Belay at least once, as you. A new project’s Write it with my agent says so, and after that links to the project’s first workflow, whoever saved it. Connected belongs to you, not to a project: after your agent’s first call, every project shows it.
What the agent can do
Section titled “What the agent can do”The agent acts as you. It sees your organization’s projects and has your role’s permissions:
| Role | The agent can |
|---|---|
| Viewer | Read projects, environments, routes, variables, tags, workflows, runs, batches, and step evidence. A Viewer’s agent cannot save, run, or use validate_workflow. |
| Member | Also save workflows, start and cancel runs and batches, and set up projects, environments, routes, and variables. |
| Admin | The same as a Member. Managing people and the organization is done in the browser. |
The server lists only the tools your role may use, and refuses a call to any other.
What the agent does is recorded as yours. A workflow it saves shows you as the person who saved it, and a run it starts shows it was started through MCP.
Check it works
Section titled “Check it works”Ask the agent:
List my Belay projects.
It should call list_projects and answer with the projects you see in the browser.