Skip to content

Commit b25a623

Browse files
[Refactor]: Stagehand MCP becoming the Browserbase MCP (#89)
* stagehand migration v1 * stagehand tools using browser context similar to browserbase + stagehand init issues fixed * rm legacy tool call and separate tools into individual files * clean up readonly functions * cleanup tools * remove unnecessary logger, updated readme, converted to smithery, custom models in config, session manager migrated to only use stagehand, rm browserbase SDK, remove unnecessary functions * migration to just one mcp server in the repo + readme updates * change to structured extract, better prompts for tools * better extract + update tool names + add pnpm prettier lint * v0 multi-session tools * add husky for commits + pnpm exec husky init + move around mcp specifics + multi-sessions update in readme * prettier-fix * better husky script, multisession prompting updates + stagehand store uses datenow for extra uniqueness * zod fix * add deps * [Fix]: add workflows to publish to npm + bug fixes (#93) * fix session url bugs * readme small updates + add github workflows to publish + ci * rename session list to multi session, added better prompting * add modelapikey to config * moving types around, removing unnecessary code, reworking stagehand session create * typo in navigate tool * fix potential mem leak, pnpm, prompts session typeof * pnpm fix ci, screenshot unique, transport validation, formatting * fix pnpm versioning in ci * console errors if user runs stdio with no api key + gemini key validation in config * smithery cli tools * smithery yaml fix + smithery cli * rm sse + dockerfile update to support pnpm * dockerfile * switch to container deploy * adjusting dockerfile and config imports * smithery yaml update * await session cleanup * lazy loading of keys * rm unused deps: * race condition in cleanup + better JSDoc in config + dockerfile formatting * changing to original smithery setup + stagehand page * add back dockerfile * add back custom smithery yanml * update readme to have server url + keys && updated prompts for mcp * remove apikey and projectid flags + fix smithery config * changing config for build * npm for smithery deploy * npm for smithery deploy * correct modelname * change all modelnames * build every time with smithery dockerfile * fix modelapikey requirement * change to available models type + adding debug url to tool outputs * simplify readme + add image for smithery + change precommit * rm alternative installations * wrap link around image for cursor quickstart * wrap link around image for cursor quickstart --------- Co-authored-by: Roaring <[email protected]>
1 parent 170ae5d commit b25a623

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+15850
-9288
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v4
16+
- name: Use Node.js 22
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "22"
20+
cache: "pnpm"
21+
- name: Install dependencies
22+
run: pnpm install --frozen-lockfile
23+
- run: pnpm run build
24+
- name: Run ESLint
25+
run: pnpm run lint
26+
- name: Ensure no changes
27+
run: git diff --exit-code

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish-npm:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
registry-url: https://registry.npmjs.org/
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 8
21+
- run: pnpm install --frozen-lockfile
22+
- run: pnpm publish --provenance
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,5 @@ cython_debug/
292292

293293
.DS_Store
294294

295-
# PyCharm
296-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
297-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
298-
# and can be added to the global gitignore or merged into this file. For a more nuclear
299-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
300-
#.idea/
301-
302-
303295
# Smithery
304-
/browserbase/.smithery
296+
/.smithery

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
pnpm pre-commit

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Use npm for package management
2+
engine-strict=true

0 commit comments

Comments
 (0)