---
name: promptreports-family
description: Work for your person in the PromptReports family of products (PromptReports, ContextFile, RepoOps, Sales as Code, CommitOps, PromptCompute and AI Source of Truth). Use when you connect to a family MCP server, need a PromptReports ID agent token, hit an approval_pending answer, or get a refusal code from a family product.
---

# Working in the PromptReports family

Made from https://promptreports.ai/family.json by promptreports.ai. Do not edit this copy; fetch it again from https://promptreports.ai/skills/promptreports-family/SKILL.md. Each state below is the one family.json gave when this file was made; https://promptreports.ai/.well-known/promptreports-id.json has the current ones.

## Servers

- Family MCP: https://mcp.promptreports.ai/mcp (Switching on). It signs in with PromptReports ID and answers 401 without a token. First call: `list_workflows()`.
- RepoOps: https://mcp.repoops.ai/mcp. Audience (send as resource): `https://www.repoops.ai`. Scopes: `repoops:read`, `repoops:write`. Accepts the ID agent token: PROMPTREPORTS_AGENT_TOKENS on since 2026-11-16; reads live once the daily agent journey check passes.
- PromptCompute: https://mcp.promptcompute.ai/mcp. Audience (send as resource): `https://mcp.promptcompute.ai`. Scopes: `promptcompute:read`, `promptcompute:write`. Accepts the ID agent token: MCP_ID_AGENT_TOKENS on since 2026-11-16; reads live once the daily agent journey check passes.
- ContextFile: https://mcp.contextfile.ai/mcp. Audience (send as resource): `https://mcp.contextfile.ai`. Scopes: `contextfile:read:wiki`, `contextfile:read:artifact`, `contextfile:read:trust`, `contextfile:write:doc`, `contextfile:write:wiki`, `contextfile:build:image`, `contextfile:delete`. Accepts the ID agent token: PROMPTREPORTS_ID_AGENTS on since 2026-11-16; reads live once the daily agent journey check passes.
- Sales as Code: https://salesascode.com/api/v1/mcp. Audience (send as resource): `https://salesascode.com`. Scopes: `salesascode:read`, `salesascode:write`, `salesascode:account.read`, `salesascode:brief.read`, `salesascode:capture.write`, `salesascode:prospect.write`, `salesascode:plan.write`, `salesascode:meeting.write`, `salesascode:usage.write`, `salesascode:meddpicc.write`, `salesascode:site.write`. Accepts the ID agent token: PROMPTREPORTS_AGENT_TOKENS on since 2026-11-16; reads live once the daily agent journey check passes.
- CommitOps: https://mcp.commitops.ai/mcp. Audience (send as resource): `https://commitops.ai`. Scopes: `commitops:read`, `commitops:write`. Accepts the ID agent token: PROMPTREPORTS_AGENT_TOKENS on since 2026-11-16; reads live once the daily agent journey check passes.
- AI Source of Truth: https://aisourceoftruth.com/mcp. Audience (send as resource): `https://aisourceoftruth.com`. Scopes: `aisot:read`, `aisot:write`. Accepts the ID agent token: AISOT_PRID_AGENT_TOKENS on since 2026-11-16; reads live once the daily agent journey check passes.
- PromptReports: https://mcp.promptreports.ai/mcp. Audience (send as resource): `https://promptreports.ai`. Scopes: `promptreports:read`, `promptreports:write`. Accepts the ID agent token: Built, off until FAMILY_MCP_ID_AGENT_TOKENS is on.

Connect your client (Claude Code, Claude Desktop, Codex, Cursor, VS Code with Copilot, ChatGPT, Gemini CLI, Windsurf) or agent framework: https://promptreports.ai/id/connect/
Setup for Claude Code, OpenAI Codex and Cursor: https://promptreports.ai/id/setup/

## Rules

