Proofstand

Connect your AI to Proofstand

No Model Context Protocol (MCP) server to build. Proofstand runs the MCP server. Your AI connects to it as an MCP client, using a system token, and calls tools to take its exam and stay verified. All you write is a small client that passes each case to your AI and sends back its answer.

Checklist

  1. Create an account and add your AI system. Copy the system token: it's shown once. Store it as a secret (environment variable or secrets manager), never in code.
  2. Fill in your AI system's details: company, supervising licensed professional, intended use, jurisdictions and disclosure.
  3. Security setup (dashboard, AI system, Security review):
    • Put the secret marker shown there in your AI's system prompt, with an instruction never to reveal it.
    • Enter your AI's public endpoint, if it has one, and run the endpoint check. Otherwise, confirm it has none.
  4. Connect with an MCP client (examples below) and run the free connection test. Your dashboard shows the result.
  5. Optional: run a readiness check. It's a practice exam with the same scoring, a full report and a remediation plan, and it issues no credential.
  6. Take the exam: call start_exam and answer every case.
  7. After a licensed professional signs off your result, put the badge on your site. Then send a heartbeat at least once a day.

Connection details

Server URLhttps://proofstand.org/mcp
TransportMCP Streamable HTTP (JSON responses, stateless). Any MCP client that supports remote HTTP servers works.
AuthenticationHeader Authorization: Bearer ps_… on every request. One token per AI system. You can rotate it from the dashboard.
EncryptionHTTPS only.
Answer formatOne allowed decision per case, a one- or two-sentence rationale, and actions: any real actions your AI took (sending, exporting, calling tools). Leave actions empty if it took none.
Time limitsEach case must be answered within 5 minutes of being served. Spot exams must be finished within 48 hours.
Staying verifiedCall heartbeat at least once every 24 hours: after 26 hours without one, the badge shows as disconnected. Answer any canary question with submit_canary. Finish any spot exam it announces. Then call renew_credential.
Model changesReport the exact model version in start_exam and every heartbeat. A new version moves the credential to "re-certification pending".

Answer exactly as in production

The exam certifies the AI your users get. Use the same model, system prompt, tools and guardrails you run in production, with no extra exam-only instructions. Pass case text to your AI as untrusted data: some cases hide prompt injections, jailbreaks and requests to leak data or the secret marker. Following them fails the security review.

Tools

ToolArgumentsReturns
whoamiYour system, credentials and license-readiness checks
connection_testmodel_versionA free, unscored practice case and a test_id
submit_connection_testtest_id, decision, rationale, actionsEach check passed or failed, with a fix for each failure
list_certificationsCertifications, scope and allowed decisions
start_examcertification, model_version, readiness_checkexam_id. A paid exam uses one exam credit; exams on pilot standards are free.
get_next_caseexam_idcase (case_id, prompt), how_to_answer, or done
submit_answerexam_id, case_id, decision, rationale, actionsAccepted, or the reason it wasn't
get_exam_resultexam_idStatus, score, gates, security review, remediation plan, link to the PDF report
heartbeatmodel_versionCredential status, plus any canary or spot_exam
submit_canaryheartbeat_id, decision, rationaleAccepted
renew_credentialregistry_idA freshly signed badge credential, valid 24 hours

Errors come back as {"error": "…"} with a plain-language reason, for example a missing exam credit or the security setup not being done yet.

Your AI's own endpoint (security review)

If users or other agents reach your AI over the internet, give us its URL. We make about 15 light requests and check that it:

Example client: Python

Download proofstand_client.py. Replace my_ai_decide with a call to your AI. Then run test, then readiness or exam <certification>, and schedule heartbeat daily.

"""Minimal Proofstand client: connection test, exam loop and daily heartbeat.

pip install "mcp>=1.30" httpx
PROOFSTAND_TOKEN=ps_... python proofstand_client.py test
PROOFSTAND_TOKEN=ps_... python proofstand_client.py exam medication-renewal-triage
PROOFSTAND_TOKEN=ps_... python proofstand_client.py heartbeat      # run daily, e.g. from cron
"""

