8000 uipath-mcp-python/samples/github-helper-agent at main · UiPath/uipath-mcp-python · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

GitHub Helper Agent

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.

Overview

The agent uses:

  • LangGraph for orchestration
  • UiPath hosted GitHub MCP server

The agent consists of three main components:

  1. GitHub action to deploy the official GitHub MCP Server to UiPath
  2. GitHub action that triggers this agent on "/help command"
  3. The GitHub helper agent itself with developer and reviewer nodes

Command Structure

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)

Architecture

---
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
Loading

Prerequisites

  • Python 3.10+
  • langchain-mcp-adapters
  • langgraph
  • uipath-langchain

Installation

uv venv -p 3.11 .venv
.venv\Scripts\activate
uv sync

Set 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/

Debugging

For debugging issues:

  1. 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}'
  1. Verify that the GitHub MCP Server is properly deployed and accessible.
  2. Check GitHub Action logs for any issues with command triggers.
0