PromptReports

Build workflows from your coding agent

Each builder action has an API route on api.promptreports.ai and a tool on the PromptReports MCP server, so a coding agent can build a workflow for its person the way the person would in the app.

The agent signs in with a PromptReports ID agent token under its person's grant Switching on. Its writes go through the same PromptCompute approvals as the person's, and it can ask for an approval but never decide one. When it connects a service that signs in with OAuth, the person finishes consent in their own browser. Drafting, validating, diffing, step tests and dry runs count nothing; a run counts one workflow request at its first connector action.

Claude Code

Add the server once from a terminal, then run /mcp inside Claude Code and sign in through the browser:

claude mcp add --transport http promptreports https://mcp.promptreports.ai/mcp

Or check it in for the whole team in .mcp.json at the project root. An entry needs "type": "http"; without it Claude Code reads the entry as a local server and skips it.

{
  "mcpServers": {
    "promptreports": { "type": "http", "url": "https://mcp.promptreports.ai/mcp" }
  }
}

Checked on 2026-11-12 against Claude Code's MCP docs: https://code.claude.com/docs/en/mcp

OpenAI Codex

Add a table to ~/.codex/config.toml (or .codex/config.toml in a trusted project), then sign in through the browser:

[mcp_servers.promptreports]
url = "https://mcp.promptreports.ai/mcp"
codex mcp login promptreports --scopes promptreports:read,promptreports:write

Name the two scopes. On 2026-11-18 a live Codex install (codex-cli 0.144.5) without --scopes asked to register for every scope the ID lists, and PromptReports ID refused it: a client that registers itself may ask only for promptreports:read and promptreports:write. With --scopes it registered and printed the sign-in link.

Checked on 2026-11-12 against the Codex MCP docs: https://learn.chatgpt.com/docs/extend/mcp?surface=cli

Cursor

Add the server to .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor's docs say it signs in with OAuth when the server asks for it; that sign-in has not been tried from a live Cursor install.

{
  "mcpServers": {
    "promptreports": { "url": "https://mcp.promptreports.ai/mcp" }
  }
}

Checked on 2026-11-12 against Cursor's MCP docs: https://cursor.com/docs/context/mcp

The builder tools

Each tool calls the same handler as its API route. The run tools answer today Switching on; the rest will answer as their pull requests merge.

ToolAPI routeEffectState
list_connectorsGET /v1/connectorsreadPlanned
list_toolsGET /v1/connections/{id}/toolsreadPlanned
connect_servicePOST /v1/connectionswritePlanned
set_toolsPATCH /v1/connections/{id}/toolswritePlanned
refresh_toolsPOST /v1/connections/{id}/refreshwritePlanned
create_workflowPOST /v1/workflows/draftswritePlanned
get_draftGET /v1/workflows/{id}/draftreadPlanned
update_workflowPUT /v1/workflows/{id}/draftwritePlanned
validate_workflowPOST /v1/workflows/validatereadPlanned
diff_workflowGET /v1/workflows/{id}/diffreadPlanned
test_stepPOST /v1/workflows/{id}/steps/{step}/testwritePlanned
save_workflowPOST /v1/workflowswritePlanned
list_versionsGET /v1/workflows/{id}/versionsreadPlanned
list_triggersGET /v1/workflows/{id}/triggersreadPlanned
set_triggerPOST /v1/workflows/{id}/triggerswritePlanned
remove_triggerDELETE /v1/workflows/{id}/triggers/{trigger}destructivePlanned
list_workflowsGET /v1/workflowsreadSwitching on
get_workflowGET /v1/workflows/{id}readSwitching on
start_runPOST /v1/runs (dry_run for a dry run)writeSwitching on
get_runGET /v1/runs/{id}readSwitching on
list_runsGET /v1/runsreadSwitching on
cancel_runPOST /v1/runs/{id}/canceldestructiveSwitching on
get_recordGET /v1/runs/{id}/recordreadSwitching on
get_usageGET /v1/usagereadSwitching on

update_workflow takes the digest of the draft the agent read. If the person changed the draft since, the update is refused with stale_draft and the new digest, and the person's change stays.

SDKs and the CLI Built

Both SDKs are generated from the same OpenAPI document as the API, one method per builder action. They are built, not yet published; they will publish once the owner sets the package names. Until then they ship inside the existing PromptCompute packages.

import { PromptReports } from "@promptcompute/sdk/workflows";

const pr = new PromptReports(); // PROMPTREPORTS_TOKEN
await pr.validateWorkflow({ manifest });
await pr.dryRun("weekly-digest");
await pr.setTrigger({ id: "weekly-digest" }, { kind: "timer", settings: { every: "PT15M" }, overlap: "skip" });
from promptreports import PromptReports

pr = PromptReports()  # PROMPTREPORTS_TOKEN
run = pr.dry_run("weekly-digest")
print(pr.get_run(run["id"])["status"])
export PROMPTREPORTS_TOKEN=...
promptreports workflows validate wf.json
promptreports workflows dry-run weekly-digest
promptreports workflows triggers set weekly-digest --kind timer --every PT15M --overlap skip

The SDKs send PromptReports-Client: sdk-js/<version> or sdk-python/<version>, and the CLI cli/<version>, so each run records how it started. The CLI reads PROMPTREPORTS_TOKEN; signing in through the browser will follow.