mml-mcp
v0.1.2MCP server for Contract Tester: define contracts for your own agents, let your assistant run adversarial hand-off tests, and see results in the studio
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mml_login Sign in to Contract Tester
Starts sign-in with GitHub. Returns a URL and a code for the user to approve in their browser, then call mml_login_status to finish.
| Parameter | Type | Description |
|---|---|---|
clientName | string | Name shown on the approval page |
mml_login_status Finish sign-in
Waits for the user to approve the sign-in started by mml_login and stores the token in ~/.mml.
| Parameter | Type | Description |
|---|---|---|
waitSeconds | integer | How long to keep polling |
mml_logout Sign out
Revokes this machine's token on the gateway and removes it from ~/.mml.
mml_whoami Who am I
Shows which GitHub account this machine is signed in as.
mml_list_projects List projects
Lists your Contract Tester projects, plus the built-in demo project.
mml_init Set up this workspace
Creates a Contract Tester project and a .mml/ folder in the workspace (config, README, .gitignore). Safe to commit: it never holds credentials.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Create a new project even if the workspace already has one |
name | string | Project name, defaults to the folder name |
workspacePath | string | Absolute path of the workspace folder. Defaults to the server's working directory. |
mml_infer_schema Draft a contract from samples
Drafts a strict JSON Schema from example payloads (types observed, keys present in every sample required, extra keys forbidden). Review and tighten it before using it as a contract.
| Parameter | Type | Description |
|---|---|---|
samples * | array | Example payloads sent from one agent to another |
mml_set_workflow Define agents, hand-offs and contracts
Defines the workflow under test: agents, the edges between them, each edge's JSON Schema contract and a valid baseline payload. Validated by the gateway, then saved to .mml/workflow.json. Replaces any earlier workflow.
| Parameter | Type | Description |
|---|---|---|
agents * | array | |
edges * | array | |
workspacePath | string | Absolute path of the workspace folder. Defaults to the server's working directory. |
mml_status Workspace status
Shows the project this workspace belongs to, its edges and the latest run summary, if any.
| Parameter | Type | Description |
|---|---|---|
workspacePath | string | Absolute path of the workspace folder. Defaults to the server's working directory. |
mml_start_run Start a test run
Starts an adversarial run over the project's edges and returns the first case. For each case you send a (possibly corrupted) payload to the user's real agent and report whether it handled it with mml_report_result.
| Parameter | Type | Description |
|---|---|---|
edgeIds | array | Limit the run to these edges |
fuzzerMode | string | heuristic: deterministic mutations. semantic: model-driven rewrites. |
seed | string | Reuse an earlier run's seed to reproduce its mutations |
workspacePath | string | Absolute path of the workspace folder. Defaults to the server's working directory. |
mml_report_result Report the outcome of a case
Reports how the user's agent handled a case and returns the next case, or the final summary when the run is complete.
| Parameter | Type | Description |
|---|---|---|
caseId * | string | |
handled * | boolean | true if the agent returned normally, false if it threw or failed |
runId * | string | |
durationMs | number | How long the agent took |
error | string | Error message or stack summary when handled is false |
workspacePath | string | Absolute path of the workspace folder. Defaults to the server's working directory. |
mml_run_summary Summarise a run
Fetches the stored summary of a finished run (the latest by default) and saves it under .mml/.
| Parameter | Type | Description |
|---|---|---|
runId | string | |
workspacePath | string | Absolute path of the workspace folder. Defaults to the server's working directory. |
mml_dashboard_url Open the dashboard
Returns the studio link for this workspace's project.
| Parameter | Type | Description |
|---|---|---|
workspacePath | string | Absolute path of the workspace folder. Defaults to the server's working directory. |