Tools and MCP
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
| Parameter | Value |
|---|---|
| URL | https://pay-sandbox.digitalspb.com/mcp |
| Transport | Streamable HTTP (type: "http") |
| Authorization | not 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
| Tool | What it does |
|---|---|
list_doc_sections, get_docs | Sandbox documentation sections in markdown, RU/EN |
sign_request | Request signature: XML, JSON v3 or Subscription Service |
check_billing | Check billing support for a number |
create_contract, authorize_contract, cancel_contract | Customer contract: create, approve with PIN, cancel |
create_invoice | Invoice: mobile billing, card, SBP, test_info hooks |
get_invoice, authorize_invoice | Invoice status and PIN approval |
cancel_invoice, refund_invoice | Cancel and refund |
callback_last | Latest 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.