feat(mastra): add Stagehand code-mode integration - #93
Conversation
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
Reviewed the Socket dependency report. |
816eb3a to
f85cceb
Compare
f85cceb to
bb33a9a
Compare
bb33a9a to
0e173ae
Compare
|
Superseded by browserbase/stagehand#2627, which keeps the Mastra example beside the canonical MCP build and tests both local and Browserbase startup. |
Summary
Stack
This PR is stacked on the Vercel AI SDK binding, which is stacked on the framework-neutral tool. Its diff contains only the Mastra integration.
Lifecycle
One
MCPClientowns the local stdio process for the complete agent invocation. Mastra discovers the MCP tool asstagehand_code_execute, and the example disconnects the client infinallyso the underlying browser and process are released.E2E Test Matrix
pnpm --filter stagehand-codemode-mastra-example run smokeMastra stdio discovery PASS: stagehand_code_execute.pnpm --filter stagehand-codemode-mastra-example run check