MCP Config¶
McpConfig resource class for asynchronous operations.
- class runloop_api_client.sdk.async_mcp_config.AsyncMcpConfig(client, mcp_config_id)[source]¶
Asynchronous wrapper around an MCP config resource.
MCP configs define how to connect to upstream MCP (Model Context Protocol) servers. They specify the target endpoint and which tools are allowed. Use with devboxes to securely connect to MCP servers.
Example
>>> runloop = AsyncRunloopSDK() >>> mcp_config = await runloop.mcp_config.create( ... name="my-mcp-server", ... endpoint="https://mcp.example.com", ... allowed_tools=["*"], ... ) >>> info = await mcp_config.get_info() >>> print(f"MCP Config: {info.name}")
- async get_info(**options)[source]¶
Retrieve the latest MCP config details.
- Parameters:
options (
Unpack[BaseRequestOptions]) – Optional request configuration- Returns:
API response describing the MCP config
- Return type:
- async update(**params)[source]¶
Update the MCP config.
- Parameters:
params (
Unpack[SDKMcpConfigUpdateParams]) – SeeSDKMcpConfigUpdateParamsfor available parameters- Returns:
Updated MCP config view
- Return type:
- async delete(**options)[source]¶
Delete the MCP config. This action is irreversible.
- Parameters:
options (
Unpack[LongRequestOptions]) – Optional long-running request configuration- Returns:
API response acknowledging deletion
- Return type:
McpConfig resource class for synchronous operations.
- class runloop_api_client.sdk.mcp_config.McpConfig(client, mcp_config_id)[source]¶
Synchronous wrapper around an MCP config resource.
MCP configs define how to connect to upstream MCP (Model Context Protocol) servers. They specify the target endpoint and which tools are allowed. Use with devboxes to securely connect to MCP servers.
Example
>>> runloop = RunloopSDK() >>> mcp_config = runloop.mcp_config.create( ... name="my-mcp-server", ... endpoint="https://mcp.example.com", ... allowed_tools=["*"], ... ) >>> info = mcp_config.get_info() >>> print(f"MCP Config: {info.name}")
- get_info(**options)[source]¶
Retrieve the latest MCP config details.
- Parameters:
options (
Unpack[BaseRequestOptions]) – Optional request configuration- Returns:
API response describing the MCP config
- Return type:
- update(**params)[source]¶
Update the MCP config.
- Parameters:
params (
Unpack[SDKMcpConfigUpdateParams]) – SeeSDKMcpConfigUpdateParamsfor available parameters- Returns:
Updated MCP config view
- Return type:
- delete(**options)[source]¶
Delete the MCP config. This action is irreversible.
- Parameters:
options (
Unpack[LongRequestOptions]) – Optional long-running request configuration- Returns:
API response acknowledging deletion
- Return type: