Skip to content

Commit ad62b28

Browse files
fix(devbox): add mcp configs to DevboxView (#7680)
1 parent f935433 commit ad62b28

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-dd0f43e15cb67179deaf86f83ae04c6fae4ff858ee33e82a3b89231566cdc5bb.yml
3-
openapi_spec_hash: 569176c1c4f48efd25a44fa526fad9d1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-fa81aa937935299daa80a12956d3f4d69344342291689a77f41f14db5efd928e.yml
3+
openapi_spec_hash: e388727b0c2f4debe675845ab26feacd
44
config_hash: cbda3692cb48ab8582a0df1674b9e5c8

src/runloop_api_client/types/devbox_view.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .tunnel_view import TunnelView
88
from .shared.launch_parameters import LaunchParameters
99

10-
__all__ = ["DevboxView", "StateTransition", "GatewaySpecs"]
10+
__all__ = ["DevboxView", "StateTransition", "GatewaySpecs", "McpSpec"]
1111

1212

1313
class StateTransition(BaseModel):
@@ -39,6 +39,14 @@ class GatewaySpecs(BaseModel):
3939
"""The ID of the secret containing the credential."""
4040

4141

42+
class McpSpec(BaseModel):
43+
mcp_config_id: str
44+
"""The ID of the MCP config (e.g., mcp_123abc)."""
45+
46+
secret_id: str
47+
"""The ID of the secret containing the credential."""
48+
49+
4250
class DevboxView(BaseModel):
4351
"""A Devbox represents a virtual development environment.
4452
@@ -99,6 +107,13 @@ class DevboxView(BaseModel):
99107
initiator_type: Optional[Literal["unknown", "api", "scenario", "scoring_validation"]] = None
100108
"""The type of initiator that created the Devbox."""
101109

110+
mcp_specs: Optional[List[McpSpec]] = None
111+
"""[Beta] MCP specifications configured for this devbox.
112+
113+
Each spec links an MCP config to a secret for MCP server access through the MCP
114+
hub.
115+
"""
116+
102117
name: Optional[str] = None
103118
"""The name of the Devbox."""
104119

0 commit comments

Comments
 (0)