Skip to content

Commit 911140b

Browse files
feat(api): add mcp_integrations field and type to agent_execution
1 parent e1ed935 commit 911140b

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
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: 172
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-92cecb570bf9966e9dc5cff1eedd2981a57121b013aa3b79d6b955d011e72e7e.yml
3-
openapi_spec_hash: 2adc05896eb8bdc68ca146d1a84666d1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-09dc2c5238bcddd171d21ef3307566abc18e4958934f00e7331b8123a40d7f56.yml
3+
openapi_spec_hash: 79e5524d84ea8e44eb2bde551eb9f3af
44
config_hash: ad1db65b32248aecda41b64586aac9ce

src/gitpod/types/agent_execution.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"StatusCurrentOperation",
2121
"StatusCurrentOperationLlm",
2222
"StatusCurrentOperationToolUse",
23+
"StatusMcpIntegrationStatus",
2324
"StatusOutputs",
2425
"StatusUsedEnvironment",
2526
]
@@ -296,6 +297,39 @@ class StatusCurrentOperation(BaseModel):
296297
tool_use: Optional[StatusCurrentOperationToolUse] = FieldInfo(alias="toolUse", default=None)
297298

298299

300+
class StatusMcpIntegrationStatus(BaseModel):
301+
"""
302+
MCPIntegrationStatus represents the status of a single MCP integration
303+
within an agent execution context
304+
"""
305+
306+
id: Optional[str] = None
307+
"""id is the unique name of the MCP integration"""
308+
309+
failure_message: Optional[str] = FieldInfo(alias="failureMessage", default=None)
310+
"""
311+
failure_message contains the reason the MCP integration failed to connect or
312+
operate
313+
"""
314+
315+
name: Optional[str] = None
316+
"""name is the unique name of the MCP integration (e.g., "linear", "notion")"""
317+
318+
phase: Optional[
319+
Literal[
320+
"MCP_INTEGRATION_PHASE_UNSPECIFIED",
321+
"MCP_INTEGRATION_PHASE_INITIALIZING",
322+
"MCP_INTEGRATION_PHASE_READY",
323+
"MCP_INTEGRATION_PHASE_FAILED",
324+
"MCP_INTEGRATION_PHASE_UNAVAILABLE",
325+
]
326+
] = None
327+
"""phase is the current connection/health phase"""
328+
329+
warning_message: Optional[str] = FieldInfo(alias="warningMessage", default=None)
330+
"""warning_message contains warnings (e.g., rate limiting, degraded performance)"""
331+
332+
299333
class StatusOutputs(BaseModel):
300334
bool_value: Optional[bool] = FieldInfo(alias="boolValue", default=None)
301335

@@ -355,6 +389,14 @@ class Status(BaseModel):
355389
judgement: Optional[str] = None
356390
"""judgement is the judgement of the agent run produced by the judgement prompt."""
357391

392+
mcp_integration_statuses: Optional[List[StatusMcpIntegrationStatus]] = FieldInfo(
393+
alias="mcpIntegrationStatuses", default=None
394+
)
395+
"""
396+
mcp_integration_statuses contains the status of all MCP integrations used by
397+
this agent execution
398+
"""
399+
358400
mode: Optional[AgentMode] = None
359401
"""
360402
mode is the current operational mode of the agent execution. This is set by the

0 commit comments

Comments
 (0)