Skip to content

Commit 20e29ff

Browse files
committed
auto publish to mcp directory + changelog
1 parent 740b714 commit 20e29ff

File tree

5 files changed

+64
-7
lines changed

5 files changed

+64
-7
lines changed

.github/workflows/publish-mcp.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish to MCP Registry
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write # Required for OIDC authentication
12+
contents: read
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v5
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v3
20+
with:
21+
version: 10.12.4
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v5
25+
with:
26+
node-version: "lts/*"
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Run tests
32+
run: pnpm test --if-present
33+
34+
- name: Build package
35+
run: pnpm build --if-present
36+
37+
- name: Publish to npm
38+
run: pnpm publish
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
42+
- name: Install MCP Publisher
43+
run: |
44+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/latest/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
45+
46+
- name: Login to MCP Registry
47+
run: ./mcp-publisher login github-oidc
48+
49+
- name: Publish to MCP Registry
50+
run: ./mcp-publisher publish

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @browserbasehq/mcp-server-browserbase
22

3+
## 2.2.0
4+
5+
### Minor Changes
6+
7+
- Remove multisession tools, remove prompts sampling, simplify tool descriptions for better context, add support if google apikey set, latest version of stagehand, remove custom availmodelschema to use stagehand model type instead.
8+
39
## 2.1.3
410

511
### Patch Changes

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@browserbasehq/mcp-server-browserbase",
3-
"version": "2.1.3",
3+
"version": "2.2.0",
44
"description": "MCP server for AI web browser automation using Browserbase and Stagehand",
55
"mcpName": "io.github.browserbase/mcp-server-browserbase",
66
"license": "Apache-2.0",
@@ -24,7 +24,7 @@
2424
],
2525
"scripts": {
2626
"build": "tsc && shx chmod +x dist/*.js",
27-
"prepare": "husky && npm run build",
27+
"prepare": "husky && pnpm build",
2828
"watch": "tsc --watch",
2929
"smithery": "npx @smithery/cli dev src/index.ts",
3030
"inspector": "npx @modelcontextprotocol/inspector build/index.js",

server.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"url": "https://github.com/browserbase/mcp-server-browserbase",
88
"source": "github"
99
},
10-
"version": "2.1.3",
10+
"version": "2.2.0",
1111
"packages": [
1212
{
1313
"registry_type": "npm",
1414
"registry_base_url": "https://registry.npmjs.org",
1515
"identifier": "@browserbasehq/mcp-server-browserbase",
16-
"version": "2.1.1",
16+
"version": "2.2.0",
1717
"transport": {
1818
"type": "stdio"
1919
},
@@ -44,7 +44,7 @@
4444
{
4545
"registry_type": "oci",
4646
"identifier": "browserbasehq/mcp-server-browserbase",
47-
"version": "2.1.3",
47+
"version": "2.2.0",
4848
"runtime_hint": "docker",
4949
"environment_variables": [
5050
{

src/config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Cookie } from "playwright-core";
22
import type { Config } from "../config.d.ts";
3-
import type { AvailableModelSchema } from "@browserbasehq/stagehand";
3+
import { z } from "zod";
4+
import { AvailableModelSchema } from "@browserbasehq/stagehand";
45

56
export type ToolCapability = "core" | string;
67

@@ -15,7 +16,7 @@ export type CLIOptions = {
1516
cookies?: Cookie[];
1617
browserWidth?: number;
1718
browserHeight?: number;
18-
modelName?: typeof AvailableModelSchema;
19+
modelName?: z.infer<typeof AvailableModelSchema>;
1920
modelApiKey?: string;
2021
keepAlive?: boolean;
2122
experimental?: boolean;

0 commit comments

Comments
 (0)