Sandbox

Tools and MCP

Protocol: JSON v3 · XML 2.9OpenAPI

Ready client, signature test vectors and the sandbox MCP server.

The sandbox provides a ready client, signature test vectors and an MCP server for AI agents.

Ready client

The single-file client has no dependencies: selftest() runs the test vectors before the first network call, and demo goes through CreateInvoice → AuthorizeInvoice (PIN 1234) → GetInvoice until Processed / PAID.

Callback signature verification comes with a warning: the signature covers only the timestamp, not the body. Confirm state with a separate GetInvoice.

MCP server

ParameterValue
URLhttps://pay-sandbox.digitalspb.com/mcp
TransportStreamable HTTP (type: "http")
Authorizationnot required

MCP is IP-rate-limited: 60 requests per minute, bursts up to 20 and at most 4 concurrent connections. For load scenarios contact the sandbox administrators.

MCP connects to VS Code, Claude Code, Cursor or Claude Desktop. Without credentials the tools use the preconfigured test account; your own sandbox credentials are passed as login, secret and project_id arguments.

MCP tools

ToolWhat it does
list_doc_sections, get_docsSandbox documentation sections in markdown, RU/EN
sign_requestRequest signature: XML, JSON v3 or Subscription Service
check_billingCheck billing support for a number
create_contract, authorize_contract, cancel_contractCustomer contract: create, approve with PIN, cancel
create_invoiceInvoice: mobile billing, card, SBP, test_info hooks
get_invoice, authorize_invoiceInvoice status and PIN approval
cancel_invoice, refund_invoiceCancel and refund
callback_lastLatest callbacks for your credentials — no receiver needed

Every tool accepts protocol: json (REST Payment API v3) or xml (Merchant XML). The response is parsed into summary, next_step, data with decoded statuses, error with a hint and raw for debugging.

callback_last shows events the sandbox sent for your credentials, with delivery status and attempt count. The log is read on the sandbox side, so no public HTTPS address or ngrok is needed.

Test vectors

Run callisto_sigtest.json before the first network call: a mismatch between two hex strings is fixed locally in a minute, a server 401 is not. The set includes negative vectors — values the server rejects.

The request body is not signed: the v3-body-not-signed vector proves the signature is the same with and without a body. Cyrillic text in description does not affect it.