Search
Star
Feedback
Setup for Free
Ā© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to set runtimeContext with chatRoutes - Mastra
M
Mastra
ā¢
4mo ago
ā¢
8 replies
Yash
How to set runtimeContext with chatRoutes
Agent
Client SDK
In my current setup
, i add some runtime context in the api
/route
.ts which is then passed to the agent
.stream options
. How do I implement the same when using chatRoute
?
Mastra
Join
The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.
5,321
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Not able to register chatRoutes with ExpressJs Adapter
M
Mastra / help-bugs-problems
3mo ago
How do I pass runtimeContext to client-js?
M
Mastra / help-bugs-problems
11mo ago
How do I make RuntimeContext Typesafe?
M
Mastra / help-bugs-problems
6mo ago
Should RuntimeContext work with mastra-client?
M
Mastra / help-bugs-problems
11mo ago