MCP: a least-privilege read agent
Start with minimal permissions and downloadable examples. The files contain no credentials and do not buy numbers or send SMS. Configure secrets in your integration’s private environment.
Download the read-only Node.js client. It discovers allowed tools and calls list_dids, without purchases, forwarding changes or SMS sends.
Setup
- Use Node.js 24 or later and install @modelcontextprotocol/[email protected] in the example directory.
- Create a token with dids:read. Add billing:read only for expiry/payments and forwarding:read only for destinations.
- Set NOVODID_API_TOKEN in a secret manager or private environment file. Never store its value in Git, URLs or shared prompts.
- Run the file. Server: https://mcp.novodid.com/mcp, Streamable HTTP, Authorization: Bearer.
- Configure the same address and header in another client. OAuth-only clients do not work with this connection.
Suggested agent instruction
“Read my numbers and fields allowed by this token. Do not change anything, create payments or send SMS. State which tools you used. If access is refused, explain without revealing credentials.”
Discovery respects scopes; old tokens do not gain new permissions automatically. Reconnect after changing permissions. A browser 405 on the endpoint does not mean the documentation is down: configure it in an MCP client.
Extending the automation
Separate read and write tokens. Before purchasing, present a quote and obtain explicit consent; after an uncertain result reuse exactly the same idempotencyKey and payload. One number per order. SMS has no idempotency contract and must not be automatically resent. Telephone forwarding consumes per-minute credit. Account rules and current ownership still apply. See the MCP guide and troubleshooting.
Webhooks: a secure Node.js receiver
Start with minimal permissions and downloadable examples. The files contain no credentials and do not buy numbers or send SMS. Configure secrets in your integration’s private environment.
FAQ and troubleshooting
Review common issues and find the next step without changing your account.

