How to Use the Airship MCP in Vercel AI SDK
Run Airship mobile messaging tools directly inside Vercel AI SDK streams to update push campaigns live in your React UI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Airship MCP to Vercel AI SDK
Create your Vinkius account to connect Airship 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.
Stream live push delivery metrics to your React components
The `get_push_status` tool lets your Vercel AI SDK application check the exact delivery state of any notification. Instead of waiting for a full page reload, your app streams raw delivery updates straight to the screen. Your users watch the push delivery percentages tick up in real time on the dashboard, powered by Edge-compatible serverless functions. This direct streaming removes the lag from monitoring mobile campaigns. Your users watch the push delivery percentages tick up in real time on the dashboard, powered by Edge-compatible serverless functions.
Dynamic audience segment filtering via Vercel AI SDK
The `list_segments` and `get_segment_details` tools fetch live mobile audience criteria directly into your Next.js frontend. When your AI client analyzes these segments, the results render instantly in the chat interface without blocking the main thread. You don't write complex state management because the SDK handles the data stream from the Airship MCP Server straight to your React hooks.
Real-time device registration and mapping in the browser
The `associate_named_user` tool links specific hardware devices to your database profiles during a live agent chat session. Your Vercel AI SDK setup executes this mapping immediately when a user confirms their identity, streaming the confirmation status back to the screen. Combining this with `list_channels` lets your agent show users their active mobile devices on the fly. The prompt handles the lookup over the MCP connection and updates the DOM in one continuous, streaming response.
Set up Airship 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 Airship 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 Airship 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 Airship. 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 Airship 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 Airship MCP today
We host it, we monitor it, we maintain it. You just paste one token.