MCPcopy 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

chatFunction · 0.90
resolveTextAdapterFunction · 0.90
maxIterationsFunction · 0.90
jsonMethod · 0.80
tryConnectFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected