mcp-agentic-workflow

No description

GitHub Stars

0

User Rating

Not Rated

Forks

0

Issues

0

Views

0

Favorites

0

README
GitLab Issues MCP

Professional GitLab Issues Management with FastMCP and Streamlit.

Features
  • 🦊 GitLab Integration - Connect to any GitLab instance
  • šŸ¤– AI-Powered - Natural language queries with OpenAI
  • šŸ“Š Smart Filtering - Filter by month, labels, assignee, state
  • šŸ“‹ Professional Tables - Clean, formatted issue displays
  • šŸ—ļø Modular Architecture - Clean, testable, maintainable code
  • ⚔ FastMCP Powered - Efficient MCP server implementation
Project Structure
gitlab-issues-mcp/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ config/          # Configuration management
│   ā”œā”€ā”€ core/            # Core utilities (GitLab client, date parsing)
│   ā”œā”€ā”€ models/          # Data models
│   ā”œā”€ā”€ services/        # Business logic
│   ā”œā”€ā”€ mcp/             # FastMCP server
│   └── ui/              # Streamlit interface
ā”œā”€ā”€ tests/               # Unit tests
ā”œā”€ā”€ run_server.py        # MCP server runner
ā”œā”€ā”€ run_app.py          # Streamlit app runner
└── requirements.txt     # Dependencies
Setup
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure environment:
cp .env.example .env
# Edit .env with your credentials
  1. Run MCP server:
python run_server.py --transport http --port 8000
  1. Run Streamlit app:
streamlit run run_app.py
Usage
Natural Language Queries:
  • "Show me issues from January"
  • "What bugs do we have this month?"
  • "Last month's high priority issues"
  • "Show me closed issues assigned to John"
Development:
# Run tests
pytest

# Format code
black src/ tests/

# Type checking
mypy src/

# Install in development mode
pip install -e .[dev]
Configuration

Required environment variables:

  • OPENAI_API_KEY - Your OpenAI API key
  • GITLAB_TOKEN - GitLab personal access token
  • GITLAB_PROJECT_IDS - Comma-separated project IDs/paths
  • GITLAB_URL - GitLab instance URL (optional, defaults to gitlab.com)
Architecture
  • Configuration Layer - Environment-based configuration management
  • Core Layer - GitLab client and utility functions
  • Model Layer - Type-safe data models
  • Service Layer - Business logic and API interactions
  • MCP Layer - FastMCP server implementation
  • UI Layer - Streamlit web interface
License

MIT License

Author Information
amirhossein jofreh

DevOps Engineer, Full Stack Developer, Linux, Python, Java, C/C++, JavaScript specialist.

LuxoftPoland

20

Followers

58

Repositories

0

Gists

13

Total Contributions

Top Contributors

Threads