How to Use the DocsBot MCP in Mastra AI
Build complex support workflows in Mastra AI. Use DocsBot tools to automate knowledge retrieval and handle bot indexing tasks.
Works with every AI agent you already use
…and any MCP-compatible client
Connect DocsBot MCP to Mastra AI
Create your Vinkius account to connect DocsBot 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 workflow branching with DocsBot
Create conditional paths based on bot responses. Trigger `ask_bot_question` and use the output to decide if your agent needs to escalate to a human or provide a link. This keeps your Mastra AI workflows moving without manual intervention. It's built for handling high-volume queries efficiently.
Monitor knowledge updates in Mastra AI
Set up a routine to verify data freshness. By calling `list_recently_indexed_bots`, your agent can check for stale content before running a customer-facing task. If the data is old, trigger a secondary process to refresh your sources. It keeps your knowledge loop tight.
Granular team bot control
Organize your agent's access by team. Use `list_team_bots` to define which bot the current workflow should interact with based on the user's project. This keeps your agent logic clean. It maps the right bot to the right team context automatically.
Set up DocsBot 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 DocsBot 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: "docsbot-mcp-client",
servers: {
"docsbot-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "DocsBot Agent",
model: openai("gpt-4o"),
instructions: "You have access to DocsBot tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent DocsBot 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 DocsBot. 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 DocsBot MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the DocsBot MCP today
We host it, we monitor it, we maintain it. You just paste one token.