How to Use the CallPage MCP in Mastra AI
Build resilient Mastra AI workflows that route CallPage callbacks, retry failed syncs, and alert managers automatically.
Works with every AI agent you already use
…and any MCP-compatible client
Connect CallPage MCP to Mastra AI
Create your Vinkius account to connect CallPage to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Build CallPage routing workflows in Mastra AI
Sales leads go cold in minutes. You need a system that catches a new callback request, checks the department, and routes it immediately. Set up a workflow using `list_leads` and `list_departments`. If a specific department is offline, the logic branches and uses `list_managers` to escalate the lead to an available supervisor.
Handle API failures with MCP Server backoff
Network requests fail. That is just reality. Instead of writing custom retry logic for your customer support syncs, let the framework handle it. When your agent executes `get_call_details` and hits a timeout, Mastra automatically retries with exponential backoff. You get the recording links without writing a single try-catch block.
Gate SMS templates behind human review
You probably do not want an autonomous script firing off text messages without a quick sanity check. The framework lets you pause execution. Enable approval requirements for `list_sms_templates`. The workflow stops, waits for a real person to confirm the template choice, and then resumes the callback process.
Set up CallPage MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All CallPage tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "callpage-mcp-client",
servers: {
"callpage-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "CallPage Agent",
model: openai("gpt-4o"),
instructions: "You have access to CallPage tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent CallPage transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by CallPage. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about CallPage MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the CallPage MCP today
We host it, we monitor it, we maintain it. You just paste one token.