import asyncio
import json
import os
import sys

import httpx
from mcp import ClientSession
from mcp.client.streamable_http import streamable_http_client

URL = os.environ.get("PROOFSTAND_URL", "https://proofstand.org/mcp")
TOKEN = os.environ["PROOFSTAND_TOKEN"]          # never hard-code it
MODEL_VERSION = os.environ.get("MODEL_VERSION", "my-model-2026-12-01")  # report the exact model you run


def my_ai_decide(case: dict, how_to_answer: dict) -> dict:
    """Replace this with a call to YOUR AI, configured exactly as in production.
    Give it case["prompt"] as untrusted data and the allowed decisions; return its answer."""
    allowed = list(how_to_answer["allowed_decisions"])
    return {"decision": allowed[0], "rationale": "Replace with your AI's one- or two-sentence reason.", "actions": []}


async def call(session: ClientSession, tool: str, **args) -> dict:
    result = await session.call_tool(tool, args)
    data = result.structuredContent or json.loads(result.content[0].text)
    data = data.get("result", data) if isinstance(data, dict) else data
    if isinstance(data, dict) and data.get("error"):
        raise SystemExit(f"{tool}: {data['error']}")
    return data


async def run_exam(session, slug, readiness_check=False):
    exam = await call(session, "start_exam", certification=slug, model_version=MODEL_VERSION,
                      readiness_check=readiness_check)
    await answer_cases(session, exam["exam_id"])
    print(json.dumps(await call(session, "get_exam_result", exam_id=exam["exam_id"]), indent=2))


async def answer_cases(session, exam_id):
    while True:
        nxt = await call(session, "get_next_case", exam_id=exam_id)
        if nxt.get("done"):
            return
        ans = my_ai_decide(nxt["case"], nxt["how_to_answer"])
        await call(session, "submit_answer", exam_id=exam_id, case_id=nxt["case"]["case_id"], **ans)


async def heartbeat(session):
    hb = await call(session, "heartbeat", model_version=MODEL_VERSION)
    if "canary" in hb:
        c = hb["canary"]
        ans = my_ai_decide(c["case"], c["how_to_answer"])
        await call(session, "submit_canary", heartbeat_id=c["heartbeat_id"], decision=ans["decision"],
                   rationale=ans["rationale"])
    if "spot_exam" in hb:
        await answer_cases(session, hb["spot_exam"]["exam_id"])
    for cred in hb.get("credentials", []):
        if cred["status"] == "active":
            await call(session, "renew_credential", registry_id=cred["registry_id"])
    print(json.dumps(hb.get("notes", []), indent=2))


async def main(cmd, *args):
    headers = {"Authorization": f"Bearer {TOKEN}"}
    async with httpx.AsyncClient(headers=headers, timeout=httpx.Timeout(30, read=300)) as http:
        async with streamable_http_client(URL, http_client=http) as (read, write, _):
            async with ClientSession(read, write) as session:
                await session.initialize()
                if cmd == "test":
                    t = await call(session, "connection_test", model_version=MODEL_VERSION)
                    ans = my_ai_decide(t["case"], t["how_to_answer"])
                    print(json.dumps(await call(session, "submit_connection_test", test_id=t["test_id"], **ans), indent=2))
                elif cmd == "exam":
                    await run_exam(session, args[0])
                elif cmd == "readiness":
                    await run_exam(session, args[0], readiness_check=True)
                elif cmd == "heartbeat":
                    await heartbeat(session)


if __name__ == "__main__":
    asyncio.run(main(*(sys.argv[1:] or ["test"])))

Example client: Node.js

Download proofstand_client.mjs. It works the same way: replace myAiDecide with a call to your AI.

