Repository navigation
feat(integrations): use Pi's built-in MCP support - #3243
vishalanton16 wants to merge 7 commits into
Conversation
…d update documentation
|
|
This PR is from an external contributor and must be approved by a stagehand team member with write access before CI can run. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
# Conflicts: # pnpm-lock.yaml
# Conflicts: # packages/integrations/pi/extensions/stagehand.ts # pnpm-lock.yaml
Why
Pi now supports MCP directly, making the custom bridge and native extension unnecessary.
What
Upgrade Pi to 1.4.0 and use built-in MCP for CLI and eval sessions. Preserve browser state, sequential calls, screenshot evidence, and cleanup. Update setup docs.
How
CLI/SDK → Pi MCP → Stagehand facade → persistent browser
59 tests, typechecks, formatting, and docs checks pass.
Summary by cubic
Replaces the custom Pi extension and MCP bridge with Pi 1.4.0's built-in MCP support for CLI and eval sessions, removing the
@modelcontextprotocol/sdkdependency. Browser state, sequential calls, screenshot evidence, and cleanup behavior are preserved.Migration
.pi/mcp.jsonorpi mcp addwithdirectexposure; the oldpi installsetup is no longer used.Bug Fixes
Written for commit df4f020. Summary will update on new commits.