Skip to main content
Glama

coding-mcp

coding-mcp is a local MCP server for coding agents. It exposes safe repository reads, edits, skill reads, automatic command execution, and project test detection over stdio.

Install

python3 -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'

Related MCP server: remotessh-mcp

Configure

Copy coding-mcp.example.toml and replace the repository and skill paths. Multiple repositories are supported; every repository tool call uses its configured id.

Repository-local AGENTS.md files are resolved first. If none apply, the selected repository's agents_fallback is used. Call repo_instructions and pass its acknowledgement to repo_write, repo_patch, command_run, and test_run.

Run

.venv/bin/coding-mcp --config /absolute/path/to/coding-mcp.toml

Example MCP client configuration:

{
  "mcpServers": {
    "coding-mcp": {
      "command": "/absolute/path/to/coding-mcp/.venv/bin/coding-mcp",
      "args": ["--config", "/absolute/path/to/coding-mcp.toml"]
    }
  }
}

Agent workflow: build a project from scratch

The agent works inside an existing empty directory that has been registered as an approved repository. The MCP server does not create arbitrary directories outside its configuration.

  1. Call repo_list_repositories and select the repository id.

  2. Call repo_instructions(repository_id, path) before making changes. This reads the applicable repository AGENTS.md; when none exists, it reads the configured agents_fallback. Save the returned acknowledgement value.

  3. Call skill_list and skill_read to load relevant development instructions.

  4. Inspect the workspace with repo_list and repo_read.

  5. Create files with repo_write, passing agents_ack. Use repo_patch for targeted edits and expected_sha256 when editing a file that was previously read.

  6. Call test_detect, then test_run with the same acknowledgement. Use command_run for builds, linters, formatters, generators, or other language tooling; commands are discovered automatically and do not need configuration entries.

  7. Re-read changed files and rerun verification after fixes.

Example initial tool sequence:

repo_list_repositories()
repo_instructions(repository_id="new-app", path="")
skill_list()
skill_read(path="relevant-skill/SKILL.md")
repo_list(repository_id="new-app", path="")
repo_write(
  repository_id="new-app",
  path="pyproject.toml",
  content="...",
  agents_ack="<acknowledgement>"
)
test_detect(repository_id="new-app")
test_run(repository_id="new-app", agents_ack="<acknowledgement>")

repo_write creates files but does not create missing parent directories. Pre-create directories or explicitly allow a safe mkdir -p command and run it through command_run after acknowledging AGENTS.md.

Safety model

  • Repository paths are relative to named, approved roots.

  • Absolute paths, traversal, and symlink escapes are rejected.

  • Writes are atomic and can require an expected SHA-256 revision.

  • Exact patches must match once.

  • Commands are automatic and use shell=False; they run from the selected repository.

  • Commands have configurable timeout and output limits.

  • Because command execution is unrestricted by an allowlist, only connect trusted local agents to this server.

  • The server does not expose arbitrary filesystem paths.

Run tests with:

.venv/bin/python -m pytest

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Acts as the 'Hands and Eyes' for an Autonomous AI Agent, bridging Large Language Models and your local development environment to enable safe file manipulation, context reading, command execution, and documentation verification.
    9
    2
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides local command execution, remote SSH, interactive terminals, file read/write, and source search for AI CLI through stdio, with large output pagination and safety confirmations.
    8
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Gives MCP-compatible AI clients safe, hands-on access to local codebases: file reading/search, multi-file patches, command execution, interactive sessions, Git inspection, and coordination of local agent providers such as Antigravity and OpenCode.
    17
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables coding agents to perform workspace-confined file operations, read-only Git inspection, and structured shell commands, while requiring out-of-band human approval for mutations and external executions and maintaining an audit trail.
    3
    MIT

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/truongmanhsang/coding-mcp'

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