Documentation › Start here

Coding agents (MCP server)

Let Claude Code, Codex or GitHub Copilot put your AI calls through OSPP. The OSPP MCP server gives the agent the steps, the code and the tools to check the result. It needs only your API key.

What it is for#

The OSPP MCP server lets a coding agent do the integration for you. The agent finds the model calls in your code, changes the client's base URL and key to OSPP, names each task, keeps the passport id with the stored result, and checks the passport of a test call.

It can also work with what the endpoint produces: list your calls and their figures, read and verify passports, report outcomes, and run kept calls again on other models.

You need one thing: an OSPP API key, from Settings > API & keys on the Platform.

Install on your machine#

The server runs on your machine with Node.js 18 or newer. It keeps no state of its own on disk; it writes a passport file only when the agent asks it to. The package:

https://www.ospp.it.com/mcp/ospp-mcp-0.2.3.tgz

Claude Code

claude mcp add ospp --scope user --env OSPP_API_KEY=<your OSPP API key> -- npx -y https://www.ospp.it.com/mcp/ospp-mcp-0.2.3.tgz

Codex

codex mcp add ospp --env OSPP_API_KEY=<your OSPP API key> -- npx -y https://www.ospp.it.com/mcp/ospp-mcp-0.2.3.tgz

GitHub Copilot in VS Code (agent mode), in .vscode/mcp.json. VS Code asks for the key once and stores it:

{
  "inputs": [{ "type": "promptString", "id": "ospp-api-key", "description": "OSPP API key", "password": true }],
  "servers": {
    "ospp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "https://www.ospp.it.com/mcp/ospp-mcp-0.2.3.tgz"],
      "env": { "OSPP_API_KEY": "${input:ospp-api-key}" }
    }
  }
}

Any other MCP client works the same way: the command is npx -y <package URL> and the key goes in the OSPP_API_KEY environment variable. Keep the key in the agent's secret setting. Do not commit it or paste it into a prompt.

Without Node.js: the remote endpoint#

For an agent that cannot run npx, OSPP runs the same server at:

https://www.ospp.it.com/mcp/remote

It speaks Streamable HTTP and takes your API key as the bearer token:

claude mcp add --transport http ospp https://www.ospp.it.com/mcp/remote --header "Authorization: Bearer <your OSPP API key>"

The remote endpoint cannot read or write files in your repository. Passport files therefore travel in the tool call: the agent passes a kept file's content, and saves a refreshed file itself.

Use it#

Ask your agent in your own words, for example:

Put the support bot's model calls through OSPP.

Or use the prompt add_ospp that the server offers. The agent reads the server's guide first, changes the code, runs your tests, makes one call with made-up input and reports the passport of that call with its public page.

The tools#

ToolWhat it does
ospp_guideThe steps and rules for routing calls through the endpoint
ospp_statusYour organisation, the endpoint, the balance, the models and your nodes
ospp_modelsThe models you can name, what each supports and its price
ospp_integration_snippetCode for Python, TypeScript, curl or environment variables
ospp_callOne call through the endpoint, with its passport
ospp_callsYour calls, or the figures per node and model
ospp_node_settingsRead or change a node's Model Compare switch and retention
ospp_get_passportA passport in short: status, history, latest outcome
ospp_passport_contentThe prompt and the answer of a kept call
ospp_check_passportVerify a passport by id or from a kept .ospp file
ospp_refresh_passportSave a passport file, or bring a kept one up to date
ospp_record_outcomeReport what happened after a call
ospp_rerunRun a kept call again on another model
ospp_compare_modelsRun kept calls again on several models
ospp_model_arenaRead comparisons and re-runs

What costs money, and what asks first#

ospp_call, ospp_rerun and ospp_compare_models make real model calls. They are billed to your organisation like any other call; see what is billed.

Three things start only after the agent passes an explicit confirmation, so that it asks you first:

  • a re-run (ospp_rerun);
  • a comparison (ospp_compare_models); it says beforehand how many calls it will make;
  • a change to a node's Model Compare setting (ospp_node_settings), because that decides whether OSPP keeps the conversations and answers of that node.

What the server does and does not do#

  • It sends requests to OSPP with your API key. It does not send your source code to OSPP; the agent reads your code itself.
  • The outcome address of a call is a secret. The server never returns it into the conversation.
  • A reported outcome is a witnessed event on the passport and cannot be removed.
  • A passport proves which call was made, on which model, with which fingerprints. It does not prove that the answer is true; see what a passport proves.
  • An organisation that runs its own gateway uses the local proxy as its base URL, not the Cloud endpoint.

Settings#

VariableMeaning
OSPP_API_KEYYour OSPP API key. Required for the server on your machine
OSPP_API_URLThe API base. Default https://www.ospp.it.com/api
OSPP_WORKSPACEWhere passport files are read and written. Default: the working directory

Not the same as MCP tools in your own agent#

This page is about OSPP's own MCP server, which helps a coding agent work with OSPP. If your application's agent uses MCP tools of its own, those calls go through the endpoint like any other tool call; see tool calling and MCP tools.