This project demonstrates how to create a GitHub Helper Agent using LangGraph with UiPathAzureChatOpenAI that interacts with Github via the official GitHub MCP Server deployed on UiPath infrastructure.
The agent uses:
- LangGraph for orchestration
- UiPath hosted GitHub MCP server
The agent consists of three main components:
- GitHub action to deploy the official GitHub MCP Server to UiPath
- GitHub action that triggers this agent on "/help command"
- The GitHub helper agent itself with developer and reviewer nodes
The agent responds to the following commands:
- Reviewer:
/help summarize,/help suggest,/help review,/help test - Developer:
/help commit(commits the latest suggestion/review/tests)
---
config:
flowchart:
curve: linear
---
graph TD;
__start__([<p>__start__</p>]):::first
hydrate_history(hydrate_history)
__end__(<p>__end__</p>)
__start__ --> hydrate_history;
hydrate_history -.-> developer_node___start__;
hydrate_history -.-> reviewer_node___start__;
hydrate_history -.-> __end__;
subgraph reviewer_node
reviewer_node___start__(<p>__start__</p>)
reviewer_node_agent(agent)
reviewer_node_tools(tools)
reviewer_node___end__(<p>__end__</p>)
reviewer_node___start__ --> reviewer_node_agent;
reviewer_node_tools --> reviewer_node_agent;
reviewer_node_agent -.-> reviewer_node_tools;
reviewer_node_agent -.-> reviewer_node___end__;
end
subgraph developer_node
developer_node___start__(<p>__start__</p>)
developer_node_agent(agent)
developer_node_tools(tools)
developer_node___end__(<p>__end__</p>)
developer_node___start__ --> developer_node_agent;
developer_node_tools --> developer_node_agent;
developer_node_agent -.-> developer_node_tools;
developer_node_agent -.-> developer_node___end__;
end
classDef default fill:#f2f0ff,line-height:1.2
classDef first fill-opacity:0
classDef last fill:#bfb6fc
- Python 3.10+
langchain-mcp-adapterslanggraphuipath-langchain
uv venv -p 3.11 .venv
.venv\Scripts\activate
uv syncSet your MCP Remote Server URL as environment variables in .env:
UIPATH_MCP_SERVER_URL=https://cloud.uipath.com/account/tenant/agenthub_/mcp/folder-key/github-mcp/For debugging issues:
- Check logs for any connection or runtime errors:
uipath run agent '{"owner": "uipath", "repo": "uipath-mcp-python", "pullNumber": 78, "command": "summarize", "in_reply_to": 2060859623}'- Verify that the GitHub MCP Server is properly deployed and accessible.
- Check GitHub Action logs for any issues with command triggers.