@superskope/sdk version 0.1.0. It is a private local release, not yet published to npm. Install the reviewed archive supplied by your operator:
Replies, files and reactions
UsereplyText(chatId, messageId, text, {idempotencyKey}), sendAttachment(chatId, {type, data, filename, caption, replyTo}, {idempotencyKey}) or react(chatId, messageId, emoji, {idempotencyKey}) for deliberate writes. Optional attachment fields may be omitted.
downloadMedia(chatId, messageId, {range}) returns bounded bytes and response metadata (status, contentType, contentRange, contentDisposition). Respect private storage and the 32 MiB incoming limit.
Connection lifecycle
connection() inspects the selected phone. connectionQr() fetches private, temporary QR data. Pair deliberately with startConnection({idempotencyKey}) and confirmConnection(accountId, {idempotencyKey}). disconnectConnection(accountId, expectedVersion, {idempotencyKey, confirm: true}) uses the latest integer connection version and explicit disconnection scope.
Keep QR data out of logs, caches, public screenshots and untrusted model prompts. The MCP QR tool is absent by default. A custom trusted host must supply authorizeSensitiveRead, and each read needs confirm: true plus a fresh callback result of true. It does not need allowWrites or an idempotency key because it is a GET. An explicitly authorised QR enters that host’s tool context, so use only a trusted host/model and private display.
Read connection and lifecycle for phone binding and account checks.
MCP authorisation
The bundled stdio MCP exposes read tools by default. Mutation tools are advertised only when a custom host supplies bothallowWrites and an authorisation callback. Each mutation also requires confirm=true and a stable request key. A model decision alone is not user authorisation.
The API enforces scopes, chat identity, version checks and persistent uncertain locks even after host approval. Preserve idempotency and unknown-result rules; never let the host retry an unresolved action as a new request.
The MCP media read tool returns base64 for at most 256 KiB per explicit requested range; it never automatically loops over a whole attachment. Host-authorised mutation tools cover quoted replies, attachments and reactions.
This customer adapter is separate from any documentation-search MCP supplied by a documentation platform. See the quickstart, key guide and endpoint index.
Coverage
TypeScript declarations describe options and results. They do not validate an external response or expand your permissions. The installed API checks every action. The endpoint reference is the authoritative route list for this source release.