bgagents
Click on "Deploy 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., "@bgagentsgenerate a Python script to read and process JSON files"
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.
bgagents

bgagents is the first open-source project that turns the most powerful code agents, such as ANTHROPIC ClaudeCode and OpenAI Codex into background agents, accessible via REST API, MCP, and an interactive frontend
⨠Features
Related MCP server: Git MCP Server
Getting Started
Quick Start (Recommended)
The fastest way to get bgagents running is with our pre-built Docker image:
GitHub Authentication (Choose one method):
Option 1: Direct Token
docker run -e GITHUB_TOKEN=[ghp_xxx] \
-e API_KEY=[sk-...-xxx] \ # Optional
bgagents/bgagents:v1.0.1-alphaOption 2: OAuth Flow
docker run -e GITHUB_CLIENT_ID=[your_client_id] \
-e GITHUB_CLIENT_SECRET=[your_client_secret] \
-e GITHUB_REDIRECT_URI=http://localhost:3000 \
-e API_KEY=[sk-...-xxx] \ # Optional
bgagents/bgagents:v1.0.1-alphaOptional Environment Variables:
API_KEY: Your Anthropic Claude or OpenAI API key (auto-detects provider)GITHUB_TOKEN: GitHub access token (alternative to providing it in requests)
š¤ Supported AI Models:
Anthropic: claude-sonnet-4-20250514 (default), claude-opus-4-20250514, claude-3-7-sonnet-20250219
OpenAI: codex-mini-latest (default), o4-mini
Production
Prerequisites
With Docker Compose (Recommended)
Clone the repository:
git clone https://github.com/michael-elkabetz/claudecodex.git cd claudecodexSet up environment variables:
Update
docker-compose.ymlwith the following environment variables:VITE_GITHUB_CLIENT_ID=[VITE_GITHUB_CLIENT_ID] VITE_GITHUB_REDIRECT_URI=[VITE_GITHUB_REDIRECT_URI] GITHUB_CLIENT_SECRET=[GITHUB_CLIENT_SECRET] GITHUB_TOKEN=ghp_xxx API_KEY=[your_anthropic_or_openai_api_key] # OptionalDeploy with Docker Compose:
# Build and start all services docker-compose up --build -d # View logs docker-compose logs -fAccess the services:
Frontend: http://localhost (port 80)
Backend API: http://localhost:3000
MCP Server: http://localhost:6213
With Docker (Frontend + Backend)
Clone the repository:
git clone https://github.com/michael-elkabetz/claudecodex.git cd claudecodexSet up environment variables:
Update the main
Dockerfilewith the following environment variables:VITE_GITHUB_CLIENT_ID=[VITE_GITHUB_CLIENT_ID] VITE_GITHUB_REDIRECT_URI=[VITE_GITHUB_REDIRECT_URI] GITHUB_CLIENT_SECRET=[GITHUB_CLIENT_SECRET] GITHUB_TOKEN=ghp_xxx API_KEY=[your_anthropic_or_openai_api_key] # Optional
3. Build and deploy:
```bash
docker build -t ClaudeCodex-backend .
docker run -d -p 80:80 ClaudeCodex-backend
```Development
Quick Setup
npm install
npm run dev
# Individual services
npm run dev:frontend
npm run dev:backend
npm run dev:mcpDevelopment URLs
Frontend: http://localhost
Backend: http://localhost:3000
MCP Server: http://localhost:6213
š Docker Deployment
Using Docker Compose (Recommended)
# Production deployment
docker-compose up --build -d
# Development with hot reload
docker-compose -f docker-compose.dev.yml up --buildIndividual Services
# Frontend
docker build -f frontend/Dockerfile -t claudecodex-frontend ./frontend
docker run -d -p 80:80 claudecodex-frontend
# Backend
docker build -f backend/Dockerfile -t ClaudeCodex-backend ./backend
docker run -d -p 3000:3000 ClaudeCodex-backend
# MCP Server
docker build -f mcp/Dockerfile -t ClaudeCodex-mcp ./mcp
docker run -d -p 6213:6213 ClaudeCodex-mcpDocker Compose Services
Service | Port | Description |
frontend | 80 | React TypeScript UI |
backend | 3000 | Express.js REST API |
mcp | 6213 | Model Context Protocol Server |
š MCP Integration
Connecting to MCP Server
The MCP server runs on port 6213 and provides AI-powered code generation capabilities.
Connection URL: http://localhost:6213
MCP Inspector Setup
Start the MCP Inspector:
npm run inspectorOpen Inspector UI:
Navigate to: http://127.0.0.1:6274
Configure Connection:
Transport Type:
Streamable HTTPMCP Server URL:
http://localhost:6213
Authentication:
Copy the
MCP_PROXY_AUTH_TOKENfrom the inspector logsPaste it in the Proxy Session Token field
Click Connect
MCP Tools Available
Execute: Complete AI-powered workflow (code generation, branch creation, PR automation)
Integrates with GitHub repositories
Supports Anthropic Claude and OpenAI GPT
Automated branch and PR creation
š API Documentation
Backend Endpoints
Swagger UI: http://localhost:3000/api-docs
Health Check:
GET /api/healthAI Code Generation:
POST /api/dev/executeGitHub Authentication:
POST /api/github/authRepository Branches:
POST /api/github/branches
MCP Protocol
Server Info:
GET /Tools List:
GET /toolsGenerate:
POST /tools/generate
š ļø Development
Tech Stack
Project Structure
ClaudeCodex/
āāā frontend/ # React TypeScript UI
āāā backend/ # Express.js API
āāā mcp/ # MCP Server
āāā docker-compose.yml # Multi-service deployment
āāā README.md # You are hereAvailable Scripts
npm run dev # Start all services
npm run build # Build all services
npm run test # Run all tests
npm run lint # Lint all projects
npm run clean # Clean build artifacts
npm run dev:frontend # Frontend development
npm run dev:backend # Backend development
npm run dev:mcp # MCP server developmentš¤ Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Acknowledgments
Thanks to Anthropic for Claude Code
Thanks to OpenAI for Codex
Thanks to the open-source community
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Build agents to automate any background task. Works with your ChatGPT/Claude subscription.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
Governed app access for AI agents: 1,000+ apps & 12,000+ tools via Code Mode MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEmpower any MCP-compatible AI Agent(MCP Client) with engineering-grade capabilities to understand, modify, run, and deliver real-world code repositories.495 PyPI1,061Apache 2.0
- FlicenseBqualityCmaintenanceEnables issue-to-code automation for GitHub and GitLab by connecting AI assistants (Claude Code, Gemini CLI, Codex) via MCP, with slash commands for issue analysis, planning, implementation, testing, documentation, and PR creation.339-
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered GitHub interactions including repository analysis, code search, PR reviews, and more through the MCP protocol.4MIT
- AlicenseAqualityFmaintenanceMCP server for running external coding agents as background tasks inside Claude Code. Supports multiple backends including Codex, Grok, GLM, DeepSeek, and more.7MIT