How to Use the BugHerd MCP in Vercel AI SDK
Feed live BugHerd project data directly into your Next.js frontend with Vercel AI SDK.
Works with every AI agent you already use
…and any MCP-compatible client
Connect BugHerd MCP to Vercel AI SDK
Create your Vinkius account to connect BugHerd to Vercel AI SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Real-time ticket updates for React
Let your users watch bugs get filed live. By combining this MCP Server with Vercel AI SDK, you can pipe UI actions directly to `create_task` and see the results render instantly on screen. No annoying loading spinners or frozen buttons while waiting for an API call to finish. Your Next.js app streams the raw feedback state as it's written to BugHerd. If a user points out a CSS bug on a staging site, the AI registers the issue through `list_feedback` and renders the updated ticket queue in your custom dashboard before the user even blinks.
Instant project setup on the edge
Spin up new client workspaces without server-side lag. This setup runs on Edge Functions, meaning your AI client calls `create_project` instantly from the nearest global node. It keeps latency low and keeps your users inside their flow. You just pass the tools from `mcpClient.tools()` right into `streamText`. The SDK handles the rest, letting your agent fetch organization settings using `get_organization_info` and display them in a clean, streaming UI component.
Live user mapping via Vercel AI SDK
Map incoming bugs to team members dynamically using this MCP Server. Your Vercel AI SDK agent queries `list_users` to find the right developer and assigns the ticket immediately. You don't have to write custom middleware to tie the systems together. Once the agent maps the user, it calls `update_task` to assign the bug. The client UI updates the assignee avatar in real-time, giving your team immediate visual confirmation that the issue is being handled.
Set up BugHerd MCP in Vercel AI SDK
Prerequisites
- Node.js 18+ and a TypeScript project
-
ai+@modelcontextprotocol/sdkpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install ai @modelcontextprotocol/sdkplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Create the Streamable HTTP transport
Use
StreamableHTTPClientTransportwith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and use tools
Call
mcpClient.tools()to auto-discover all BugHerd tools. Pass them directly togenerateText()orstreamText()— no manual schema definitions needed. - 4
Works with any model provider
Swap
openai("gpt-4o")for any AI SDK provider — Anthropic, Google, Mistral. The MCP tools work identically across all supported models.
import { experimental_createMCPClient as createMCPClient } from "ai";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
const transport = new StreamableHTTPClientTransport(
new URL("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
);
const mcpClient = await createMCPClient({ transport });
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "List recent BugHerd transactions",
});
console.log(text);
await mcpClient.close(); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by BugHerd. 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 BugHerd MCP in Vercel AI SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the BugHerd MCP today
We host it, we monitor it, we maintain it. You just paste one token.