Skip to content

Commit 8f0b070

Browse files
shrey150claude
andauthored
[STG-1681] Align tools with hosted MCP server (#161)
* feat!: align tools with hosted MCP server at mcp.browserbase.com BREAKING CHANGE: Tool names, schemas, and default model updated to match the hosted Browserbase MCP server. Removed screenshot, get_url, and agent tools. Removed all Smithery references and dependencies. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * test: add unit tests, smoke test, and update eval configs - Add vitest with 11 unit tests verifying tool names, schemas, and capabilities - Add STDIO smoke test that spawns server and verifies tools/list response - Update all 3 eval configs to use new tool names (start, end, navigate, act, observe, extract) - Remove eval workflows referencing deleted tools (screenshot, url, agent) - Add pnpm test step to CI pipeline (runs before evals, needs no secrets) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: update eval expectedState to match new response format The end tool now returns {"success": true} instead of "closed successfully via Stagehand", so expectedState checks need to use "success" instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ci: add changesets release workflow for automated npm publishing On push to main, changesets/action will either create a "Version Packages" PR (when changesets exist) or publish to npm (when the version PR merges). The existing publish-mcp.yml fires on v* tags to handle MCP registry. Also removed stale hip-vans-battle.md changeset for the removed screenshot tool. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ci: enable provenance for trusted publishing Adds NPM_CONFIG_PROVENANCE=true so changeset publish uses OIDC-based trusted publishing with provenance attestation, no NPM_TOKEN needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c56018f commit 8f0b070

29 files changed

+2809
-5912
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
"@browserbasehq/mcp-server-browserbase": major
3+
---
4+
5+
Align tool names and schemas with the hosted Browserbase MCP server at mcp.browserbase.com.
6+
7+
**Breaking changes:**
8+
9+
- Tool `browserbase_session_create` renamed to `start`
10+
- Tool `browserbase_session_close` renamed to `end`
11+
- Tool `browserbase_stagehand_navigate` renamed to `navigate`
12+
- Tool `browserbase_stagehand_act` renamed to `act`
13+
- Tool `browserbase_stagehand_observe` renamed to `observe`
14+
- Tool `browserbase_stagehand_extract` renamed to `extract`
15+
- Tools `browserbase_screenshot`, `browserbase_stagehand_get_url`, and `browserbase_stagehand_agent` removed
16+
- `act` tool no longer accepts `variables` parameter
17+
- `start` tool no longer accepts `sessionId` parameter
18+
- `extract` tool `instruction` is now optional (matches hosted)
19+
- Default model changed from `gemini-2.0-flash` to `google/gemini-2.5-flash-lite`
20+
- Removed Smithery references and dependencies

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
- name: Build project
3737
run: pnpm build
3838

39+
- name: Run unit and smoke tests
40+
run: pnpm test
41+
3942
- name: Run evaluation tests
4043
env:
4144
BROWSERBASE_API_KEY: ${{ secrets.BROWSERBASE_API_KEY }}

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
id-token: write
12+
13+
concurrency: ${{ github.workflow }}-${{ github.ref }}
14+
15+
jobs:
16+
release:
17+
name: Release
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout Repo
21+
uses: actions/checkout@v4
22+
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: "22"
30+
cache: "pnpm"
31+
registry-url: "https://registry.npmjs.org"
32+
33+
- name: Install dependencies
34+
run: pnpm install --frozen-lockfile
35+
36+
- name: Build
37+
run: pnpm build
38+
39+
- name: Create Release Pull Request or Publish to npm
40+
uses: changesets/action@v1
41+
with:
42+
publish: pnpm release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
NPM_CONFIG_PROVENANCE: true

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,6 @@ cython_debug/
292292

293293
.DS_Store
294294

295-
# Smithery
296-
/.smithery
297-
298295
# MCP Registry https://github.com/modelcontextprotocol/registry
299296
.mcpregistry_github_token
300297
.mcpregistry_registry_token

0 commit comments

Comments
 (0)