How to Use the Determ MCP in Mastra AI
Build self-healing PR workflows with the Determ MCP Server and Mastra AI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Determ MCP to Mastra AI
Create your Vinkius account to connect Determ 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.
Automated sentiment escalation with Mastra AI
The `get_query_sentiment_summary` tool lets your Mastra agent monitor brand health and trigger automated escalations. Mastra AI excels at handling multi-step logic with conditional branches. When you hook up this MCP Server, you can build a workflow that runs sentiment checks every hour. If negative sentiment crosses a specific threshold, the workflow triggers an automatic deep-dive. The agent then uses `get_mention_details` to isolate the offending articles and packages them for your review.
Intelligent query status tracking
Using `list_monitoring_queries` gives your agent a complete view of all active keyword trackers via this MCP integration. Keeping track of active keywords can get messy when you manage multiple brands. Your agent can run this tool to get a clean list of all active topics, then call `get_monitoring_query_details` to verify which ones are active or hitting rate limits. Since Mastra has a built-in workflow engine, you can schedule these checks to run in the background.
Automated source volume analysis
The `list_top_media_sources` tool identifies which publications are generating the most volume for your tracked topics. Knowing where your brand is discussed helps you allocate ad spend. By calling this tool, your agent can identify which publications dominate your niche. The agent compiles these sources into a structured report using `list_analytics_reports` and deploys this data directly to your cloud storage, giving you a hands-off reporting pipeline that updates itself weekly.
Set up Determ 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 Determ 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: "determ-mcp-client",
servers: {
"determ-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Determ Agent",
model: openai("gpt-4o"),
instructions: "You have access to Determ tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Determ 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 Determ. 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 Determ MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Determ MCP today
We host it, we monitor it, we maintain it. You just paste one token.