saperly-mcp: Instructions file for Codex

AGENTS.md

saperly-mcp AGENTS.md is an instructions file for Codex, OpenCode from Saperly/saperly-mcp. It costs 2,467 tokens per session, scanned A, original, MIT.

Instructions for using Saperly, a service that gives AI agents phone numbers and APIs for making compliant voice calls. MCP is a standard way for an AI client to connect to external tools.

In plain words
What is it for?
Use it to configure the Saperly MCP server, provide its API key, and build phone interactions through hosted, webhook, or raw-audio modes.
Why use it?
It explains setup, authentication, transport, and operating patterns so an agent can connect to Saperly correctly.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: positional $N argument; mentions Claude Code; mentions AGENTS.md.

This is Saperly/saperly-mcp's own configuration. It tells Codex and OpenCode how to work on saperly-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything saperly-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Saperly/saperly-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Saperly/saperly-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Saperly/saperly-mcp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for saperly-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/saperly/saperly-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/saperly/saperly-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/saperly/saperly-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/saperly/saperly-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for saperly-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/saperly/saperly-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/saperly/saperly-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,467 This file is loaded in full into every session.
When invoked 2,467 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02467 $0.02467
Opus 5.5 $0.00987 $0.00987
Sonnet 5.5 $0.00493 $0.00493
Haiku 4.5 $0.00247 $0.00247

Measured 2mo ago against content hash 01f0ca30797a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

saperly-mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md: @saperly/mcp

Patterns and pitfalls for AI agents (Claude Desktop, Claude Code, Cursor) using the Saperly MCP server. If you are an MCP client reading this autonomously, the tool names and patterns below are canonical — see the generated tool index at the end of this file for the full list.

1. What Saperly is

Saperly is the phone carrier for AI agents. One API call gives any agent a real phone number with TCPA compliance, consent capture, and an audit trail built in. Hosted mode runs the AI for you (Saperly handles speech-to-text, the LLM call, and text-to-speech). Webhook mode lets your backend decide responses turn by turn. Audio mode streams raw audio over a WebSocket if you need full control of the media plane.

2. Installation

For Claude Code:

claude mcp add saperly -- npx -y @saperly/mcp
export SAPERLY_API_KEY=sk_live_...

For Claude Desktop, add this entry to claude_desktop_config.json:

{
  "mcpServers": {
    "saperly": {
      "command": "npx",
      "args": ["-y", "@saperly/mcp"],
      "env": { "SAPERLY_API_KEY": "sk_live_..." }
    }
  }
}

Transport is stdio. The server is a Node.js 18+ binary published as @saperly/mcp.

3. Authentication

Saperly uses a two-tier credential model. The MCP server reads exactly one credential from the environment at startup; pick the tier that matches the tools you plan to call.

Credential Prefix What it does Where to get it
API key sk_test_… / sk_live_… Place calls, send SMS, manage lines, query usage. Portal, or minted by a service key via POST /v1/keys.
Service key sk_svc_test_… / sk_svc_live_… Mint, list, get, update, rotate, revoke child API keys. Credential management only. Portal only (Settings → Service Keys).

Child API keys minted by a service key carry their own scope. The API accepts exactly four permission tiers on POST /v1/keys and PATCH /v1/keys/{id}. A fifth value, legacy_full, appears on responses for keys minted before v0.5.7.0 but cannot be set via the API.

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 169 lines · 2,467 tokens per session scan A 01f0ca30797a

Subscribe to this mod's changes

saperly-mcp AGENTS.md is an instructions file published in the GitHub repository Saperly/saperly-mcp (3 stars, last pushed 4mo ago), licensed MIT. It adds 2,467 tokens to every session, about $0.0099 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

saperly-mcp AGENTS.md compared with instructions from other repositories

saperly-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
saperly-mcp AGENTS.mdSaperly/saperly-mcpInstructions file34mo agoMITA2,467Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode