Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/ai
/ api.mcp-apps-chat.ts
File
api.mcp-apps-chat.ts
examples/ts-react-chat/src/routes/api.mcp-apps-chat.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* /api/mcp-apps-chat — the data plane
for
the MCP Apps demo.
3
*
4
* Connects two MCP servers and hands them to `chat({ mcp })`:
Callers
nothing calls this directly
Calls
8
chatParamsFromRequestBody
Function · 0.90
chat
Function · 0.90
resolveTextAdapter
Function · 0.90
maxIterations
Function · 0.90
toServerSentEventsResponse
Function · 0.90
json
Method · 0.80
tryConnect
Function · 0.70
close
Method · 0.65
Tested by
no test coverage detected