Working with an AI agent
Because requests are text files in your repository, an agent can write them with the same tools it uses for code. Two independent pieces make that work well: the skill teaches it the format and the conventions, and the MCP server lets it run what it wrote. Either is useful without the other.
Start with the server, since it is one block of configuration. stamp mcp [path] serves a workspace over stdio, so any MCP client starts it the same way:
{
"mcpServers": {
"stampdrill": { "command": "stamp", "args": ["mcp", "/path/to/workspace"] }
}
}
After a restart the agent has six tools. Each one also takes a workspace argument, a folder or a file inside the workspace, to work on part of it.
list_requests | Every request, test plan and load test, with the file each one is in. |
check | Parses every file and reports mistakes without sending anything. |
run_request | Sends one request by name. Takes dimensions and variables to override, and runs anything it @needs first. |
run_plan | Runs a test plan over its matrix and says what passed and what failed. |
run_load | Runs a load test and returns throughput, percentiles, failures and whether the thresholds held. |
show_environment | The dimensions the workspace declares and the variables they resolve to. |
What comes back is short on purpose, so a tool result costs little context. run_request answers with the status line, every assertion, and the body:
200 61 ms 600 bytes
✓ assert status == 200
✓ assert body.length == limit
[
{ "userId": 1, "id": 1, "title": "sunt aut facere repellat provident" }
]
The agent still writes the files with its own file tools. The server only runs them and reports back, so its work lands in your repository and in your diff, and you review it the way you review anything else. Nothing is stored where you cannot see it.
Teaching it the format
An agent that has never seen a .stamp file will guess, and it tends to guess a shell script. The skill is the fix: the shape of a request, how dimensions work, and the habit of keeping credentials out of a committed file and running check before calling the work done. In Claude Code:
/plugin marketplace add stampdrill/stampdrill
/plugin install stampdrill@stampdrill
Any agent that reads the Agent Skills format can use SKILL.md directly. For one that reads neither, the language reference is a single page and short enough to paste.
A useful first instruction is small and checkable: point the agent at an existing file to copy the conventions from, name the dimension values it may use, and ask it to run check and then the request itself before it reports back.
In the app
- Nothing to set up. Open the folder the agent is writing into, and leave the window open while it works.
- The app watches the folder, so a file the agent writes appears in the sidebar on its own, with a row for each request and its method beside it.
- Select one and press ⌘↩. The body reads as text, a tree or a table, and the response's Tests tab says which of the assertions it wrote hold and which do not. The dot on the sidebar row keeps the answer.
- Switch the view to Source to read the file as the agent left it. A mistake is underlined where it is, and the bar under the editor names the first one with its line.
- When the workspace is in git, the toolbar button says which branch you are on and how much is uncommitted. It opens on the list of files that changed, a field for the message, and Commit & Sync.
The agent writes; you are the one who sends. Running a request yourself, against the environment you have selected, is how you find out whether an assertion it wrote is true or merely plausible, and the changed files are in front of you before any of it is committed.
Next: MCP servers for testing a server of your own, Workspaces for what the agent is writing into, and Sample data for the values it should use instead of inventing people.