dpr-mcp

dpr-mcp

Provides a Model Context Protocol interface for secure, multi-agent collaboration on Git repositories, offering isolated workspaces, change requests, reviews, and approval workflows with Git as the source of truth.

Category
Visit Server

README

DPR Git-Backed MCP Collaboration Server

A standalone Model Context Protocol server that provides a safe, multi-agent, human-in-the-loop collaboration interface over a local Git repository.

Git remains the source of truth for files, commits, branches, diffs, and merge history. This server adds the collaboration control plane above it: identity, authorization, isolated workspaces, Change Requests, reviews, approval policy, conflict workflow, rollback, and provenance.

This is Phase 1: a standalone server, independently usable by Claude Code, VS Code agents, or any other MCP-compatible client. It has no dependency on the DPR multi-agent reasoning project.

Quick start

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

# Optional: configure who this server instance acts as. Defaults to
# human:$USER driving agent:claude-code.
export DPR_PRINCIPAL_ID=charan
export DPR_ACTOR_ID=claude-code

# Optional: where projects/workspaces/the collaboration DB live.
export DPR_REPOSITORY_ROOT=./data/projects
export DPR_WORKSPACE_ROOT=./data/workspaces
export DPR_DATABASE_URL=sqlite:///./data/dpr_mcp.db

dpr-mcp

The server speaks MCP over stdio. Point any MCP-compatible client (Claude Code, an MCP Inspector, a custom client) at the dpr-mcp command.

Example flow

create_project(project_id="demo", name="Demo Project")
create_workspace(project_id="demo")            -> workspace_id
create_file(workspace_id, "notes.md", "# Hi")
create_change(workspace_id, rationale="Add notes")   -> change_id
review_change(change_id, decision="APPROVED")  # as a human reviewer
merge_change(change_id)
get_provenance(change_id)

See examples/ for runnable scripts, including a multi-agent conflict scenario (examples/multi_agent_demo.py, examples/conflict_demo.py).

Architecture

See docs/architecture.md for the full picture. In short:

MCP Client
    |
    v
DPR MCP Server  (identity, authz, workspaces, changes, reviews, policy,
    |             conflicts, provenance)
    v
Git Repository  (commits, branches, diffs, merge)

Git is never reinvented: branches, commits, diffs, and merges are all delegated to the real git CLI via a single GitRepository abstraction (src/dpr_mcp/git/repository.py). Collaboration state Git doesn't model (change requests, reviews, approvals, workspaces, policies) lives in a small SQLite database (src/dpr_mcp/persistence/).

Security

File access is sandboxed to the configured project root: path traversal, absolute paths, and symlink escapes are rejected (src/dpr_mcp/files/security.py). Sensitive filenames (.env, .pem, .key, *credentials*) are blocked by default. See docs/security.md and tests/security/ for the full threat model and the tests that enforce it.

Development

pytest                 # unit + integration + security + mcp tests
ruff check src tests
mypy src

Phase 2

Phase 2 (not implemented here) will make the existing DPR multi-agent orchestrator (https://github.com/Skanda-P-R/Multi-Agent-Reasoning) an MCP client of this server, so DPR's internal agents can inspect, create, modify, review, and collaboratively integrate project artifacts through exactly this interface, with Git still holding the version-control ground truth and DPR handling reasoning/orchestration.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured