Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ai-mcp-setup-context.md

5 lines295 Bytes

createMCPServer({ setup }) gets the handle context of the request as its second argument, so an extension handler or an instrumentation hook can read the caller. A spec 2025 session with sessions: 'memory' gets the context of the request that opened it.