feat(eve): add Stagehand code-mode MCP example - #2645
Draft
shrey150 wants to merge 15 commits into
Draft
Conversation
…n' into shrey/stg-2765-codemode-eve
…n' into shrey/stg-2765-codemode-eve # Conflicts: # .github/workflows/codemode-framework-examples.yml # packages/integrations/README.md # pnpm-workspace.yaml
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an Eve integration as the next layer above the LangChain example. Eve consumes the same package-installed, bearer-authenticated Stagehand code-mode MCP server running inside Vercel Sandbox; it does not introduce another execution boundary.
Stack
@browserbasehq/stagehand-codemodeBase:
shrey/stg-2765-codemode-langchainWhat changed
defineMcpClientConnectionusing the shared sandbox{ url, token }code_executetool and supplies its canonical description to the agentconnection_searchflow followed by two code-mode calls in the same MCP sessiongpt-5-minifor the live model-selection proofProof completed
connection_searchcode_executecallsLive proof
The workflow builds the exact package artifacts, installs them in Vercel Sandbox, and runs both the deterministic Eve contract and a real Eve/OpenAI model-selected tool call. A successful hosted live run still requires the repository's Browserbase, Vercel, and OpenAI secrets; no live pass is claimed here until those credentials are available.
Changeset
None. This adds an example integration and does not change a published package.
Summary by cubic
Adds an Eve example that connects to the shared, bearer‑authenticated Stagehand code‑mode MCP in Vercel Sandbox and exposes only
stagehand__code_execute. Delivers STG‑2765 with a working Eve binding, a deterministic contract/eval, and CI that can run a live e2e.New Features
defineMcpClientConnectionwith shared{ url, token }; discovery viaconnection_searchexposes onlystagehand__code_execute.connection_search; twocode_executein one session; DOM state persists; 401 when unauthenticated; 405 on optional GET; real‑model run defaults togpt-5-miniand isolates model/host secrets from guest code.Dependencies
eve@0.29.4and a new workspace example@browserbasehq/stagehand-integrations-example-eve; updatespnpm-lock.yaml, workspace catalog, and integrations README.@browserbasehq/stagehand-codemodeartifacts; no published packages changed.Written for commit 6b4eba2. Summary will update on new commits.