@@ -191,7 +191,7 @@ def create(
191191 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
192192 gateways : Optional [Dict [str , devbox_create_params .Gateways ]] | Omit = omit ,
193193 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
194- mcp : Optional [Iterable [ devbox_create_params .Mcp ]] | Omit = omit ,
194+ mcp : Optional [Dict [ str , devbox_create_params .Mcp ]] | Omit = omit ,
195195 metadata : Optional [Dict [str , str ]] | Omit = omit ,
196196 mounts : Optional [Iterable [Mount ]] | Omit = omit ,
197197 name : Optional [str ] | Omit = omit ,
@@ -242,10 +242,11 @@ def create(
242242
243243 launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.
244244
245- mcp: [Beta] (Optional) MCP specifications for MCP server access. Each spec links an
246- MCP config to a secret. The devbox will receive environment variables
247- (RL_MCP_URL, RL_MCP_TOKEN) for accessing MCP servers through the MCP hub.
248- Example: [{'mcp_config': 'github-readonly', 'secret': 'MY_GITHUB_TOKEN'}]
245+ mcp: [Beta] (Optional) MCP specifications for MCP server access. Map key is the
246+ environment variable name for the MCP token envelope. Each spec links an MCP
247+ config to a secret. The devbox will also receive RL_MCP_URL for the MCP hub
248+ endpoint. Example: {'MCP_SECRET': {'mcp_config': 'github-readonly', 'secret':
249+ 'MY_GITHUB_TOKEN'}}
249250
250251 metadata: User defined metadata to attach to the devbox for organization.
251252
@@ -1869,7 +1870,7 @@ async def create(
18691870 file_mounts : Optional [Dict [str , str ]] | Omit = omit ,
18701871 gateways : Optional [Dict [str , devbox_create_params .Gateways ]] | Omit = omit ,
18711872 launch_parameters : Optional [LaunchParameters ] | Omit = omit ,
1872- mcp : Optional [Iterable [ devbox_create_params .Mcp ]] | Omit = omit ,
1873+ mcp : Optional [Dict [ str , devbox_create_params .Mcp ]] | Omit = omit ,
18731874 metadata : Optional [Dict [str , str ]] | Omit = omit ,
18741875 mounts : Optional [Iterable [Mount ]] | Omit = omit ,
18751876 name : Optional [str ] | Omit = omit ,
@@ -1920,10 +1921,11 @@ async def create(
19201921
19211922 launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.
19221923
1923- mcp: [Beta] (Optional) MCP specifications for MCP server access. Each spec links an
1924- MCP config to a secret. The devbox will receive environment variables
1925- (RL_MCP_URL, RL_MCP_TOKEN) for accessing MCP servers through the MCP hub.
1926- Example: [{'mcp_config': 'github-readonly', 'secret': 'MY_GITHUB_TOKEN'}]
1924+ mcp: [Beta] (Optional) MCP specifications for MCP server access. Map key is the
1925+ environment variable name for the MCP token envelope. Each spec links an MCP
1926+ config to a secret. The devbox will also receive RL_MCP_URL for the MCP hub
1927+ endpoint. Example: {'MCP_SECRET': {'mcp_config': 'github-readonly', 'secret':
1928+ 'MY_GITHUB_TOKEN'}}
19271929
19281930 metadata: User defined metadata to attach to the devbox for organization.
19291931
0 commit comments