Straight usage of @mastra/server

Is it ok to use @mastra/server to serve my agents on the web to mastra client? Instead of the whole mastra CLI? I guess it can also support mastra client in frontend. Am i missing something?
2 Replies
yairtheyair
yairtheyairOP2mo ago
Tags deployer and client sdk
_roamin_
_roamin_2mo ago
Hi @yairtheyair ! You can use mastra build and then only deploy the .mastra/output folder. Then you should be able to run the mastra app using node: `node --import=./instrumentation.mjs --import=@opentelemetry/instrumentation/hook.mjs ./index.mjs

Did you find this page helpful?