Enables creating and managing GitHub issues and pull requests, including filtering, labeling, and assignment capabilities for repository management and automation.
Allows creating, listing, and updating Google Calendar events with attendee management for meeting scheduling and coordination.
Provides additional LLM capabilities for the reasoning and planning agents.
Stores LLM memory including previous commands, feedback, and tool interactions to enable personalized responses based on user history.
Provides tools for creating and updating Notion pages, as well as querying and filtering Notion databases for structured documentation and knowledge management.
Powers the reasoning agent using GPT-4o for intelligent workflow planning and task execution decisions.
Provides main data storage for workflow execution logs, evaluation metrics, and system analytics.
Handles caching for session management, workflow state, and performance optimization.
Integrates with Slack through slash commands and mentions to trigger automated workflows, provide real-time notifications, and manage task execution across connected services.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CodePilot MCPschedule a team standup for tomorrow at 10am and create a Notion page for the agenda"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π CodePilot MCP - Intelligent Automation Platform
π― Overview
CodePilot MCP is an intelligent automation platform built on the Model Context Protocol (MCP) framework. It acts as a bridge between Large Language Models (LLMs) and real-world tools like GitHub, Notion, and Google Calendar. Designed for software engineers, team coordinators, and AI researchers, CodePilot enables smart task execution, personalized agent memory, and Slack integration through a modular, secure, and scalable microservices architecture.
π Key Features
1. π Multi-Tool MCP Agent Server
Automates workflows across GitHub, Notion, and Google Calendar
Complies with the open MCP Protocol for tool interoperability
Containerized with real-time event streaming (SSE)
2. π€ Slack Bot Integration
Use the command
/codepilotin Slack to automate:Bug triage in GitHub
Meeting rescheduling in Calendar
Task syncing in Notion
Internally triggers: Planner β Reasoner β Validator β Executor β Memory Store
3. π§ LLM Memory Store
Tracks previous commands, feedback, and tool interactions
Personalizes responses based on user history
Powered by MongoDB with RBAC for secure storage
4. π MCP Eval Dashboard
Built using Next.js, TailwindCSS, and ShadCN
Features:
β Success/failure rate of agent tasks
π§ LLM memory usage and impact
π API call history
π Error logs and response times
π§ Architecture
π§± Tech Stack Breakdown
Layer | Tech |
Frontend | Next.js, Tailwind, ShadCN (for MCP Eval Dashboard) |
Backend | Node.js + TypeScript (Express or Next.js API Routes) |
Databases | PostgreSQL (main data), Redis (caching), MongoDB (LLM Memory Store) |
LLMs | GPT-4o (OpenAI), Relevance AI, Hugging Face |
Infra | Docker, Google Cloud Run, GitHub Actions, Secret Manager |
Slack Bot | Bolt SDK (Slack API) + Webhook Trigger to MCP Server |
Auth & ACL | OAuth 2.1, RBAC, JWT |
Observability | Sentry, Google Cloud Logging, UptimeRobot |
Validation | Zod, CSP headers, Prompt Injection Filters |
π¦ Available Tools
GitHub Integration
github_create_issue- Create issues with labels and assigneesgithub_list_issues- Query issues with filtersgithub_create_pr- Create pull requests with automation
Notion Integration
notion_create_page- Create structured documentationnotion_update_page- Update existing pagesnotion_query_database- Search and filter databases
Google Calendar Integration
calendar_create_event- Schedule meetings with attendeescalendar_list_events- Query calendar eventscalendar_update_event- Modify existing events
Workflow Automation
workflow_project_setup- End-to-end project initializationworkflow_bug_triage- Automated bug analysis and assignmentworkflow_meeting_scheduler- Smart meeting coordination
π Quick Start
Prerequisites
Node.js 18+
MongoDB instance
API tokens for GitHub, Notion, and Google Calendar
Installation
Clone and Install Dependencies
Environment Setup
Build the Project
Start the MCP Server
Testing with Claude Desktop
Configure Claude Desktop
Test Commands in Claude
"Create a GitHub issue for bug tracking"
"Set up a new project with GitHub repo and Notion workspace"
"Schedule a team standup meeting"
π§ Development
Scripts
Project Structure
π€ Slack Bot Integration
The MCP server includes a comprehensive Slack bot for workflow management and notifications.
Features
Interactive Commands: Slash commands and mention handlers
Workflow Control: Start, stop, and monitor workflows directly from Slack
Real-time Notifications: Get updates on workflow status changes
Webhook Integration: Receive notifications from GitHub, Notion, and Calendar events
Setup
Create a Slack app at https://api.slack.com/apps
Configure the following scopes:
app_mentions:readchat:writecommandsusers:read
Add environment variables:
SLACK_BOT_TOKEN=xoxb-your-bot-token SLACK_SIGNING_SECRET=your-signing-secret SLACK_APP_TOKEN=xapp-your-app-token # For Socket Mode
Commands
/codepilot workflows- List your workflows/codepilot create [name]- Create a new workflow/codepilot help- Show help message@CodePilot start workflow [name]- Start a workflow@CodePilot status workflow [id]- Check workflow status@CodePilot stop workflow [id]- Stop a workflow
π MCP Eval Dashboard
A modern Next.js dashboard for monitoring and managing your CodePilot MCP workflows.
Features
Real-time Monitoring: Live workflow status and system health
Performance Metrics: Charts and analytics for workflow performance
Activity Feed: Recent activity and notifications
System Health: Monitor API services and resource usage
Quick Actions: Start workflows and manage tasks
Setup
The dashboard will be available at http://localhost:3000
Environment Variables
Components
Dashboard Layout: Responsive sidebar navigation
Workflow Overview: Active workflows and progress tracking
System Health: Service status and resource monitoring
Metrics Charts: Performance visualization with Recharts
Recent Activity: Timeline of recent events
Quick Actions: One-click workflow management
π Webhook Service
The webhook service handles incoming events from external services and routes them appropriately.
Supported Webhooks
GitHub: PR creation, issue updates, repository events
Slack: Event API notifications
Notion: Page updates, database changes
Google Calendar: Event creation, updates
Custom: Generic webhook endpoint for other integrations
Endpoints
Security
Signature verification for GitHub, Slack, and Notion
CORS support
Request logging and error handling
Rate limiting (configurable)
π Development Workflow
Adding New Integrations
Create Service Module:
// src/services/newservice/index.ts export class NewService { async performAction(params: any) { // Implementation } }Add Validation Schema:
// src/utils/validation.ts export const NewServiceSchema = z.object({ // Define schema });Register Tool in MCP Server:
// src/index.ts server.setRequestHandler(CallToolRequestSchema, async (request) => { if (request.params.name === 'new_service_action') { // Handle the tool } });Add to Webhook Handler (if needed):
// src/services/webhook/index.ts private async handleNewServiceWebhook(payload: any): Promise<void> { // Handle webhook }
Testing
Deployment Options
Local Development
Docker
Google Cloud Run
Performance Optimization
Caching: Redis for session and workflow state
Database: MongoDB with indexes for fast queries
Rate Limiting: Configurable per-service rate limits
Connection Pooling: Reuse API connections
Background Jobs: Queue system for long-running tasks
π Architecture Decisions
Why This Stack?
TypeScript: Type safety and better developer experience
Zod: Runtime validation and type inference
Express: Webhook handling and API endpoints
Next.js: Modern React framework for dashboard
MongoDB: Flexible document storage for workflows
Tailwind CSS: Utility-first styling
Design Patterns
Service Layer: Separation of concerns for each integration
Agent Pattern: Specialized agents for planning, reasoning, execution
Event-Driven: Webhook-based real-time updates
Validation Layer: Centralized input validation with Zod
Error Handling: Comprehensive error boundaries and logging
Security Best Practices
Input validation on all endpoints
Webhook signature verification
Rate limiting and CORS
Environment variable configuration
JWT-based authentication (extendable)
SQL injection prevention (NoSQL with validation)
π Monitoring and Analytics
Metrics Collected
Workflow execution times
API response times
Error rates by service
Resource usage (CPU, memory)
User activity patterns
Logging
Health Checks
Service availability monitoring
Database connection status
External API health
Resource usage alerts
π€ Contributing
Development Setup
Clone the repository
Install dependencies:
npm installCopy
.env.exampleto.envand configureStart development server:
npm run devStart dashboard:
cd dashboard && npm run dev
Code Style
Use TypeScript for all new code
Follow ESLint configuration
Write tests for new features
Document public APIs
Use conventional commits
Pull Request Process
Create feature branch from
mainMake changes with tests
Update documentation
Submit PR with description
Address review feedback
π Roadmap
Version 1.1
Discord integration
Advanced workflow templates
Workflow marketplace
Mobile dashboard app
Version 1.2
AI-powered workflow suggestions
Multi-tenant support
Advanced analytics
Plugin system
Version 2.0
Visual workflow builder
Enterprise features
Advanced security
Workflow marketplace
π Support
Documentation: Check this README and inline code comments
Issues: Use GitHub Issues for bug reports
Discussions: Use GitHub Discussions for questions
Email: Contact [bathinibathinanna1432@gmail.com] for enterprise support
π Acknowledgments
Model Context Protocol: For the foundational framework
Anthropic: For MCP development and Claude integration
Open Source Community: For the excellent libraries and tools
Contributors: Thank you to all who help improve this project
Happy Automating! π