Vercel Connect Adds Support for TanStack AI
Key point
TanStack AI agents can now call OAuth-protected MCP servers without authentication via Vercel Connect.
Details
Vercel Connect now supports integration with TanStack AI, enabling agents built with TanStack AI to call MCP servers protected by OAuth. Developers no longer need to store or rotate credentials.
The new @vercel/connect/tanstack-ai subpath exports connectMCPTransport. This function accepts TanStack transport configuration and connects a Connect-based authentication provider. Since this provider is invoked before every MCP request, tokens are always kept up to date.
If the user has not granted access, createMCPClient fails with a consent challenge before model execution. You must capture this with getConsentChallenge and redirect to the Connect consent URL. Otherwise, consent errors occurring within tool calls may be passed to the model as error strings instead of being redirected to the user.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.