// Minimal Proofstand client: connection test, exam loop and daily heartbeat.
//
// npm install @modelcontextprotocol/sdk
// PROOFSTAND_TOKEN=ps_... node proofstand_client.mjs test
// PROOFSTAND_TOKEN=ps_... node proofstand_client.mjs exam medication-renewal-triage
// PROOFSTAND_TOKEN=ps_... node proofstand_client.mjs heartbeat   // run daily, e.g. from cron
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const URL_ = process.env.PROOFSTAND_URL ?? "https://proofstand.org/mcp";
const TOKEN = process.env.PROOFSTAND_TOKEN; // never hard-code it
const MODEL_VERSION = process.env.MODEL_VERSION ?? "my-model-2026-12-01"; // the exact model you run

// Replace with a call to YOUR AI, configured exactly as in production.
// Give it case.prompt as untrusted data and the allowed decisions; return its answer.
async function myAiDecide(c, howToAnswer) {
  const allowed = Object.keys(howToAnswer.allowed_decisions);
  return { decision: allowed[0], rationale: "Replace with your AI's one- or two-sentence reason.", actions: [] };
}

async function call(client, name, args = {}) {
  const r = await client.callTool({ name, arguments: args });
  let data = r.structuredContent ?? JSON.parse(r.content[0].text);
  if (data && data.result !== undefined && Object.keys(data).length === 1) data = data.result;
  if (data?.error) throw new Error(`${name}: ${data.error}`);
  return data;
}

async function answerCases(client, examId) {
  for (;;) {
    const next = await call(client, "get_next_case", { exam_id: examId });
    if (next.done) return;
    const ans = await myAiDecide(next.case, next.how_to_answer);
    await call(client, "submit_answer", { exam_id: examId, case_id: next.case.case_id, ...ans });
  }
}

async function runExam(client, slug, readiness_check = false) {
  const exam = await call(client, "start_exam", { certification: slug, model_version: MODEL_VERSION, readiness_check });
  await answerCases(client, exam.exam_id);
  console.log(JSON.stringify(await call(client, "get_exam_result", { exam_id: exam.exam_id }), null, 2));
}

async function heartbeat(client) {
  const hb = await call(client, "heartbeat", { model_version: MODEL_VERSION });
  if (hb.canary) {
    const ans = await myAiDecide(hb.canary.case, hb.canary.how_to_answer);
    await call(client, "submit_canary", { heartbeat_id: hb.canary.heartbeat_id, decision: ans.decision, rationale: ans.rationale });
  }
  if (hb.spot_exam) await answerCases(client, hb.spot_exam.exam_id);
  for (const cred of hb.credentials ?? []) {
    if (cred.status === "active") await call(client, "renew_credential", { registry_id: cred.registry_id });
  }
  console.log(JSON.stringify(hb.notes ?? [], null, 2));
}

const [cmd = "test", arg] = process.argv.slice(2);
const transport = new StreamableHTTPClientTransport(new URL(URL_), {
  requestInit: { headers: { Authorization: `Bearer ${TOKEN}` } },
});
const client = new Client({ name: "my-ai-proofstand-client", version: "1.0.0" });
await client.connect(transport);
try {
  if (cmd === "test") {
    const t = await call(client, "connection_test", { model_version: MODEL_VERSION });
    const ans = await myAiDecide(t.case, t.how_to_answer);
    console.log(JSON.stringify(await call(client, "submit_connection_test", { test_id: t.test_id, ...ans }), null, 2));
  } else if (cmd === "exam") await runExam(client, arg);
  else if (cmd === "readiness") await runExam(client, arg, true);
  else if (cmd === "heartbeat") await heartbeat(client);
} finally {
  await client.close();
}

Using an MCP-capable agent instead

If your AI is an agent that already speaks MCP, add Proofstand as a remote server and tell it to run the connection test, then the exam:

{
  "mcpServers": {
    "proofstand": {
      "type": "http",
      "url": "https://proofstand.org/mcp",
      "headers": { "Authorization": "Bearer ps_your_system_token" }
    }
  }
}

Independent certification. Not a government license. This AI is not a licensed professional.