You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mcp/custom-templates.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ You must use the MCP gateway enabled template (`mcp-gateway`) as your base templ
14
14
15
15
## Building a template with MCP servers
16
16
17
-
Use the `betaAddMcpServer()` method (TypeScript) or `beta_add_mcp_server()` method (Python) to prepull MCP server images during template build. You can pass a single server or an array of servers.
17
+
Use the `addMcpServer()` method (TypeScript) or `add_mcp_server()` method (Python) to prepull MCP server images during template build. You can pass a single server or an array of servers.
18
18
19
19
The server names (like `"browserbase"` and `"exa"`) correspond to the keys defined in the [Available Servers](/docs/mcp/available-servers) documentation.
20
20
@@ -26,7 +26,7 @@ import { Template } from "e2b";
26
26
27
27
exportconst template =Template()
28
28
.fromTemplate("mcp-gateway")
29
-
.betaAddMcpServer(["browserbase", "exa"]);
29
+
.addMcpServer(["browserbase", "exa"]);
30
30
31
31
awaitTemplate.build(template, {
32
32
alias: "my-mcp-gateway",
@@ -45,7 +45,7 @@ load_dotenv()
45
45
template = (
46
46
Template()
47
47
.from_template("mcp-gateway")
48
-
.beta_add_mcp_server(["browserbase", "exa"])
48
+
.add_mcp_server(["browserbase", "exa"])
49
49
)
50
50
51
51
Template.build(
@@ -67,7 +67,7 @@ Once built, create sandboxes from your template alias. You still need to provide
0 commit comments