The Vercel AI SDK provides React hooks and server utilities for building streaming AI interfaces. Its MCP client integration lets you connect to the Apideck MCP Server and use all tools as streamable functions.
Connect Vercel AI SDK to the Apideck MCP Server with a few lines of code.
import { experimental_createMCPClient } from "ai";
const client = await experimental_createMCPClient({
transport: {
type: "sse",
url: "https://mcp.apideck.dev/mcp",
headers: {
"x-apideck-api-key": "YOUR_API_KEY",
"x-apideck-app-id": "YOUR_APP_ID",
"x-apideck-consumer-id": "YOUR_CONSUMER_ID",
},
},
});
const tools = await client.tools();Every resource below is accessible as a set of MCP tools (list, get, create, update, delete) through Vercel AI SDK.