
pr_reviewer
结合LangChain、MCP和Gradio的交互式代理系统。
Repository Info
About This Server
结合LangChain、MCP和Gradio的交互式代理系统。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
LangChain Agent Interface
A powerful interface that combines LangChain, MCP (Model Control Protocol), and Gradio to create an interactive agent system.
Features
- Interactive Gradio-based web interface
- Integration with LangChain for agent creation
- Uses Groq's Llama 3.1 8B model for responses
- MCP (Model Control Protocol) integration for enhanced capabilities
- Asynchronous operation for better performance
Prerequisites
- Python 3.x
- Required Python packages (install via pip):
- gradio
- langchain-groq
- langchain-mcp-adapters
- langgraph
- python-dotenv
Setup
- Clone this repository
- Install the required dependencies:
uv pip install -r requirements.txt - Create a
.envfile in the project root and add your Groq API key:GITHUB_TOKEN=your_api_Key_here GROQ_API_KEY=your_api_key_here
Usage
- Run the application:
python client.py - Open your web browser and navigate to the URL shown in the terminal (typically http://127.0.0.1:7860)
- Enter your prompt in the text box and click "Run Agent"
Project Structure
client.py: Main application file containing the Gradio interface and agent setuppr_analyzer.py: MCP script for handling agent operations
Note
This project uses the Groq API with the Llama 3.1 8B model. Make sure you have valid API credentials before running the application.
Quick Start
Clone the repository
git clone https://github.com/hassaanhanif-294/pr_reviewerInstall dependencies
cd pr_reviewer
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.