For the complete documentation index, see llms.txt. This page is also available as Markdown.

Vercel AI SDK

Connect Vercel AI SDK applications to Data Product MCP tools.

Connecting Data Product MCP to a Vercel AI SDK application lets it answer from governed products instead of guessing. The @ai-sdk/mcp package exposes DataOS tools to your app's tool loop. See the Vercel AI SDK MCP documentation for client setup and tool usage.

Prerequisites

Node.js 18 or later, your DataOS instance URL, and a DataOS API token.

Connect

  1. Install the packages:

npm install @ai-sdk/mcp ai @ai-sdk/openai
  1. Following the Vercel AI SDK MCP docs, initialize an MCP client over HTTP transport with these DataOS values:

Parameter
Value

Transport

http

URL

https://<instance-url>/dataproduct-mcp/api/v1

Header key

apikey

Header value

Your DataOS API token

Verify

Run the application and confirm the MCP client loads Data Product MCP tools. Then ask the agent What data products am I authorized to access?. A working connection returns products scoped to your token.

Last updated

Was this helpful?