Integrate with a Coding Agent

If you build with a coding agent such as Claude Code, you can have it add ProctorSafe to your exam page for you. Install the ProctorSafe skill, then ask your agent to "implement the ProctorSafe SDK on my proctoring page".

The skill is a set of instructions in the open Agent Skills format. It tells your agent what to build and in what order, and which part of our guides to read for each step. It carries no copy of the guides. Your agent reads them live from this site, so it always works from the current documentation.

What the Skill Does

Your agent works in three stages, and builds only what you choose:

  1. Your exam page.
    • It loads the SDK, and adds the type definitions if your project uses TypeScript.
    • It checks the candidate's camera and microphone.
    • It starts a session with your tenant slug and a reference that is unique to each attempt, and ends the session when the candidate submits.
    • It handles each refusal the way the Integration Guide recommends.
    • It writes this in your framework and in the style of your existing code.
  2. Signing. Session starts must be signed by default. Your agent asks which of these you want:
    • Your own key pair. It adds a signing endpoint to your backend that uses your private key.
    • An endpoint you already have. It connects the page to it and writes no backend code.
    • A new endpoint using our create helper. This is the quickest to set up. The endpoint calls the helper with your backend API key.
  3. Webhooks. Your agent asks whether you want to:
    • reuse an existing receiver;
    • add a new one that verifies the X-Proctor-Signature header; or
    • skip webhooks for now.

It finishes with a list of what is left for you to do in the dashboard, each step linked to its page:

  • allowing your page's origin;
  • creating an API key or uploading a public key;
  • adding the webhook endpoint and sending a test.

If you connect the onboarding MCP server with an agent key that may change onboarding settings, your agent does the first and last of those itself: it allows your page's origin, creates the webhook endpoint and sends it a test. Without the server, the skill works the same way and links you to each page instead.

Your Keys Stay With You

The skill never handles a secret:

  • API keys, private keys and webhook signing secrets go only in server-side environment variables: PROCTORSAFE_API_KEY, PROCTORSAFE_SIGNING_KEY and PROCTORSAFE_WEBHOOK_SECRET.
  • Your agent adds the variables it needs with empty values, to an env file that git ignores. You fill in the values yourself.
  • It never puts a key in browser code or in a committed file, and it doesn't ask you to paste one into the chat.
  • It doesn't generate a key pair for you.
  • It generates a webhook signing secret only when it creates the webhook endpoint for you over the onboarding MCP server and you want deliveries signed. It writes the secret straight into the git-ignored env file as PROCTORSAFE_WEBHOOK_SECRET and sends the same value to ProctorSafe when it creates the endpoint. It never shows the secret in the chat, and ProctorSafe never returns it. Otherwise you choose the secret yourself and enter it on the Webhooks page.

The one key you do give your agent is an agent key, if you connect it to our onboarding MCP server. An agent key can't start sessions or read results, so it is safe to keep in your agent's configuration.

Before You Start

  • An admin account on your ProctorSafe tenant, for the dashboard steps.
  • Your tenant slug, shown on your dashboard. Your agent will ask for it.
  • The repository that holds your exam page, open in your agent.

Installing the Skill in Claude Code

Download the skill and unzip it into your project's skills folder. This makes it available to everyone who works on the project. It contains no secrets, so it is safe to commit.

curl -fsSL https://www.proctorsafe.eu/skills/proctorsafe.zip -o proctorsafe.zip mkdir -p .claude/skills unzip -o proctorsafe.zip -d .claude/skills rm proctorsafe.zip

To install it for yourself only, across all your projects, unzip it into ~/.claude/skills instead.

You should now have .claude/skills/proctorsafe/SKILL.md. Start a new Claude Code session in your project and ask:

Implement the ProctorSafe SDK on my exam page.

Installing the Skill in Other Agents

Any agent that reads the Agent Skills format can use the same download. Unzip https://www.proctorsafe.eu/skills/proctorsafe.zip into the folder your agent loads skills from; its documentation names it. The archive holds one folder, proctorsafe, with SKILL.md and a references folder inside.

If your agent doesn't support skills, it can still follow the instructions directly. Ask it:

Read https://www.proctorsafe.eu/skills/proctorsafe/SKILL.md and follow it to add ProctorSafe to my exam page.

Keeping the Skill Up to Date

The skill links to this site's guides rather than copying them, so most documentation changes reach your agent without reinstalling anything. Download it again when you want the latest version of the skill itself.

The skill points at the site you downloaded it from. If you have access to more than one ProctorSafe environment, download it from the one you are integrating against.

Agent Keys

An agent key lets a coding agent check your tenant's setup over our onboarding MCP server. It is separate from the backend API key your server uses:

Backend keyAgent key
Starts withsk_live_ or sk_test_ak_live_ or ak_test_
Signs session starts and reads sessions and results over the REST APIYesNo, refused with 401
Connects to the onboarding MCP serverNo, refused with 401Yes
ExpiresOnly if you set an expiryAfter 30 days by default