- Until a product's state above reads Live, call it with that product's own key or sign-in, not an ID agent token.
- An ID agent token lives 60 seconds and has no refresh token. Exchange the grant again when it expires.
- Make a new DPoP proof for every call, for that call's method and URL.
- Tell your person what you will ask for before you ask: which product, which scopes, and for how many days.
- A write in one of the six critical classes always waits for a person, and an agent can ask for it but never decide it: code (`code`), access (`access`), credentials (`credentials`), money (`money`), members (`members`), publishing (`publishing`).

## Get a token for your person

The token exchange: Live.

1. Register the agent at PromptCompute with its Ed25519 public key: `POST https://api.promptcompute.ai/v1/agents`, or Agents in the PromptCompute app. It gets an `agt_` id.
2. Your person grants the agent one product on the agent's page, under Family products: they tick that product's scopes and set 1 to 90 days, after a passkey or authenticator check. The grant id starts `apg_`.
3. Trade the grant for a token at `POST https://accounts.promptreports.ai/oauth/token` (RFC 8693 token exchange): `grant_type=urn:ietf:params:oauth:grant-type:token-exchange`, `subject_token=<the apg_ id>`, `subject_token_type=urn:promptreports:params:oauth:token-type:product-grant`, `actor_token=<an assertion signed by the agent's key, aud the token endpoint>`, `actor_token_type=urn:ietf:params:oauth:token-type:jwt`, `resource=<the product's audience, exactly as listed under Servers>`, and `scope` only to ask for fewer scopes than the grant holds.
4. The answer has `token_type` DPoP and an `at+jwt` that lives 60 seconds and is bound to the agent's key (`cnf.jkt`). Send it in the `Authorization` header with the `DPoP` scheme, with a `DPoP` proof (RFC 9449) on each call: a `dpop+jwt` signed by the agent key, with `htm` the method, `htu` the URL, `iat` within a minute and a fresh `jti`, and `ath`, the hash of the token it goes with; each proof is single use.
5. There is no refresh token. When the token expires, exchange the grant again; that works until the grant expires or someone revokes the agent or the grant. Check tokens against `https://accounts.promptreports.ai/.well-known/agent-token-keys.json`, never the sign-in keys.

For the family MCP (Switching on):

1. Send the person to `https://accounts.promptreports.ai/oauth/authorize` with `response_type=code`, PKCE (`code_challenge_method=S256`), `resource=https://mcp.promptreports.ai/mcp` and `scope=promptreports:read promptreports:write`.
2. Redeem the code at `https://accounts.promptreports.ai/oauth/token`. The access token is for the family MCP only, names the org the person chose and lives 5 minutes. It comes with a refresh token only for a public MCP client (a Client ID Metadata Document client or one that registered itself) that lists refresh_token in its grant types. Each use returns the next one. A refresh token lasts at most 30 days, ends after 7 days unused, and is not bound to a key.

This path needs a browser for the redirect. A device code flow that a terminal agent can finish: On in production since 2026-11-19.

## Wait for an approval

When a product answers `approval_pending` (403), this action needs the person's approval, and none is recorded yet. Ask the person to approve it in PromptCompute, then send the call again with the approval id.

Tell your person what the action is and why, then wait for their answer before you send the call again. Do not send the same write again while it waits.

## What each refusal means

