Sber's GigaCode agent mode is built on a LangChain/LangGraph MCP client, so OTPBox connects the same way any streamable-HTTP MCP server does under that stack.
Mint a free key first (no account, no card):
curl -X POST https://otpbox.io/api/v1/keys/free -H "content-type: application/json" -d '{}'
→ { "id": "lic_...", "key": "...", "plan": "free", "quotaLimit": 200 }
Register OTPBox with LangChain's MCP adapter (the layer GigaCode's agent mode runs on):
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"otpbox": {
"transport": "streamable_http",
"url": "https://otpbox.io/mcp",
"headers": {"Authorization": "Bearer <your-otpbox-key>"},
}
})
tools = await client.get_tools()
Once connected, GigaCode can call OTPBox's 13 MCP tools directly. For example:
"Создай тестовый почтовый ящик через otpbox, зарегистрируйся в приложении с его адресом и получи код подтверждения."
Every code and link comes from a real delivered email, not a stub - so the test proves the actual signup flow works.
OTP codes and verification links are parsed out automatically. No regex against raw email bodies.
200 requests/month with a key minted in one call - no account, no payment info, no waiting.
create_test_inbox, wait_for_email, get_otp, get_verification_link, create_test_identity, and more - the full loop is agent-callable.
For GigaCode's own MCP setup UI/flags beyond the snippet above, see GigaCode's MCP documentation.