Coding MCP Server
Enables AI agents to perform Git operations and manage workflows, including repository status checks, validation, and structured command output for Git-based projects.
Click on "Install 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., "@Coding MCP Serverlist all my projects and show the git status for the 'api' project"
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.
Coding MCP Server
Production-oriented multi-project MCP server for coding agents, designed to manage projects under a shared root directory (for example, /projects).
Features
Multi-project discovery with persistent project registry
Safe file CRUD and patch application (structured edits + unified diff input)
Git operations with validation and structured command output
Safe command execution with allowlisted executables and timeout controls
MCP tools, resources, and prompts
Binary-safe file resource endpoints (text or base64 blob)
Shared business core for STDIO and HTTP transports
Structured JSON response envelope with request IDs and timing
Audit logging for mutating operations
Response Contract
Success:
{
"ok": true,
"project_id": "abc123",
"operation": "read_file",
"data": {},
"warnings": [],
"errors": [],
"request_id": "uuid",
"duration_ms": 12
}Failure:
{
"ok": false,
"operation": "write_file",
"error_code": "SECURITY_ERROR",
"message": "Operation blocked for protected path",
"details": {},
"request_id": "uuid",
"duration_ms": 7
}Setup
cp .env.example .env
npm install
npm run buildRun
CLI command (published/global usage):
npx coding-mcp serve --transport http --host 0.0.0.0 --port 4000 --mode streamablecoding-mcp serve --transport http --host 0.0.0.0 --port 4000 --mode streamableInitialize registry from current projects root:
cd /projects
coding-mcp initInitialize registry from a specific root:
coding-mcp init /projectsAdd and remove roots in registry:
coding-mcp add /srv/repos
coding-mcp remove /srv/reposSTDIO:
npm run dev:stdioHTTP:
npm run dev:httpCLI serve with overrides:
npm run dev:serve -- --transport http --host 0.0.0.0 --port 4000 --mode streamable --projects-root /projects --projects-root /srv/reposCLI serve with SSE mode:
npm run dev:serve -- --transport http --host 127.0.0.1 --port 3001 --mode sseConfiguration
Use environment variables or a JSON/YAML config file passed with MCP_CONFIG_PATH.
Key vars:
PROJECTS_ROOTPROJECTS_ROOTS(comma-separated list; preferred)ENABLE_HTTPENABLE_STDIOHTTP_HOSTHTTP_PORTMAX_FILE_SIZEMAX_OUTPUT_SIZECOMMAND_TIMEOUT_MSALLOWED_COMMANDSPROTECTED_PATHSLOG_LEVEL
MCP Resources
project://indexproject://{project_id}/treeproject://{project_id}/package-jsonproject://{project_id}/readmeproject://{project_id}/git-statusproject://file/{project_id}/{path}project://file-meta/{project_id}/{path}
project://file/{project_id}/{path} behavior:
Text files are returned as
text.Binary files are returned as base64
blobwith MIME type.Output is bounded by configured max output size.
Multi-root Discovery
The server can discover projects from multiple parent directories.
Set
PROJECTS_ROOTS=/projects,/srv/reposin environment or config.Optionally pass repeated
--projects-rootflags in CLI serve mode.Projects from all configured roots are indexed into one registry.
Example MCP Client Config
Cursor (STDIO)
{
"mcpServers": {
"coding-mcp": {
"command": "node",
"args": ["/absolute/path/to/coding-mcp/dist/main/stdio.js"],
"env": {
"PROJECTS_ROOT": "/projects",
"ENABLE_STDIO": "true",
"ENABLE_HTTP": "false"
}
}
}
}Claude Desktop (STDIO)
{
"mcpServers": {
"coding-mcp": {
"command": "node",
"args": ["/absolute/path/to/coding-mcp/dist/main/stdio.js"],
"env": {
"PROJECTS_ROOT": "/projects"
}
}
}
}Generic HTTP MCP Client
{
"mcpServers": {
"coding-mcp-http": {
"url": "http://your-host:3000",
"headers": {}
}
}
}Tool Coverage
Implemented tools include project discovery, file/directory operations, search/analysis, git workflows, and command execution (run_build, run_test, run_lint, run_command_safe).
Tests
npm testFuture Improvements
Full hunk-level unified diff patch application engine
OpenTelemetry export hooks
Auth/RBAC for exposed HTTP deployments
License
MIT License
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/kieutrongthien/coding-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server