Skip to content
Swarmetry

Automate

Assistant, MCP, CLI, API tokens

Drive Swarmetry from chat, an IDE or a terminal.

Everything you can do in the interface is an operation. The assistant, the MCP server, the CLI and the REST API expose the same operations with the same permissions, plan limits, quotas, audit and confirmations.

The assistant

Open it from the top bar or with Ctrl+I (Cmd+I) on any page. It knows the page you are on. Ask in your language: "create a project and a staging environment", "start the smoke test of the checkout scenario from Germany and France", "why was this request slow?". It streams its answers, shows each tool call, can open pages and highlight things for you, and accepts attachments (HAR, OpenAPI...).

  • Confirmation. Destructive and costly actions (delete, start a run, build...) and actions with a consequence show an Approve / Deny card before anything of the answer runs: a stored secret sent to an address, a protection relaxed (domain verification, approvals, quotas...), someone given access, load scheduled for later, a fact every member's assistant will read. The card says in plain words what would happen (which secret goes to which host, what is relaxed from what to what, who gets which role, the schedule and its next runs, the estimate of each run) before the raw arguments. The assistant never confirms by itself, and a card left without a decision expires (24 hours by default). When another action of the same answer changes what an approved action would do, its card comes back, marked as changed, and waits for a new decision.
  • Guided questions. When it needs a choice from you before it can act (which environment, how many virtual users, which countries, recording a journey or importing a file...), the assistant asks with a short card of up to four questions instead of a paragraph: one answer among options, several answers, or a few words, with Other to write your own answer when it offers one. Each question shows a label (for example "Environment") and the options it found in your project. Send answers becomes available once every question has an answer; the card then shows what you chose ("Chosen: staging"), your message reads "Environment: staging · Virtual users: 50", and the assistant goes on with your answers. You can also just type your answer in the message box: the card then says "You answered in a message". The card works with the keyboard (Tab between questions, arrows between options, Space to tick, Enter to send) and with a screen reader.
  • The page of what it did. When the assistant creates, changes or deletes something (an environment, a scenario, a schedule, a member...), the page of it opens at the end of its answer, with the row highlighted when the page lists several (a schedule, a member, an integration, an APM connection), and a screen reader says which page opened. When it deletes something, the list opens. It does not move you if you went to another page while it worked, or if the page you are on holds changes you have not saved: the answer then shows View it, which opens the page when you are ready. Other tabs, and the conversation read later or after a reload, show View it too. On a phone, View it closes the assistant so that you see the page.
  • Long answers. The assistant takes as many steps as a request needs. When one answer has run long, it ends it itself with a few sentences: what it did (with names), what is left, and an offer to go on; say "continue" and it carries on in a new answer. In the rare case where it cannot write them, the drawer says "I stopped here to keep this turn manageable. Ask me to continue when you are ready." You never see a count of steps or tokens.
  • Repeated actions. While it answers one message, the assistant does not repeat itself without progress: a check that keeps giving the same result, or a change already made with the same details, is not repeated again (its line says "Skipped: the assistant was repeating the same action.") and the assistant changes its approach, asks you or finishes. Following a test run, a preflight, a recording or a report is never stopped. If it keeps repeating itself, it stops with "I stopped because I was repeating the same action. Tell me how you'd like to continue." The actions you confirm (starting a test, deleting) are never stopped: you are asked each time. To make the same change again on purpose, ask in a new message.
  • Long conversations. A conversation can go on as long as you need. When it gets very long, the assistant replaces its earlier messages with a summary it writes for itself (what you asked and decided, what it created or changed with names, your answers to its questions, what is still open) and keeps the latest exchanges word for word; the line "Earlier messages were summarized" marks the place. You still see every message. The summary keeps hidden values hidden and never relaxes a confirmation: what needed your approval before still does. Only a single message too large for the model (a very large attachment) is refused: start a new conversation then.
  • Untrusted content. What the assistant reads (tool results, pages, files, the project memory) is data for it, never instructions: a page or a file that asks it to do something cannot make it act behind your back. Once it has read content that comes from the tested system (the trace or the logs of a run, error samples, an APM trace, the explanation of a slow request, your system's metrics, the trace of a monitoring check), every change it makes afterwards in that conversation waits for your Approve.
  • Attachments. Attach text files (logs, JSON, HAR, scripts, CSV, YAML): the assistant reads the beginning of each one (its first 200,000 characters), with the hidden values hidden. A HAR recording, a Postman collection or an OpenAPI description can also become a scenario whatever its size: attach it and ask "make a scenario from this file". The assistant then imports the whole file itself, without copying it, once, within 24 hours of your message; attach the file again to import it another time. A JMeter plan or a file of cURL commands is imported from Scenarios > Import a file.
  • Large scenarios. A scenario of many requests (a recorded journey) is read in parts: the assistant reads its outline (every step with its name, method and address), then the steps you are talking about, and changes only those.
  • Privacy. Data goes through a redactor before it reaches a cloud model; secrets are never sent. References such as {{csrf}} or {{secret:NAME}} and the names of your secrets are not secrets: the assistant reads them as they are, so it can tell an extracted value from a hard-coded one. Per-project redaction rules are in the project settings.
  • Browser recordings. It can drive the browser of a recording in progress (look at the page, click, type, select, scroll, go back): see Record with the browser. Secrets are typed by name, never shown to it; you can take back control from the recording screen at any time. MCP clients and the CLI have the same recording_browser_* tools (swarmetry recording browser-snapshot …).
  • Building scenarios. The assistant knows worked examples of every building block of a scenario (a login once per virtual user, transactions, workload mixes, test data, browser journeys, parallel requests, retries…) and adapts them to your scenario; in the workflow editor and the test configuration editor it also applies quick fixes, runs a debug run and reads its trace. Each guide ends with what to ask it: Sessions and test data, Transactions, Workload mix, Browser journeys, Problems and quick fixes, HTTP depth, Protocols, Preflight and debug evidence, Browser settings, Extensions and policies and Fake data.
  • Availability. It must be included in your plan and turned on for your organization. The drawer explains if it is not configured, turned off, or not available until next month. You cannot choose its model: that is a platform setting.
  • Usage. The assistant is included in your plan up to an allowance per organization, and an administrator may give each member an allocation of it. When yours is used up, the drawer says "The assistant is not available for your account until next month; your administrator can raise your allocation."; when the organization's is, it says so for the organization and, if you may buy, offers extra assistant usage. The assistant never counts its usage for you in numbers. Deleting a conversation removes its messages and actions; what it used still counts in your organization's usage. Administrators read the usage as shares of the allowance and set each member's allocation as a share in Administration > Assistant; asked about its usage, the assistant answers with the same shares.

Assistant

Confirmation

Guided questions

View it

API tokens

Account > API tokens (/app/settings/tokens): Create with a name, scopes (permissions you hold, or * for all of your role) and a lifetime (1 to 365 days, default 90; your organization may shorten the maximum). The secret (sw_pat_...) is shown once: copy it. Under it, Connect a client gives the settings to paste, with your token and the address of your server, for each MCP client, the command line and the REST API. A token acts as you, in your current organization, restricted to its scopes; it never has platform permissions. Revoke it at any time. Tokens with explicit scopes cannot change your account preferences.

For a CI pipeline, a shared script or a client a team uses, ask an administrator for a service account instead: it belongs to the organization, has its own role and its own tokens (sw_sat_...), and the audit shows it under its own name. See Service accounts.

Tokens

Developer access

Help > Developer access (/app/developer) gathers what you need outside the browser: the command line for your computer with its checksums, the CI files of your server, the API reference and the guides below.

To Read
install the command line, sign in, use it every day and read its exit codes Command line (CLI)
make a CI pipeline pass or fail on the verdict of a load test Load tests in a CI pipeline
call the REST API with curl, step by step REST API quick start
give a pipeline or a script its own access Service accounts
connect Claude Code, Claude Desktop, Cursor, VS Code or another AI app Connect an MCP client

CLI

Install swarmetry from your server (Help > Developer access), then:

swarmetry login --token-stdin  # paste the token, then Enter
swarmetry project list
swarmetry --help              # every operation is a command: <domain> <verb>

The command is swarmetry. Costly and destructive commands ask before they run, and need -y without a terminal. Where the sign-in is kept, the variables, complex inputs, every exit code and the notice when the server is newer are in Command line (CLI); swarmetry run start --wait and the ready CI files are in Load tests in a CI pipeline.

MCP

The server is at https://swarmetry.io/mcp (Streamable HTTP, bearer token required). Clients that only start local servers use swarmetry mcp --stdio, a proxy to /mcp that uses your command line sign-in. The settings of each client, step by step, are in Connect an MCP client. In short:

  • The tool list always reflects your role, the token's scopes and your plan. The tools of the assistant's own screens are not listed, and AI configuration is never available to organizations.
  • The server lists a core set of about 25 tools, and three tools (tool_search, tool_describe, tool_call) that find and run every other tool you may use. Add ?tools= and group names to the address to list other groups, or ?tools=all for every tool: Choose the tools your client lists.
  • Destructive and costly tools, and tools with a consequence (a credential sent to an address, a protection relaxed, access granted, load scheduled, content shared), run only after you accept the confirmation form Swarmetry shows in your client, in your language. Clients that cannot show forms get confirmation.unavailable: Confirmation forms says how to confirm instead.
  • What Swarmetry returns to MCP clients is masked (secrets, tokens and cookies always; personal data unless Swarmetry allows it). A masked value reads [[TOKEN_1]] or [[EMAIL_1]]. References such as {{csrf}} or {{secret:NAME}} and the names of your secrets are not masked. A masked value cannot be turned back: a change that contains one is refused with mcp.masked_input and nothing is saved. Put the real value, or a reference to a variable or a secret, in its place.
  • A large scenario is read in parts with scenario_read_part: its outline first, then the steps to change.

REST API

Every operation is also a REST call under /api/v1, with Authorization: Bearer <token> (a personal sw_pat_ token or a service account's sw_sat_ token). The API reference (Help > Developer access > API reference, /app/developer/api) lists the operations of your organization with their fields, errors and a curl example; the OpenAPI document is at /api/v1/openapi.json?audience=organization (or .yaml). Errors are RFC 9457 problem documents with a stable code; heavy use returns 429 with Retry-After. A first session (list projects, start a test, read its verdict, get its JUnit file), pages of a list and approvals: REST API quick start.