Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
🦋 Changeset detectedLatest commit: c8c4321 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.
All reported issues were addressed across 16 files
Architecture diagram
sequenceDiagram
participant User as Claude Code User
participant CC as Claude Code CLI
participant Mkt as Plugin Marketplace (browserbase/stagehand)
participant Plugin as Stagehand Plugin (.mcp.json)
participant NPM as npm Registry
participant MCP as @browserbasehq/stagehand-mcp<br/>(bundled Core stdio server)
participant SDK as Stagehand SDK (external)
participant Browser as Chrome/Browserbase
Note over User,Browser: NEW: Claude Code Marketplace Installation Flow
User->>CC: /plugin marketplace add browserbase/stagehand
CC->>Mkt: Fetch marketplace.json (browserbase/stagehand repo)
Mkt-->>CC: Return plugin metadata (stagehand v0.1.0)
CC->>Mkt: /plugin install stagehand@browserbase-stagehand
Mkt-->>CC: Resolve plugin source (./packages/integrations/claude-code/plugin)
CC->>CC: Register plugin + parse .mcp.json
CC->>NPM: npx -y @browserbasehq/stagehand-mcp@0.1.0
alt Package published
NPM-->>CC: Download package (dist/server.mjs + deps)
CC->>MCP: Spawn server process (stdio)
MCP->>MCP: Initialize facade server (browser state persists)
MCP->>SDK: Load Stagehand SDK (external, keeps extension assets)
SDK-->>MCP: Ready
MCP-->>CC: MCP handshake (tools: run, snapshot, screenshot)
User->>CC: Use /mcp or Claude agent tools
CC->>MCP: Call tool (run/snapshot/screenshot)
MCP->>SDK: Operate browser
SDK->>Browser: Browser actions
Browser-->>SDK: Page state/result
SDK-->>MCP: Return data
MCP-->>CC: Tool result
else Package not yet published (pre-release gate)
NPM-->>CC: 404 / package not found
CC-->>User: Error: server cannot start
Note over User,NPM: Requires npm trusted publishing +<br/>changeset release to be completed first
end
Note over User,MCP: Alternative: Source-based workflow (unchanged, for app developers)
User->>CC: Build packages/integrations/core from source
CC->>MCP: node packages/integrations/mcp/dist/server.mjs (local dev)
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
This was referenced Sep 17, 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.
Claude Code setup currently requires cloning and building Stagehand and copying MCP configuration. Add a Claude Code marketplace with a Stagehand plugin, so users can install it using
/plugin marketplace add browserbase/stagehandand/plugin install stagehand@browserbase-stagehand.The plugin runs
@browserbasehq/stagehand-mcp@0.1.0, a small public package that bundles the existing Core stdio server. Core stays private; the SDK stays external to preserve its browser extension assets. Includes release wiring, the plugin manifest, marketplace catalog, README, and public guide. The Agent SDK source example remains available for application developers.Release prerequisite: configure npm trusted publishing for
@browserbasehq/stagehand-mcpfrombrowserbase/stagehand/.github/workflows/release.yml, then publish the included 0.1.0 changeset. The docs identify this gate; the marketplace command cannot start the server until that release exists. This package also supports the separately reviewed Codex and framework integrations.E2E Test Matrix
claude plugin validatefor plugin and marketplacerun,snapshot,screenshotlistedNo npm publish or public marketplace listing was performed. Claude’s complete model loop and the post-publication
npxdownload are not claimed as tested.Documentation validation: a combined snapshot of all nine updated integration guides passed
mint validateandmint broken-links --check-anchors --check-redirects --check-snippets.