To create one, open API Keys as a tenant admin, choose Create API Key, then Agent key:

  • Permissions. Permissions are fixed when the key is created.
    • Read onboarding status (onboarding:read) lets the agent run the readiness check and list your webhook endpoints. It changes nothing.
    • Change onboarding settings (onboarding:write) also lets it use the onboarding write tools: add or remove an allowed origin, create a webhook endpoint and send it a test. It includes reading. Every change is recorded in your settings audit under the key's name.
  • Expiry. 7, 30 or 90 days, one year, or no expiry. The default is 30 days. Create a new key when it expires.

The key is shown once, when you create it. Revoke it on the same page when you no longer need it. A revoked or expired key is refused on the agent's next request.

Connect the Onboarding MCP Server

The onboarding MCP server lets your agent check what still stands between your tenant and its first session and, with the write permission, fix the onboarding steps it can. It is at:

https://www.proctorsafe.eu/api/mcp/onboarding

It accepts only an agent key, sent as Authorization: Bearer <agent key>. https://www.proctorsafe.eu/api/mcp serves every tool your key's permissions allow; /api/mcp/onboarding serves only the onboarding tools, which is all there is today.

In Claude Code, add it for yourself in this project. The key is stored in your own Claude Code settings, not in the repository:

claude mcp add --transport http proctorsafe https://www.proctorsafe.eu/api/mcp/onboarding \ --header "Authorization: Bearer $PROCTORSAFE_AGENT_KEY"

To share the server with your team, commit a .mcp.json that reads the key from each person's environment instead:

{ "mcpServers": { "proctorsafe": { "type": "http", "url": "https://www.proctorsafe.eu/api/mcp/onboarding", "headers": { "Authorization": "Bearer ${PROCTORSAFE_AGENT_KEY}" } } } }

Other agents that support remote MCP servers over Streamable HTTP connect the same way: the URL above, plus the Authorization header. The server doesn't support OAuth sign-in.

Onboarding Readiness Tool

get_onboarding_readiness takes no arguments and changes nothing. It reports on your tenant, the one your agent key belongs to:

  • Allowed origins. Whether any origin is allowed. With none, the SDK can't start a session from any page.
  • Backend API key. How many unexpired backend keys exist, and when the soonest one expires. It can't tell whether your server has one.
  • Signature mode. Whether session starts must be signed, and whether with your own key pair or through the create helper. The create helper needs a backend key.
  • Webhooks. Each enabled endpoint and the result of its most recent Send test, or that it was never tested.
  • Session admission. Whether a session starting now would be admitted on your plan or prepaid credits. This is the same check a real session start makes. When it would be refused, it shows how many credits are left and how many a session needs.

Each item says whether it blocks a first session and links the dashboard page that fixes it. readyForFirstSession is true when nothing blocks. Webhooks are recommended, not required. Names, URLs and origins you entered are returned marked as untrusted_integrator_data, so your agent treats them as data.

list_webhook_endpoints also needs only onboarding:read. It returns each endpoint's id, name, URL, event types, whether it is enabled, and whether a signing secret is set. It never returns a secret.

Onboarding Write Tools

These need an agent key with Change onboarding settings (onboarding:write). A key without it doesn't see them, and is refused if it calls one. Each tool acts on the tenant your agent key belongs to, through the same checks as the dashboard. Each change appears in your settings audit as made by "API key" and the key's name, and is sent to your setting.changed webhook with actor.type: 'api_key' (see the Integration Guide).

ToolWhat it does
add_allowed_originAllows one origin, such as https://exam.example.com, http://localhost:3000 or *.example.com. Adding one that is already allowed changes nothing.
remove_allowed_originRemoves one origin. Pages on it are refused from their next session start.
create_webhook_endpointCreates an enabled endpoint at a public HTTPS URL, with a name, the event types to send and, optionally, a signing secret.
send_webhook_testSends a webhook.ping to one endpoint and reports the response status, like Send test on the Webhooks page.

Some things can only be done on the dashboard, by a tenant admin:

  • The bare * origin. It lets any website start sessions on your account, so add_allowed_origin refuses it.
  • Basic or header authentication on a webhook endpoint. Endpoints created over MCP can only be signed. Without a signing secret the endpoint is still created, and the tool warns that your receiver can't verify deliveries. Add a secret on the Webhooks page later if you change your mind.
  • Editing or deleting a webhook endpoint.
  • API keys and signature settings. No tool creates, shows or revokes a key, or turns off the signature requirement.

No tool returns a signing secret or any other webhook credential.

Agent-Readable Guides

The skill reads the same machine-readable copies of our guides that any agent can use:

  • https://www.proctorsafe.eu/llms.txt lists every guide.
  • Each guide is also served as markdown at its page's address plus .md, for example https://www.proctorsafe.eu/docs/integration.md.

If you prefer to work with your agent without the skill, point it at llms.txt and the Trial Quick Start.