-
Notifications
You must be signed in to change notification settings - Fork 216
[Refactor]: Stagehand MCP becoming the Browserbase MCP #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Kylejeong2
wants to merge
32
commits into
main
Choose a base branch
from
kj/stagehand
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
2f58ed3
stagehand migration v1
Kylejeong2 e9e1e78
stagehand tools using browser context similar to browserbase + stageh…
Kylejeong2 022b65a
rm legacy tool call and separate tools into individual files
Kylejeong2 e1c8f80
clean up readonly functions
Kylejeong2 e2431ed
cleanup tools
Kylejeong2 c5a8d66
remove unnecessary logger, updated readme, converted to smithery, cus…
Kylejeong2 352b9c2
migration to just one mcp server in the repo + readme updates
Kylejeong2 f1d7dec
change to structured extract, better prompts for tools
Kylejeong2 91e313f
better extract + update tool names + add pnpm prettier lint
Kylejeong2 f32fd05
v0 multi-session tools
Kylejeong2 a0204a5
add husky for commits + pnpm exec husky init + move around mcp specif…
Kylejeong2 98f4cb0
prettier-fix
Kylejeong2 ff674aa
better husky script, multisession prompting updates + stagehand store…
Kylejeong2 9c4a533
zod fix
Kylejeong2 70d99c4
add deps
the-roaring 95834ab
[Fix]: add workflows to publish to npm + bug fixes (#93)
Kylejeong2 a4d74f6
rename session list to multi session, added better prompting
Kylejeong2 d6fb91d
add modelapikey to config
Kylejeong2 d81dcc8
moving types around, removing unnecessary code, reworking stagehand s…
Kylejeong2 64d70df
typo in navigate tool
Kylejeong2 763acaf
fix potential mem leak, pnpm, prompts session typeof
Kylejeong2 73b205d
pnpm fix ci, screenshot unique, transport validation, formatting
Kylejeong2 8c485a3
fix pnpm versioning in ci
Kylejeong2 398101a
console errors if user runs stdio with no api key + gemini key valida…
Kylejeong2 774c6d0
smithery cli tools
Kylejeong2 5fd6b2f
smithery yaml fix + smithery cli
Kylejeong2 b6e7dd1
rm sse + dockerfile update to support pnpm
Kylejeong2 85d9e96
dockerfile
Kylejeong2 0026ccc
switch to container deploy
Kylejeong2 156fd63
adjusting dockerfile and config imports
Kylejeong2 f7f4885
smithery yaml update
Kylejeong2 970dc55
await session cleanup
Kylejeong2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
- name: Use Node.js 22 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '22' | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- run: pnpm run build | ||
- name: Run ESLint | ||
run: pnpm run lint | ||
- name: Ensure no changes | ||
run: git diff --exit-code |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 8 | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm publish --provenance | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Use pnpm for package management | ||
engine-strict=true | ||
auto-install-peers=true | ||
strict-peer-dependencies=false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# ----- Build Stage ----- | ||
FROM node:lts-alpine AS builder | ||
WORKDIR /app | ||
|
||
# Copy package and configuration | ||
COPY package.json pnpm-lock.yaml tsconfig.json ./ | ||
|
||
# Copy source code | ||
COPY src ./src | ||
|
||
# Copy config files | ||
COPY config.d.ts index.d.ts ./ | ||
|
||
# Install dependencies and build | ||
RUN corepack enable && pnpm install --frozen-lockfile && pnpm build | ||
|
||
# ----- Production Stage ----- | ||
FROM node:lts-alpine | ||
WORKDIR /app | ||
|
||
# Copy package.json and install production dependencies | ||
COPY package.json pnpm-lock.yaml ./ | ||
RUN corepack enable && pnpm install --prod --frozen-lockfile --ignore-scripts | ||
|
||
# Copy built artifacts and required files | ||
COPY --from=builder /app/dist ./dist | ||
COPY index.js config.d.ts index.d.ts cli.js ./ | ||
|
||
# Expose HTTP port | ||
EXPOSE 8080 | ||
|
||
# Default command using CLI flags | ||
CMD ["node", "cli.js", "--port", "8080"] |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.