Skip to content

Commit 1a415bb

Browse files
committed
Merge branch 'main' into sameel/stg-692-azurebedrock-api-integration-serialize
2 parents 28f4b6e + 1788ee9 commit 1a415bb

Some content is hidden

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

52 files changed

+837
-174
lines changed

.changeset/chilly-laws-smile.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/old-forks-help.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/slimy-cars-matter.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/three-windows-fail.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/true-cloths-film.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ ENABLE_CACHING=false
99
EVAL_MODELS="gpt-4o,claude-3-5-sonnet-latest"
1010
EXPERIMENTAL_EVAL_MODELS="gpt-4o,claude-3-5-sonnet-latest,o1-mini,o1-preview"
1111
EVAL_CATEGORIES="observe,act,combination,extract,experimental"
12+
AGENT_EVAL_MAX_STEPS=50
1213
STAGEHAND_API_URL="http://localhost:80"

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pnpm-lock.yaml
22
README.md
33
**/*.json
4-
docs/
4+
docs/
5+
.github/

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# @browserbasehq/stagehand
22

3+
## 2.5.0
4+
5+
### Minor Changes
6+
7+
- [#981](https://github.com/browserbase/stagehand/pull/981) [`8244ab2`](https://github.com/browserbase/stagehand/commit/8244ab247cd679962685ae2f7c54e874ce1fa614) Thanks [@sameelarif](https://github.com/sameelarif)! - Added support for `stagehand.agent` to interact with MCP servers as well as custom tools to be passed in. For more information, reference the [MCP integrations documentation](https://docs.stagehand.dev/best-practices/mcp-integrations)
8+
9+
### Patch Changes
10+
11+
- [#959](https://github.com/browserbase/stagehand/pull/959) [`09b5e1e`](https://github.com/browserbase/stagehand/commit/09b5e1e9c23c845903686db6665cc968ac34efbb) Thanks [@filip-michalsky](https://github.com/filip-michalsky)! - add webvoyager evals
12+
13+
- [#1049](https://github.com/browserbase/stagehand/pull/1049) [`e3734b9`](https://github.com/browserbase/stagehand/commit/e3734b9c98352d5f0a4eca49791b0bbf2130ab41) Thanks [@miguelg719](https://github.com/miguelg719)! - Support local MCP server connections
14+
15+
- [#1025](https://github.com/browserbase/stagehand/pull/1025) [`be85b19`](https://github.com/browserbase/stagehand/commit/be85b19679a826f19702e00f0aae72fce1118ec8) Thanks [@tkattkat](https://github.com/tkattkat)! - add support for custom baseUrl within openai provider
16+
17+
- [#1040](https://github.com/browserbase/stagehand/pull/1040) [`88d1565`](https://github.com/browserbase/stagehand/commit/88d1565c65bb65a104fea2d5f5e862bbbda69677) Thanks [@miguelg719](https://github.com/miguelg719)! - Allow OpenAI CUA to take in an optional baseURL
18+
19+
- [#1046](https://github.com/browserbase/stagehand/pull/1046) [`ab5d6ed`](https://github.com/browserbase/stagehand/commit/ab5d6ede19aabc059badc4247f1cb2c6c9e71bae) Thanks [@tkattkat](https://github.com/tkattkat)! - Add support for gpt-5 in operator agent
20+
321
## 2.4.4
422

523
### Patch Changes

docs/best-practices/mcp-integrations.mdx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ There are two options for connecting to MCP servers:
1818
1. **Pass a URL directly** - The simplest approach for quick setup
1919
2. **Create a connection first** - Gives you more control over the connection
2020

21+
<Note>
22+
MCP client support is currently only available in TypeScript.
23+
</Note>
24+
2125
## Passing a URL
2226

2327
The simplest way to add MCP integrations is by providing server URLs directly in the agent configuration:
@@ -50,12 +54,21 @@ const supabaseClient = await connectToMCPServer(
5054
`https://server.smithery.ai/@supabase-community/supabase-mcp/mcp?api_key=${process.env.SMITHERY_API_KEY}`
5155
);
5256

57+
// You can also pass the config to start a local MCP server
58+
const notionClient = await connectToMCPServer({
59+
command: "npx",
60+
args: ["-y", "@notionhq/notion-mcp-server"],
61+
env: {
62+
NOTION_TOKEN: process.env.NOTION_TOKEN,
63+
},
64+
});
65+
5366
// Use the connected client
5467
const agent = stagehand.agent({
5568
provider: "openai",
5669
model: "computer-use-preview",
57-
integrations: [supabaseClient],
58-
instructions: `You can interact with Supabase databases. Use these tools to store and retrieve data.`,
70+
integrations: [supabaseClient, notionClient],
71+
instructions: `You can interact with Supabase databases and Notion. Use these tools to store and retrieve data.`,
5972
options: {
6073
apiKey: process.env.OPENAI_API_KEY,
6174
},

evals/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @browserbasehq/stagehand-evals
22

3+
## 1.0.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`09b5e1e`](https://github.com/browserbase/stagehand/commit/09b5e1e9c23c845903686db6665cc968ac34efbb), [`e3734b9`](https://github.com/browserbase/stagehand/commit/e3734b9c98352d5f0a4eca49791b0bbf2130ab41), [`8244ab2`](https://github.com/browserbase/stagehand/commit/8244ab247cd679962685ae2f7c54e874ce1fa614), [`be85b19`](https://github.com/browserbase/stagehand/commit/be85b19679a826f19702e00f0aae72fce1118ec8), [`88d1565`](https://github.com/browserbase/stagehand/commit/88d1565c65bb65a104fea2d5f5e862bbbda69677), [`ab5d6ed`](https://github.com/browserbase/stagehand/commit/ab5d6ede19aabc059badc4247f1cb2c6c9e71bae)]:
8+
- @browserbasehq/stagehand@2.5.0
9+
310
## 1.0.8
411

512
### Patch Changes

0 commit comments

Comments
 (0)