[Feat]: Git mcp server to open PRs (#8348)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Co-authored-by: Robert Brennan <accounts@rbren.io>
This commit is contained in:
Rohit Malhotra
2025-05-21 11:48:02 -04:00
committed by GitHub
parent 7305c8fb31
commit 890796cc9d
18 changed files with 2663 additions and 2158 deletions

View File

@@ -356,6 +356,7 @@ class ActionExecutionClient(Runtime):
) -> MCPConfig:
# Add the runtime as another MCP server
updated_mcp_config = self.config.mcp.model_copy()
# Send a request to the action execution server to updated MCP config
stdio_tools = [
server.model_dump(mode='json')
@@ -408,7 +409,7 @@ class ActionExecutionClient(Runtime):
)
# Create clients for this specific operation
mcp_clients = await create_mcp_clients(updated_mcp_config.sse_servers)
mcp_clients = await create_mcp_clients(updated_mcp_config.sse_servers, self.sid)
# Call the tool and return the result
# No need for try/finally since disconnect() is now just resetting state