How to Use the Chameleon.io MCP in Mastra AI
Build resilient onboarding workflows connecting the Chameleon.io MCP Server and Mastra AI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Chameleon.io MCP to Mastra AI
Create your Vinkius account to connect Chameleon.io 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 Chameleon.io Workflows
Handling product adoption requires logic that doesn't break when a network call drops. You pass `list_chameleon_events` into a Mastra AI agent to monitor what users are doing in your app. The framework automatically retries the fetch with exponential backoff if the API limits get hit. Branching logic takes over from there. If the agent sees a specific event, it can trigger `identify_chameleon_user` to update their profile properties. It then moves to the next step of the workflow without requiring human supervision.
Conditional Microsurvey Analysis
Raw feedback needs processing before it becomes useful. Your workflow can pull `list_microsurvey_responses` every morning to gather the previous day's NPS scores. If a score dips below your threshold, the agent branches off to alert the customer success team. Managing the underlying experience details happens in the same run. Calling `get_experience_details` lets the agent check if the associated tour is still active. The MCP Server handles the data extraction while Mastra manages the state.
Safe User Deletion Pipelines
Removing customer profiles is a high-stakes operation. You can wrap `delete_chameleon_user` in a Mastra workflow that requires human-in-the-loop approval. The agent stages the deletion, pauses execution, and waits for an admin to click approve. Deploying this setup takes one command. You configure the MCPClient with your Vinkius URL and spread `mcpClient.listTools()` into your agent's tool array. The entire compliance pipeline runs on your preferred cloud provider.
Set up Chameleon.io 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 Chameleon.io 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: "chameleonio-mcp-client",
servers: {
"chameleonio-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Chameleon.io Agent",
model: openai("gpt-4o"),
instructions: "You have access to Chameleon.io tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Chameleon.io 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 Chameleon. 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 Chameleon.io MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Chameleon.io MCP today
We host it, we monitor it, we maintain it. You just paste one token.