MCP for AI agents
The agent sends and verifies OTPs as tool calls. The session below runs on a sandbox key.
MCP configuration
{
"mcpServers": {
"kolayotp": {
"command": "npx",
"args": ["-y", "@kolayotp/mcp"],
"env": {
"KOLAYOTP_API_KEY": "kotp_test_..."
}
}
}
}
# Tools exposed to the agent:
# otp_send otp_verify
# otp_resend otp_status
# balance_getTools exposed to the agent
otp_send
Sends a code; channel is optional and routing applies.
otp_verify
Verifies the code the user entered.
otp_resend
Issues a new code in the same session, with cooldown.
otp_status
Returns delivery and verification state.
balance_get
Returns remaining balance and per-channel usage.
Send your first OTP in five minutes.
No credit card. Start on a sandbox key and switch to live when you're ready.