ZeroPointPayments

Guides

Connect your coding agent

Connect Claude Code, Cursor, or the Claude API with your API key from the environment, or sign the Claude app, ChatGPT or Cursor in with your email.

The MCP endpoint lives at /mcp on the same host as the REST API. It uses the Streamable HTTP transport and the same API key as REST, sent as a bearer token. Set the key in your environment as ZEROPOINT_TEST_API_KEY rather than pasting it into a command or config file; each client below reads it from there.

Claude Code

Shell
export ZEROPOINT_TEST_API_KEY=zp_test_...
claude mcp add --transport http zeropoint https://YOUR_HOST/mcp --header 'Authorization: Bearer ${ZEROPOINT_TEST_API_KEY}'

The single quotes keep the shell from expanding ${ZEROPOINT_TEST_API_KEY} before it reaches claude mcp add; Claude Code stores the reference in .mcp.json and resolves it from the environment at connect time.

The server's getting_started prompt appears in Claude Code as the slash command /mcp__zeropoint__getting_started; in non-interactive runs the server instructions carry the same steps, so an agent that never sees the prompt still knows the order. The integrate_card_present and integrate_keyed prompts appear the same way (/mcp__zeropoint__integrate_card_present, /mcp__zeropoint__integrate_keyed) and walk the agent through a full sandbox integration with the tools. With real hardware the discover_terminals and register_terminal tools add a physical terminal to the merchant; integration_checklist reports physical_terminals_in_test_mode so the agent knows whether the sandbox allows it.

Then, in a session, ask: "Use the zeropoint MCP to read the getting-started guide, run the integration checklist, and complete every available step."

Or install the plugin

The repository is a Claude Code plugin marketplace. Two commands add the server and two skills, with the same environment variable holding the key:

Shell
claude plugin marketplace add ZeroPoint-Digital/zeropoint-payments-plugin
claude plugin install zeropoint-payments@zeropoint

/zeropoint-payments:connect runs the read-only connection check, and /zeropoint-payments:build-payments terminal (or keyed, or explore) starts the guided integration that the sandbox console hands out. The plugin's server defaults to the hosted sandbox; set ZEROPOINT_MCP_URL to another /mcp address to point it elsewhere.

Claude app (claude.ai and Claude Desktop), ChatGPT, and other apps that sign in

Apps that cannot send a header sign in instead, and no key ever changes hands.

  1. In the Claude app, open Settings, then Connectors, and add a custom connector with the server URL https://YOUR_HOST/mcp. In ChatGPT on the web, open chatgpt.com/plugins, press the plus button, choose Add custom MCP server, enter a name and the Server URL https://YOUR_HOST/mcp, choose OAuth for authentication, accept the risk notice, press Create as a plugin, then install the plugin (OpenAI's steps: https://developers.openai.com/api/docs/guides/developer-mode, checked 11/17/2026). ChatGPT registers itself and returns to https://chatgpt.com/connector/oauth/..., which the sign-in pages recognise as ChatGPT. Other MCP apps have a similar step.
  2. The app opens ZeroPoint's sign-in page in your browser. Enter your email. When email verification is enabled, ZeroPoint emails you a link: open it before the time the email states (at most ten minutes after the app opened the sign-in page, because the link finishes that sign-in request), check the client and destination shown, then press Allow; your browser goes back to the app. Otherwise signup connects immediately. If ZeroPoint sent you an agent sign-in link instead (poyntmcp console issue --purpose agent, one use, 15 minutes), paste it there.
  3. Back in the app, say "Add ZeroPoint payments to my app", or ask it to run the integration_checklist tool.

The app never sees the API key: it receives a token that stands for your sign-in, refreshes it on its own, and loses access the moment your operator revokes the sign-in (poyntmcp console revoke), the key, or the platform. The connection carries exactly the scopes the sign-in was issued with. An app may ask for fewer (any subset of the authorization server's scopes_supported), never more. If the app offers a request-header option instead, Authorization: Bearer zp_test_... still works as with Claude Code.

Cursor and other MCP clients

Keep the key out of URLs and out of any file you commit. Put it in your environment (add export ZEROPOINT_TEST_API_KEY=zp_test_... to ~/.zshrc or ~/.bashrc, or run setx ZEROPOINT_TEST_API_KEY zp_test_... once in PowerShell on Windows), quit Cursor fully and reopen it so it reads the variable, then add the server to ~/.cursor/mcp.json (or .cursor/mcp.json in your project):

JSON
{
  "mcpServers": {
    "zeropoint": {
      "url": "https://YOUR_HOST/mcp",
      "headers": { "Authorization": "Bearer ${env:ZEROPOINT_TEST_API_KEY}" }
    }
  }
}

Cursor connects over Streamable HTTP and resolves ${env:NAME} in headers when it connects, so the file holds only the variable's name and is safe to commit. The front door's Add ZeroPoint to Cursor button installs exactly this entry; the key is never in the link. Other MCP clients: a server of type http with the same URL and header, read from the environment the same way.

Or sign in without a key: add only "url": "https://YOUR_HOST/mcp" with no headers. Cursor then registers itself over OAuth (as a public client with PKCE, returning to http://localhost:8787/callback from the desktop app) and opens ZeroPoint's sign-in page, which takes your email as for the apps above. The page labels Cursor "an app on this computer", because a loopback callback cannot prove which app it is; if Cursor uses its web callback (https://www.cursor.com/agents/mcp/oauth/callback) instead, the page names Cursor.

Source for Cursor's behaviour: https://cursor.com/docs/context/mcp and https://cursor.com/docs/context/mcp/install-links (checked 11/17/2026).

Claude API (Messages) MCP connector

Pass the server in mcp_servers as {"type": "url", "url": "https://YOUR_HOST/mcp", "name": "zeropoint", "authorization_token": "zp_test_..."}, add {"type": "mcp_toolset", "mcp_server_name": "zeropoint"} to tools, and send the beta header mcp-client-2025-11-20. Read authorization_token from process.env.ZEROPOINT_TEST_API_KEY (or your language's equivalent) in the code that builds the request, rather than writing the key into source.

What the server tells your agent

On connect the server sends instructions that explain the tools and the recommended order: read the docs, confirm the key with integration_checklist, walk the sandbox with the tools (they run the same code as REST), then build against the REST API. Every tool description says what it does, when to use it, its arguments, what it returns, which errors it can raise, and the next step.

If you get a 401

Lost a self-serve sandbox key? When email is enabled, open /recover on the service and request a link for your signup address. Confirm the link to receive one new scoped test key and revoke old test keys. Links and the key-management page expire after 15 minutes. Live keys remain operator-managed. If email is unavailable, ask the operator for help or create another sandbox.

The Authorization header is missing or the key is wrong. On the MCP endpoint the 401 carries WWW-Authenticate: Bearer error="invalid_token"; fix the header and reconnect. Inside a session, a tool that cannot authenticate returns an error result whose text contains the standard error envelope with code api_key_missing.

Tool budget

Each platform may make 60 tool calls per minute across all of its keys. Past that, a tool returns an error result with code rate_limited and a message saying how many seconds to wait; nothing was done. Live keys support stored reads and connected-merchant payment, refund, physical terminal and webhook writes. create_sandbox_merchant, set_terminal_behavior and simulate_terminal remain test-only and answer live_mode_unavailable. Follow going-live before accepting live payments.