Skip to main content
Glama
README.md
# ๐Ÿš€ DevForge-MCP

<p align="center">
  <img src="./devforge%20logo.png" alt="DevForge-MCP" width="900">
</p>

<p align="center">
  <strong>A Production-Ready Model Context Protocol (MCP) Server for AI-Assisted Software Development</strong>
</p>

<p align="center">
Empower AI assistants like ChatGPT and Claude with intelligent code understanding, multi-project workspaces, semantic search, Git integration, architecture analysis, and safe code editing.
</p>

<p align="center">

![License](https://img.shields.io/badge/License-MIT-blue.svg)
![Node.js](https://img.shields.io/badge/Node.js-20+-green)
![MCP](https://img.shields.io/badge/MCP-SDK%201.29-orange)
![Platform](https://img.shields.io/badge/Platform-Node.js-success)
![Status](https://img.shields.io/badge/Status-Production%20Ready-brightgreen)

</p>

---

# โœจ Overview

DevForge-MCP is a **production-ready Model Context Protocol (MCP) server** that enables AI coding assistants to intelligently understand, analyze, review, edit, and navigate software projects.

Unlike a traditional file server, DevForge-MCP builds an intelligent representation of your codebase, detects project architecture, manages multiple workspaces, integrates with Git, performs semantic code search, and exposes **44 developer tools** through the latest **Streamable HTTP MCP transport**.

It is designed to work with modern AI assistants that support MCP, providing them with rich contextual understanding of your projects.

---

# โœจ Key Features

## ๐Ÿง  AI Code Intelligence

* Architecture detection
* Semantic code search
* Symbol lookup
* Dependency graph generation
* Context-aware navigation
* Duplicate code detection

## ๐Ÿ“ Workspace Management

* Multi-project support
* Project switching
* Automatic indexing
* Persistent project memory
* Incremental cache rebuilding
  
## ๐Ÿ“ธ Dashboard

![Dashboard](https://github.com/Sanket2329/DevForge-MCP/blob/main/dashboard%202.png)


## โœ Safe Code Editing

* Patch files
* Replace methods
* Insert methods/classes
* Rename symbols
* Delete methods
* Multi-file editing

## ๐ŸŒฟ Git Integration

* Git status
* Commit changes
* Branch management
* Checkout branches
* Git history
* Diff inspection

## ๐Ÿ” Code Review

* Code smell detection
* Architecture review
* Refactoring suggestions
* Build error explanation
* Project review

## โšก Modern MCP

* Streamable HTTP
* JSON-RPC 2.0
* Stateless transport
* OpenAI Secure Tunnel compatible
* Latest MCP SDK

---

# ๐Ÿ— Architecture

```text
                        AI Assistant
                     (ChatGPT / Claude)
                               โ”‚
                               โ–ผ
                 Model Context Protocol (MCP)
                               โ”‚
                     Streamable HTTP Transport
                               โ”‚
                               โ–ผ
                       DevForge-MCP Server
                               โ”‚
      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
      โ”‚               โ”‚               โ”‚
      โ–ผ               โ–ผ               โ–ผ
 Code Intelligence    Git Engine    Workspace Manager
      โ”‚               โ”‚               โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                      โ–ผ
               Local Project Files
```

---

# ๐Ÿš€ Core Capabilities

* Intelligent codebase indexing
* Multi-project workspaces
* Architecture detection
* Semantic code search
* Safe editing operations
* Git automation
* Build automation
* Code review
* Security inspection
* Project memory
* Dashboard
* Status API

---

# ๐Ÿ“ฆ Technology Stack

* Node.js
* Express.js
* JavaScript
* Model Context Protocol SDK (v1.29+)
* Streamable HTTP
* Docker
* Railway
* Render

---

# ๐Ÿ“‚ Project Structure

```text
DevForge-MCP
โ”‚
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ architecture.js
โ”‚   โ”œโ”€โ”€ buildTools.js
โ”‚   โ”œโ”€โ”€ cache.js
โ”‚   โ”œโ”€โ”€ codeIntel.js
โ”‚   โ”œโ”€โ”€ editing.js
โ”‚   โ”œโ”€โ”€ fsTools.js
โ”‚   โ”œโ”€โ”€ gitTools.js
โ”‚   โ”œโ”€โ”€ indexer.js
โ”‚   โ”œโ”€โ”€ logger.js
โ”‚   โ”œโ”€โ”€ reviewTools.js
โ”‚   โ”œโ”€โ”€ security.js
โ”‚   โ””โ”€โ”€ state.js
โ”‚
โ”œโ”€โ”€ mcp/
โ”‚   โ”œโ”€โ”€ handlers.js
โ”‚   โ”œโ”€โ”€ server.js
โ”‚   โ”œโ”€โ”€ tools.js
โ”‚   โ””โ”€โ”€ transport.js
โ”‚
โ”œโ”€โ”€ public/
โ”‚
โ”œโ”€โ”€ tests/
โ”‚
โ”œโ”€โ”€ server.js
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ Dockerfile
โ”œโ”€โ”€ README.md
```

---

# ๐Ÿš€ Getting Started

## Clone Repository

```bash
git clone https://github.com/Sanket2329/DevForge-MCP.git

cd DevForge-MCP
```

---

## Install Dependencies

```bash
npm install
```

---

## Start Server

```bash
npm start
```

---

Server Endpoints

| Endpoint     | Description   |
| ------------ | ------------- |
| `/mcp`       | MCP Endpoint  |
| `/dashboard` | Web Dashboard |
| `/status`    | Server Status |

---

# โš™ Environment Variables

| Variable       | Default          | Purpose                       |
| -------------- | ---------------- | ----------------------------- |
| PROJECT_PATH   | Sample project   | Initial project to index      |
| WORKSPACE_ROOT | Parent directory | Workspace containing projects |
| PORT           | 3000             | HTTP server port              |
| MCP_API_KEY    | unset            | Protects REST API endpoints   |
| LOG_LEVEL      | info             | Logging level                 |

---

# ๐Ÿงฐ Developer Tool Inventory

## Workspace

* list_projects
* select_project
* get_current_project
* refresh_index

## Code Navigation

* get_project_files
* get_file_content
* get_full_codebase
* search_codebase
* get_architecture
* get_dependency_graph
* get_context

## Safe Editing

* write_file
* write_multiple_files
* patch_file
* replace_method
* insert_method
* insert_class
* rename_symbol
* delete_method

## Code Intelligence

* find_symbol
* find_class
* find_method
* find_interface
* find_references
* find_unused_files
* find_duplicate_code

## Git

* git_status
* git_diff
* git_log
* git_checkout
* create_branch
* commit_changes
* show_untracked_files

## Review

* review_file
* review_project
* find_code_smells
* review_architecture
* suggest_refactoring
* explain_build_error

## Memory

* add_conversation_turn
* get_conversation_history
* add_project_note
* get_project_memory

---

# ๐Ÿงช Testing

The project has been validated with:

โœ… SDK Import Tests

โœ… Streamable HTTP Transport

โœ… JSON-RPC Request Handling

โœ… MCP Tool Registration

โœ… Tool Discovery (44 Tools)

โœ… Integration Tests

โœ… OpenAI Secure Tunnel

โœ… Workspace Switching

โœ… Codebase Indexing

---

# ๐Ÿ”„ Streamable HTTP Migration

DevForge-MCP has been migrated from the legacy Server-Sent Events (SSE) transport to the latest **Streamable HTTP** transport.

Migration Highlights

* Removed legacy SSE transport
* Stateless request handling
* JSON-RPC 2.0 compliance
* Modern MCP SDK compatibility
* OpenAI Secure Tunnel support
* Improved scalability

---

# ๐ŸŒ Deployment

DevForge-MCP supports deployment using:

* Docker
* Railway
* Render

Deployment configuration files included:

* Dockerfile
* railway.toml
* render.yaml

For deployment instructions, see:

```text
DEPLOYMENT.md
```

---

# ๐Ÿ”Œ Connecting AI Assistants

## MCP Endpoint

```
https://your-domain.com/mcp
```

Compatible with:

* ChatGPT (Developer Mode)
* Claude Desktop
* MCP-compatible clients

Authentication:

```
No Authentication
```

unless configured otherwise.

---

# โš  Known Limitations

* Architecture detection is heuristic-based.
* Code review is pattern-based rather than compiler-backed.
* Duplicate code detection uses hash comparison instead of semantic analysis.
* Editing operations rely on syntax heuristics for different languages.

---

# ๐Ÿ“ˆ Roadmap

* Vector Search
* Embedding Support
* RAG Integration
* Plugin System
* Authentication
* GitHub Actions CI/CD
* Performance Metrics
* Language Server Protocol Integration

---

# ๐Ÿค Contributing

Contributions are welcome.

1. Fork the repository.
2. Create a feature branch.
3. Commit your changes.
4. Submit a Pull Request.

---

# ๐Ÿ“„ License

This project is licensed under the **MIT License**.

---

# ๐Ÿ‘จโ€๐Ÿ’ป Author

**Sanket Shakya**

* GitHub: https://github.com/Sanket2329

---

# โญ Support

If you find DevForge-MCP useful, consider giving the repository a **โญ Star** on GitHub.

It helps others discover the project and supports future development.