π An intelligent MCP (Model Context Protocol) server that orchestrates complex workflows across multiple workplace applications with enterprise-grade security.
Imagine you have a magic assistant that can talk to ALL your work apps at once. Instead of you jumping between Slack, Google Calendar, GitHub, Notion, etc., you just tell the AI agent what you want to accomplish, and it does everything for you - safely and smartly.
You say: "Plan a code review meeting for the login bug fix"
WorkflowGenie automatically:
- Finds the bug report in your project management tool
- Locates the related code changes in GitHub
- Identifies who needs to be in the meeting
- Checks everyone's calendars and finds a free time
- Creates a Slack channel for discussion
- Schedules the meeting with all context attached
- Updates the bug status to "Under Review"
All in 30 seconds. All secure. All with proper permissions.
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β AI Agent βββββΆβ WorkflowGenie βββββΆβ Your Apps β
β (Claude) β β MCP Server β β Slack, GitHub β
βββββββββββββββββββ ββββββββββββββββββββ β Calendar, etc. β
β βββββββββββββββββββ
βΌ
ββββββββββββββββββββ
β Security Layer β
β (Cequence+Descope)β
ββββββββββββββββββββ
- Code Review Orchestration: Automatically coordinate GitHub PRs, Slack channels, and calendar meetings
- Project Kickoffs: Set up complete project infrastructure across all platforms
- Incident Response: Coordinate team communication and tracking during outages
- Sprint Planning: Sync GitHub issues, calendar events, and team notifications
- Code Review Scheduling: Complete integration between GitHub, Slack, Google Calendar, and Notion
- Fetches PR details and involved developers from GitHub
- Creates dedicated Slack channel for review discussions
- Finds optimal meeting time based on reviewers' calendar availability
- Schedules a calendar event with video conferencing
- Creates a Notion page with code review checklist and context
- Updates all systems with links to the others for seamless navigation
- Cequence AI Gateway: Enterprise-grade API security and monitoring
- Descope Authentication: Secure OAuth flows for all integrations
- Scoped Permissions: Users only access what they're authorized for
- Audit Logging: Complete trail of all AI-initiated actions
- Slack: Messaging, channels, user management
- GitHub: Pull requests, issues, repository access
- Google Calendar: Meeting scheduling, availability checking
- Notion: Documentation, project tracking
- Node.js 18+ and npm
- Accounts for: Cequence AI, Descope, Slack, GitHub, Google, Notion
- Clone the repository
git clone https://github.com/Geethapranay1/workflowgenie.git
cd workflowgenie-mcp
- Install dependencies
npm install
- Configure environment variables
cp .env.example .env
# Edit .env with your API keys and credentials
- Set up integrations
# Run setup wizard for all integrations
npm run setup
- Start the server
npm start
Create a .env
file with the following variables:
# Server Configuration
PORT=3000
NODE_ENV=development
# Cequence AI Gateway (Required)
CEQUENCE_API_KEY=your_cequence_api_key_here
CEQUENCE_BASE_URL=https://api.cequence.ai
CEQUENCE_PROXY_ENDPOINT=your_proxy_endpoint_here
# Descope Authentication (Required)
DESCOPE_PROJECT_ID=your_descope_project_id_here
DESCOPE_MANAGEMENT_KEY=your_descope_management_key_here
# Slack Integration
SLACK_CLIENT_ID=your_slack_client_id_here
SLACK_CLIENT_SECRET=your_slack_client_secret_here
SLACK_TEST_TOKEN=xoxb-your-bot-token-here
# GitHub Integration
GITHUB_CLIENT_ID=your_github_client_id_here
GITHUB_CLIENT_SECRET=your_github_client_secret_here
GITHUB_TEST_TOKEN=ghp_your_github_token_here
# Google Calendar Integration
GOOGLE_CLIENT_ID=your_google_client_id_here
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
GOOGLE_REDIRECT_URI=http://localhost:3000/auth/google/callback
# Notion Integration
NOTION_CLIENT_ID=your_notion_client_id_here
NOTION_CLIENT_SECRET=your_notion_client_secret_here
npm test
# Test GitHub integration
npm run test:github
# Test Slack integration
npm run test:slack
# Test full workflow
npm run test:workflow
# Test with actual GitHub PR and Slack channel
npm run test:real-workflow
Orchestrates a complete code review process across multiple platforms.
{
"name": "schedule_code_review",
"arguments": {
"pr_number": "123",
"repository": "owner/repo",
"urgency": "high"
}
}
What it does:
- Fetches PR details from GitHub
- Identifies required reviewers
- Checks calendar availability
- Creates Slack channel for discussion
- Schedules review meeting
- Sends notifications to all participants
Sets up complete project infrastructure.
{
"name": "create_project_kickoff",
"arguments": {
"project_name": "New Auth System",
"team_members": ["alice@company.com", "bob@company.com"],
"deadline": "2024-12-01"
}
}
send_slack_message
: Send messages to channelscreate_slack_channel
: Create new channelsget_slack_users
: Retrieve user information
get_pull_request
: Fetch PR detailscreate_github_issue
: Create new issuesget_suggested_reviewers
: AI-powered reviewer suggestions
find_free_time
: Check availability across multiple calendarscreate_meeting
: Schedule meetings with participantsget_calendar_events
: Retrieve upcoming events
- User Authentication: Handled by Descope with OAuth2/OIDC
- API Security: All requests routed through Cequence AI Gateway
- Permission Validation: Scoped access per user per application
- Audit Logging: Complete trail of all AI actions
Slack Permissions:
channels:read
- View channel informationchannels:write
- Create and manage channelschat:write
- Send messagesusers:read
- Access user profiles
GitHub Permissions:
repo
- Access repositoriesread:user
- Read user informationwrite:issue
- Create and modify issues
Google Calendar Permissions:
calendar.readonly
- View calendar eventscalendar.events
- Create and modify events
src/
βββ server.js # MCP server entry point
βββ config/
β βββ environment.js # Configuration management
βββ integrations/ # App-specific connectors
β βββ slack.js
β βββ github.js
β βββ calendar.js
β βββ cequence.js # Security gateway
β βββ descope.js # Authentication
βββ services/
β βββ orchestrator.js # Workflow coordination
βββ utils/
βββ logger.js # Structured logging
- AI Agent sends MCP request to WorkflowGenie
- Cequence Gateway validates and routes the request
- Descope authenticates the user and validates permissions
- Orchestrator breaks down complex workflows into steps
- Connectors execute individual app operations
- Results are aggregated and returned to the AI agent
- Structured JSON logging with Winston
- Request/response tracking with correlation IDs
- Performance metrics for each operation
- Security audit trail
- API response times
- Success/failure rates
- User activity patterns
- Resource utilization
# Check server health
curl http://localhost:3000/health
# Check integration status
curl http://localhost:3000/health/integrations
- Deploy to cloud platform (Fly.io, Render, or AWS)
# Example for Fly.io
fly launch
fly deploy
- Configure production environment
# Set production environment variables
fly secrets set CEQUENCE_API_KEY=prod_key
fly secrets set DESCOPE_PROJECT_ID=prod_project
- Verify deployment
curl https://your-app.fly.dev/health
Add to your Claude Desktop MCP configuration:
{
"mcpServers": {
"workflowgenie": {
"command": "node",
"args": ["/path/to/workflowgenie-mcp/src/server.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}
- Follow ESLint configuration
- Add tests for new features
- Update documentation
- Ensure security best practices
WorkflowGenie implements the full MCP specification:
- Tools: Callable functions with JSON schemas
- Resources: Access to external data sources
- Prompts: Template-based interactions
All tools include comprehensive JSON schemas for validation:
{
"type": "object",
"properties": {
"pr_number": {
"type": "string",
"description": "Pull request number"
}
},
"required": ["pr_number"]
}
Server won't start:
# Check Node.js version
node --version # Should be 18+
# Check dependencies
npm install
# Check environment variables
npm run check-env
Integration failures:
# Test individual integrations
npm run test:slack
npm run test:github
# Check API credentials
npm run verify-credentials
Permission errors:
- Verify OAuth scopes in each app
- Check Descope user permissions
- Review Cequence gateway logs
DEBUG=workflowgenie:* npm start
- Notion integration
- Jira/Linear support
- Custom workflow builder UI
- Advanced analytics dashboard
- Multi-tenant support
- Workflow templates marketplace
- Mobile app for approvals
- Enterprise SSO integration
Built with β€οΈ for the MCP ecosystem
WorkflowGenie makes AI agents truly useful by giving them secure, coordinated access to all your workplace tools.