<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/vercel-connect-now-supports-tanstack-ai-6w5axzx5m" -->

---
title: Vercel Connect now supports TanStack AI | daily.dev
description: Vercel Connect adds support for TanStack AI, letting agents built with TanStack AI call OAuth-protected MCP servers without developers storing or rotating...
canonical: https://daily.dev/posts/vercel-connect-now-supports-tanstack-ai-6w5axzx5m
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Vercel Connect now supports TanStack AI | daily.dev
og:description: Vercel Connect adds support for TanStack AI, letting agents built with TanStack AI call OAuth-protected MCP servers without developers storing or rotating...
og:url: https://daily.dev/posts/vercel-connect-now-supports-tanstack-ai-6w5axzx5m
og:image: https://api.daily.dev/og/posts/6W5axzx5M.png
og:image:alt: Vercel Connect now supports TanStack AI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Vercel Connect now supports TanStack AI

**[Vercel](https://daily.dev/sources/vercel)** · 2 min read · 2 upvotes · 0 comments

## Summary

Vercel Connect adds support for TanStack AI, letting agents built with TanStack AI call OAuth-protected MCP servers without developers storing or rotating credentials. A new @vercel/connect/tanstack-ai subpath exports connectMCPTransport, which wraps a TanStack transport config with a Connect-backed auth provider that refreshes tokens on every request. A getConsentChallenge helper lets developers catch missing-consent errors before the model runs and redirect users to Connect's consent flow instead of surfacing a raw error string.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://vercel.com/changelog/vercel-connect-tanstack-ai>

## Questions this post answers

### How do I authenticate a TanStack AI agent to call an OAuth-protected MCP server without storing tokens myself?

Use the @vercel/connect/tanstack-ai subpath's connectMCPTransport function, which wraps a TanStack transport config with a Connect-backed auth provider. The provider runs before every MCP request so the token is always fresh, meaning no bearer tokens need to be stored or rotated manually. Pass a transport config, a connection identifier like 'oauth/linear', and a subject object identifying the user.

_Developers wiring MCP auth into AI agents can track integration changes like this on daily.dev._

### How do I handle missing user consent when calling an MCP server from a TanStack AI agent through Vercel Connect?

Catch the error thrown by createMCPClient using the getConsentChallenge helper from @vercel/connect/tanstack-ai. If a challenge is returned, redirect the user to its consent URL with a 303 response before the model runs. Without this check, a consent error raised during a tool call would reach the model as an error string instead of prompting the user.

_Teams building consent flows for agent tool calls can follow updates like this on daily.dev._

## Similar posts on daily.dev

- [TanStack AI 1.0: Still Your AI, Still Your Way](https://daily.dev/posts/tanstack-ai-1-0-still-your-ai-still-your-way-1fy62oqsr) · TanStack · 10 upvotes · 0 comments
- [Chat SDK now supports Vercel Connect](https://daily.dev/posts/chat-sdk-now-supports-vercel-connect-zqtwmj7ot) · Vercel · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp), [#vercel](https://daily.dev/tags/vercel), [#oauth](https://daily.dev/tags/oauth), [#tanstack](https://daily.dev/tags/tanstack)

[View this post on daily.dev](https://daily.dev/posts/vercel-connect-now-supports-tanstack-ai-6w5axzx5m)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Vercel Connect now supports TanStack AI","url":"https://daily.dev/posts/vercel-connect-now-supports-tanstack-ai-6w5axzx5m","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/vercel-connect-now-supports-tanstack-ai-6w5axzx5m"},"datePublished":"2026-09-23T23:56:47.653Z","dateModified":"2026-09-23T23:57:08.746Z","description":"Vercel Connect adds support for TanStack AI, letting agents built with TanStack AI call OAuth-protected MCP servers without developers storing or rotating...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dfa64f5905c89eea660ffbe86d9d4355?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dfa64f5905c89eea660ffbe86d9d4355?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Vercel","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Vercel","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/04cca7235cf84db092f24b7ba427b3e1","url":"https://daily.dev/sources/vercel"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/vercel-connect-now-supports-tanstack-ai-6w5axzx5m","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,mcp,vercel,oauth,tanstack","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Vercel","item":"https://daily.dev/sources/vercel"},{"@type":"ListItem","position":3,"name":"Vercel Connect now supports TanStack AI"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/vercel-connect-now-supports-tanstack-ai-6w5axzx5m#faq","mainEntity":[{"@type":"Question","name":"How do I authenticate a TanStack AI agent to call an OAuth-protected MCP server without storing tokens myself?","acceptedAnswer":{"@type":"Answer","text":"Use the @vercel/connect/tanstack-ai subpath's connectMCPTransport function, which wraps a TanStack transport config with a Connect-backed auth provider. The provider runs before every MCP request so the token is always fresh, meaning no bearer tokens need to be stored or rotated manually. Pass a transport config, a connection identifier like 'oauth/linear', and a subject object identifying the user. Developers wiring MCP auth into AI agents can track integration changes like this on daily.dev."}},{"@type":"Question","name":"How do I handle missing user consent when calling an MCP server from a TanStack AI agent through Vercel Connect?","acceptedAnswer":{"@type":"Answer","text":"Catch the error thrown by createMCPClient using the getConsentChallenge helper from @vercel/connect/tanstack-ai. If a challenge is returned, redirect the user to its consent URL with a 303 response before the model runs. Without this check, a consent error raised during a tool call would reach the model as an error string instead of prompting the user. Teams building consent flows for agent tool calls can follow updates like this on daily.dev."}}]}
```

