-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathconfig.d.ts
More file actions
107 lines (106 loc) · 2.64 KB
/
config.d.ts
File metadata and controls
107 lines (106 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import type { AvailableModelSchema } from "@browserbasehq/stagehand";
export type Config = {
/**
* Browserbase API Key to authenticate requests
*/
browserbaseApiKey: string;
/**
* Browserbase Project ID associated with the API key
*/
browserbaseProjectId: string;
/**
* Whether or not to use Browserbase proxies
* https://docs.browserbase.com/features/proxies
*
* @default false
*/
proxies?: boolean;
/**
* Use advanced stealth mode. Only available to Browserbase Scale Plan users.
*
* @default false
*/
advancedStealth?: boolean;
/**
* Whether or not to keep the Browserbase session alive
*
* @default false
*/
keepAlive?: boolean;
/**
* Potential Browserbase Context to use
* Would be a context ID
*/
context?: {
/**
* The ID of the context to use
*/
contextId?: string;
/**
* Whether or not to persist the context
*
* @default true
*/
persist?: boolean;
};
/**
* The viewport of the browser
* @default { browserWidth: 1024, browserHeight: 768 }
*/
viewPort?: {
/**
* The width of the browser
*/
browserWidth?: number;
/**
* The height of the browser
*/
browserHeight?: number;
};
/**
* Server configuration for MCP transport layer
*
* Controls how the MCP server binds and listens for connections.
* When port is specified, the server will start an SHTTP transport.
* When both port and host are undefined, the server uses stdio transport.
*
* Security considerations:
* - Use localhost (default) for local development
* - Use 0.0.0.0 only when you need external access and have proper security measures
* - Consider firewall rules and network security when exposing the server
*/
server?: {
/**
* The port to listen on for SHTTP or MCP transport.
* If undefined, uses stdio transport instead of HTTP.
*
* @example 3000
*/
port?: number;
/**
* The host to bind the server to.
*
* @default "localhost" - Only accepts local connections
* @example "0.0.0.0" - Accepts connections from any interface (use with caution)
*/
host?: string;
};
/**
* The Model that Stagehand uses
* Available models: OpenAI, Claude, Gemini, Cerebras, Groq, and other providers
*
* @default "gemini-2.0-flash"
*/
modelName?: z.infer<typeof AvailableModelSchema>;
/**
* API key for the custom model provider
* Required when using a model other than the default gemini-2.0-flash
*/
modelApiKey?: string;
/**
* Enable experimental features
*
* @default false
*/
experimental?: boolean;
};