MCP reference
Look up the tools, resources and transports available through the separate MCP server.
lathe-mcp is a Model Context Protocol server generated from the operation catalogue. It runs beside an agent with that agent’s credential, exposes one tool per operation the credential’s scopes permit, holds no state of its own and performs no operation the API refuses.
Installation
The MCP server is not included in the public CLI download. Its executable and environment names remain as shown below. Connect an agent describes the available integration options.
Build the binary from the workspace: cargo build --release -p lathe-mcp. Mint a credential in the dashboard settings or with cargo sorus credential create.
Environment:
LATHE_TOKEN: The agent credential; orLATHE_CREDENTIAL_FILE: a file holding it.LATHE_ENDPOINT: The API origin; the default ishttps://app.lathe.run.LATHE_MCP_HTTP_TOKEN: The caller token the HTTP transport requires from callers beyond this host, 32 characters or more; without it the transport serves loopback only.
Stdio, for a client that starts the server:
{
"mcpServers": {
"sorus": {
"command": "lathe-mcp",
"args": ["stdio"],
"env": { "LATHE_TOKEN": "lathe_agent_..." }
}
}
}
Streamable HTTP, for a client that connects: lathe-mcp http 127.0.0.1:8765 serves POST /mcp; the client sends each JSON-RPC message as a request body and receives the response as JSON. Every message runs under the server’s credential, so the listener serves this host only: an address beyond loopback is refused unless LATHE_MCP_HTTP_TOKEN (32 characters or more) is set, and every request then presents that token as Authorization: Bearer; a request without it is refused with HTTP 401.
Tools
Each tool’s input schema is the operation’s request: path parameters, query parameters and body members as one object, plus idempotency_key for a keyed mutation. The result is the operation’s response document; a refused operation is a refused tool whose result carries the typed refusal.
| Tool | Operation | Scope |
|---|---|---|
identity_current |
identity.current |
read |
onboarding_surface |
onboarding.surface |
read |
jobs_list |
jobs.list |
read |
jobs_submit |
jobs.submit |
submit |
jobs_get |
jobs.get |
read |
jobs_evidence |
jobs.evidence |
read |
jobs_test_results |
jobs.test_results |
read |
environment_layer_record |
environment.layer_record |
read |
jobs_artifacts |
jobs.artifacts |
read |
jobs_logs |
jobs.logs |
read |
jobs_cancel |
jobs.cancel |
submit |
jobs_retry |
jobs.retry |
submit |
repositories_list |
repositories.list |
read |
repositories_prebuilds |
repositories.prebuilds |
read |
repositories_get |
repositories.get |
read |
repositories_settings_get |
repositories.settings.get |
submit |
repositories_settings_write |
repositories.settings.write |
settings |
repositories_advisories_dismiss |
repositories.advisories.dismiss |
settings |
repositories_lineages_purge |
repositories.lineages.purge |
admin |
tenant_settings_get |
tenant.settings.get |
read |
tenant_settings_write |
tenant.settings.write |
settings |
tenant_registry_credential_replace |
tenant.registry_credential.replace |
credentials |
cli_tenant |
cli.tenant |
read |
usage_report |
usage.report |
read |
usage_export |
usage.export |
read |
credentials_list |
credentials.list |
credentials |
credentials_revoke |
credentials.revoke |
credentials |
audit_list |
audit.list |
read |
Resources
lathe://jobs/{id}: The authoritative job record (jobs.get)lathe://jobs/{id}/evidence: The job’s evidence report (jobs.evidence)lathe://jobs/{id}/logs: The job’s durable log page (jobs.logs)lathe://repositories/{owner}/{name}: One repository’s lineages and advisories (repositories.get)lathe://usage: The current period’s usage report (usage.report)
Prompts
submit-and-wait: Submit a captured Cargo workspace and follow the job to its terminal state, then report the evidencediagnose-a-failure: Read a failed job’s evidence and logs and name the failing phase, test or provisioning cause with the next steponboard-a-repository: Check the installation claim, confirm the repository is onboarded and run the first job