How to Use the vCita MCP in Mastra AI
Build complex fail-safe workflows for vCita using Mastra AI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect vCita MCP to Mastra AI
Create your Vinkius account to connect vCita 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.
Automate Client Onboarding and Management
You can automate the process of adding new customers by invoking `create_crm_client`. If that creation fails, the workflow engine catches it and initiates a retry with different credentials. This is reliable automation. Furthermore, you build complex logic around fetching client data. For instance, if `get_client_details` returns an incomplete profile, your workflow can automatically trigger a notification to an admin user.
Manage Bookings and Services with Mastra AI
The tool `create_new_booking` handles scheduling. If the target service is unavailable or payment fails, Mastra AI's built-in branching logic steps in—maybe it tries a different date or method. You can also list bookable services using `list_offered_services`. This helps your workflow validate if a requested service ID is actually valid before attempting to schedule anything.
Process Payments and Review Financial History
Need to track payments? Use `list_recorded_payments`. Mastra AI automatically retries fetching these records if the API has temporary downtime, ensuring your payment history is always accurate. If you need estimates for a client, calling `list_price_estimates` gives you that data. If those prices are old, your workflow can trigger an alert to check current rates.
Set up vCita 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 vCita 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: "vcita-mcp-client",
servers: {
"vcita-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "vCita Agent",
model: openai("gpt-4o"),
instructions: "You have access to vCita tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent vCita 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 vCita. 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 vCita MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the vCita MCP today
We host it, we monitor it, we maintain it. You just paste one token.