dev-env-mcp
Provides tools to inspect Git working-tree status, staged and unstaged diffs, and recent commit history for registered projects.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dev-env-mcp
A Python stdio MCP server for inspecting local repositories and debugging Maven test failures. The assistant can read source, inspect Git changes, and run tests and Checkstyle against a fresh snapshot of the working tree. Edits are made through the developer’s editor or the assistant’s existing editing tools.
Install and connect
Use Python 3.11 or later and Git. The Maven tools also require a running Docker engine configured for Linux containers. From the server repository, with a Python virtual environment active, run:
python -m pip install -e .
docker build -f Dockerfile -t dev-env-maven:local examples/free-shippingThe image build runs the trusted sample’s Maven build with network access and caches its dependencies. Subsequent MCP test and lint calls use that cache offline. For a different Maven project, build the Dockerfile with that trusted project's directory as the context and supply the resulting tag with --image TAG. Use a context that excludes secrets and generated output. Rebuild the image when the build needs new dependencies. Each server process uses one runner image.
Register the server with a stdio-capable MCP client. Adapt these absolute paths to your checkout and virtual environment. On Windows the launcher is typically .venv\Scripts\dev-env-mcp.exe.
{
"mcpServers": {
"dev-env": {
"command": "/absolute/path/to/.venv/bin/dev-env-mcp",
"args": [
"--project", "shipping=/absolute/path/to/dev-env-mcp/examples/free-shipping",
"--project", "server=/absolute/path/to/dev-env-mcp"
]
}
}
}Repeat --project NAME=PATH for each directory the assistant may access. For Git operations, register the checkout root containing its own .git entry. The example shipping directory is a standalone Maven project inside the server checkout.
Related MCP server: mcp-dev-tools
Debug the example
Select the debug_failing_test MCP prompt with project shipping, or ask the assistant:
Investigate the failing shipping test. Show the expected and actual behavior, propose the smallest fix, and verify it on a working copy.
The documented rule grants free shipping at a subtotal of at least $50. Surefire identifies ShippingPolicyTest.exactThresholdQualifies, where the service returns false for 5,000 cents. Searching for shipsFree leads to ShippingPolicy.java. Changing subtotalCents > 5000 to subtotalCents >= 5000 includes the threshold and preserves the behavior on either side. Rerun ShippingPolicyTest#exactThresholdQualifies, then the full suite and Checkstyle.
To exercise this sequence over MCP, including the edit and Git diff, run the integration test. It makes a disposable Git checkout and leaves the fixture ready for another investigation.
DEV_ENV_DOCKER_TEST=1 python -m unittest discover -s tests -vIn PowerShell set $env:DEV_ENV_DOCKER_TEST = "1" before running the Python command. Omit the environment variable for the inspection, Git, and boundary tests that run without Docker.
Tools
Tool | Inputs and result |
| Lists the configured project names. |
| Takes |
| Takes |
| Takes |
| Takes |
| Takes |
| Takes |
Command results include exit_code, output, truncated, and timed_out. A nonzero Maven exit code carries the build or assertion diagnostics. Check the outcome before treating a run as verification.
Resources
Discover project names at dev://projects/index. Substitute a registered name for {project} in the resource templates.
URI | Contents |
| Project-relative directory and file paths |
| READMEs and text documentation under docs directories |
| Maven, Gradle, and Checkstyle configuration files |
| Up to 8 KiB of Surefire text from the latest test run in this session, or a diagnostic if no report was produced |
| The latest 20 Git commit IDs, dates, and subjects |
Execution and limits
Register working directories controlled by your local account. The Git tools invoke the host Git CLI and trust the checkout’s Git administrative data, including repository-local configuration and linked worktree metadata. Git output can include any tracked file in that repository.
File inspection and build snapshots omit symlinks, special files, generated directories such as
targetandnode_modules, and dot-prefixed entries except.mvn. File tools use forward-slash relative paths on all hosts. Source snapshots include uncommitted and untracked visible files.Each Maven run gets a temporary copy in a non-root Linux container with networking disabled, a read-only root filesystem, bounded temporary storage, two CPUs, a 1.5 GiB memory limit, and a 256-process limit. The server streams the snapshot into Docker. The checkout, host credentials, and Docker socket are outside the build container.
The server serializes builds, allows 180 seconds per Maven command and 30 seconds per Git command, and retains the last 24,000 output bytes. Reads and searches cap text files at 2 MiB. Read pages, search results, and directory resources have a 16,000-character budget. Searches and snapshots have a 64 MiB budget, and directory walks stop at 20,000 entries.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted coding agent: start, follow up on and stop tasks that can open GitHub pull requests.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Live GitHub repo AST X-Ray, 42 coding-agent DoD gates, Git worktree guards & brownfield baselines.
Git hosting for agents: edit repos in caissons, open pull requests, read issues and CI.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables safe repository inspection and Docker-sandboxed command execution via MCP, with optional Codex handoff for implementation tasks.2Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides AI coding assistants with tools to run git status, recent commits, tests, and linter on a real repository.ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to inspect local and remote repositories through sandboxed tools that surface project overviews, structure, dependency audits, Git churn hotspots, and a heuristic health score. It also supports safe GitHub issue searching and creation with built-in duplicate preflight checks, while blocking sensitive files, binary content, and path traversal attacks.MIT
- AlicenseAqualityBmaintenanceEnables MCP-compatible AI assistants to inspect projects, processes, ports, logs, HTTP endpoints, Git state, and development databases for local runtime diagnostics.7MIT