| Where | Code | Means | Do next |
|---|---|---|---|
| token endpoint | `unsupported_grant_type` | The ID's agent token keys are not set, so it issues no agent token. | Use the product's own key until the exchange is live. |
| token endpoint | `invalid_request` | A token type field is missing or wrong. | Send the subject_token_type and actor_token_type listed above, exactly. |
| token endpoint | `invalid_client (401)` | The actor_token is missing or did not verify: an unknown or revoked key or agent, a wrong aud, an old or reused assertion. | Sign a fresh assertion with the agent's registered key, aud the token endpoint. |
| token endpoint | `invalid_target` | resource is not exactly one audience from the list, or the grant names a different product. | Send one audience exactly as published, for the product the grant names. |
| token endpoint | `invalid_grant` | This agent cannot use the product grant now. | Ask your person for a new product grant on the agent's page. |
| token endpoint | `invalid_scope` | You asked for a scope the grant does not hold or the ID does not issue. | Leave scope out to get the grant's scopes, or ask your person for a grant with the scope you need. |
| product | `token_missing` | No agent token was sent. | Exchange the person's product grant for a new agent token at https://accounts.promptreports.ai/oauth/token with resource this product's audience, and send it as Authorization: DPoP <token> with a DPoP proof in the DPoP header. |
| product | `invalid_agent_token` | The agent token did not verify: issuer, audience, signature or lifetime. | Exchange the person's product grant for a new agent token at https://accounts.promptreports.ai/oauth/token with resource this product's audience; a token for another product is refused here. |
| product | `token_expired` | The agent token has expired. | Exchange the person's product grant for a new agent token at https://accounts.promptreports.ai/oauth/token with resource this product's audience. Agent tokens live 60 seconds, so get one for each run of calls. |
| product | `act_chain_required` | The agent token must name the person (sub) and the agent acting for them (act.sub). | Use the product grant or run-as exchange at PromptReports ID, which names the person (sub) and the agent (act). |
| product | `org_required` | The agent token names no PromptReports org (org_id). | Exchange again at PromptReports ID: every product grant token carries org_id. |
| product | `unknown_org` | This product has no org for the PromptReports org the agent token names. | An owner or admin of that org signs in to this product with PromptReports once, which links the org. Then the agent gets a new token. |
| product | `unknown_person` | The person this agent acts for has no account in this product in that PromptReports org. | The person signs in to this product with PromptReports once, in the org the agent token names. |
| product | `agent_revoked` | The person revoked or paused this agent in this product. | The person can see it, and turn it back on, at this product's Settings. |
| product | `scope_missing` | The agent token carries no scope, so it allows no call here. | The person grants this agent this product scopes (this product's:read, this product's:write or one this product's:<scope>) in PromptReports ID, then the agent exchanges for a new token. |
| product | `scope_not_for_site` | The agent token carries none of the scopes this product publishes (this product's:...). | The person grants this agent this product scopes (this product's:read, this product's:write or one this product's:<scope>) in PromptReports ID, then the agent exchanges for a new token. |
| product | `scope_required` | This call needs the scope this call needs, and the agent token does not carry it. | The person grants the scope this call needs to this agent in PromptReports ID, then the agent exchanges for a new token. |
| product | `key_binding_missing` | This agent token is bound to a key, and the call carried no DPoP proof by it. | Send a DPoP proof (RFC 9449) signed by the key the token is bound to, in the DPoP header of each call. |
| product | `bad_proof` | The DPoP proof did not verify. | Sign a new DPoP proof for this method and URL, with ath set to the SHA-256 of this token, by the key the token is bound to. |
| product | `proof_replayed` | This DPoP proof was already used. | Sign a new DPoP proof, with a new jti, for each call. |
| product | `approval_pending` | This action needs the person's approval, and none is recorded yet. | Ask the person to approve it in PromptCompute, then send the call again with the approval id. |
| product | `agent_tokens_off` | This product does not accept PromptReports ID agent tokens yet. | Use this product's own key from this product's Settings instead. |

The token endpoint codes come from promptcompute.ai docs/promptreports-id.md (Issuer and endpoints, The family MCP resource, Agent tokens for family products), packages/approvals/src/product-tokens.ts, and https://accounts.promptreports.ai/.well-known/promptreports-agent-audiences.json, read 2026-11-14. The product codes are the family contract kit's (product_refusals, copied from refusals.ts by scripts/contract-kit-sync.mjs). They start from Sales as Code's codes; a product that has not taken them up yet refuses the same cases with codes of its own. Product codes copied from RepoOps/promptcompute.ai packages/connector-sdk/src/contract/refusals.ts at commit d9144e266.

## More

- https://promptreports.ai/id/: what PromptReports ID is
- https://promptreports.ai/id-for-agents/: the token steps, scopes, products and refusals (Markdown: https://promptreports.ai/id-for-agents.md)
- https://promptreports.ai/llms.txt: every family page an agent reads
