Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
🦋 Changeset detectedLatest commit: edc7cbd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant Host as MCP Host (e.g. Claude)
participant MCP as Stagehand MCP Server
participant BB as Browserbase Platform
Note over Host, BB: MCP Session Initialization Flow
Host->>MCP: callTool("start", { sessionId? })
alt NEW: sessionId is provided
MCP->>BB: CHANGED: Attach to existing session (sessionId)
BB-->>MCP: Session Context
else sessionId is omitted
MCP->>BB: Create new session
BB-->>MCP: New Session ID & Context
end
MCP->>MCP: Set session as active for current transport
Note right of MCP: Active session is used for<br/>future calls (navigate, act, etc.)
MCP-->>Host: return { sessionId }
pirate
approved these changes
Apr 24, 2026
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.
why
The v3 MCP docs now need to describe the hosted server behavior where
startcan attach to an existing Browserbase session via an optionalsessionId.what changed
start.sessionId.sessionIdcreates a new Browserbase session.@browserbasehq/stagehand-docs.test plan
pnpm exec prettier --check packages/docs/v3/integrations/mcp/setup.mdx packages/docs/v3/integrations/mcp/tools.mdxSummary by cubic
Added docs for optional
sessionIdon MCPstartto attach to an existing Browserbase session; omitting it creates a new session. Addresses STG-1837 and publishes a patch to@browserbasehq/stagehand-docs.Written for commit edc7cbd. Summary will update on new commits. Review in cubic