Skip to main content
Glama

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.

Related MCP server: MCP Server

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.

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    A Model Context Protocol server that enables Large Language Models to interact with Git repositories through a robust API, supporting operations like repository initialization, cloning, file staging, committing, and branch management.
    28
    3,703
    232
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol server that provides Git version control operations as structured tools for AI coding agents. It enables LLMs to programmatically manage repositories through actions like committing changes, rolling back code, and comparing diffs.
    10
    Apache 2.0
  • A
    license
    C
    quality
    D
    maintenance
    A Model Context Protocol server that provides 29 Git operations and advanced workflows, enabling AI assistants and developers to safely manage version control.
    30
    452
    1
    ISC

View all related MCP servers

Related MCP Connectors

  • Git-backed platform for skills, tools, and context for AI agents

  • A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…

  • Shared, permission-aware company context for AI agents, with provenance, approvals and audit.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Charan-Sharan/dpr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server