Sign InOpen Brain
VercelEngineering PostOfficial Source

Vercel Connect now supports TanStack AI

TanStack AI agents can reach OAuth-protected MCP servers through Vercel Connect, with per-user token refresh and consent handled before model execution.

Vercel · Sep 24, 2026
Open Source Open MarkdownOpen JSON
Source Summary

The **@vercel/connect/tanstack-ai** entry point adds **connectMCPTransport**, which attaches Vercel Connect authentication to a TanStack MCP transport and refreshes the token before each request.

Practical Implication

Catch **getConsentChallenge** around createMCPClient and redirect to the supplied consent URL. Handling this before the model runs prevents authorization failures from becoming tool-error text in the conversation.

Agent-Ready Context
The **@vercel/connect/tanstack-ai** entry point adds **connectMCPTransport**, which attaches Vercel Connect authentication to a TanStack MCP transport and refreshes the token before each request.

Catch **getConsentChallenge** around createMCPClient and redirect to the supplied consent URL. Handling this before the model runs prevents authorization failures from becoming tool-error text in the conversation.

The material demonstrates an HTTP Linear MCP client with per-user identity, but does not describe support for other transport types, deployment environments, or failure recovery beyond consent.
Connected Context · Feed7 Judgment

This makes user-scoped MCP authorization an explicit pre-agent control flow in TanStack AI: attach refreshed credentials to each request and resolve consent before tool execution. It narrows the integration guidance to HTTP MCP and one demonstrated service, leaving transport portability, retry behavior, and recovery from non-consent authentication failures open.

Expanding Managed Agents in Gemini API: background tasks, remote MCP and moreGemini’s remote MCP and credential rotation show the same requirement at a managed-runtime layer, while Vercel Connect specifies the client-side consent interception needed before model execution.Chat SDK now supports reactions and ephemeral messages on TeamsThe Teams adapter likewise treats authentication and private permission interactions as integration-specific concerns, reinforcing that a shared SDK abstraction does not eliminate channel- or transport-specific authorization flows.ACP: The Universal Remote Control for AI Agents — Alex Hancock, BlockACP separates client-to-agent sessions from MCP’s agent-to-tool boundary; Vercel Connect clarifies that authentication and consent must still be handled explicitly at the MCP boundary even when the surrounding agent client is portable.
Context Map
toolscoding#mcp#agent-sdks#tool-use
Uncertainty
The material demonstrates an HTTP Linear MCP client with per-user identity, but does not describe support for other transport types, deployment environments, or failure recovery beyond consent.