local-repo-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_MODE | No | read / write / test / ship | read |
| AUDIT_LOG | No | Audit log path | ./audit.log |
| REPO_ROOT | No | Repository root | . |
| POLICY_RULES | No | Policy rules file | ./config/policy.yaml |
| SANDBOX_CPUS | No | Docker sandbox CPUs | 2 |
| SESSIONS_FILE | No | Session storage path | ./sessions.json |
| MAX_FILE_BYTES | No | Max file read size (bytes) | 200000 |
| SANDBOX_MEMORY | No | Docker sandbox memory | 2g |
| MAX_PATCH_BYTES | No | Max patch size (bytes) | 200000 |
| SANDBOX_TMPFS_MB | No | Sandbox tmpfs size (MB) | 512 |
| TEST_TIMEOUT_MAX | No | Max test timeout (seconds) | 300 |
| ALLOW_DIRTY_WORKTREE | No | Allow patch on dirty worktree | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| repo_list_filesD | – |
| repo_read_fileD | – |
| repo_search_codeD | – |
| repo_git_statusD | – |
| repo_git_diffD | – |
| repo_apply_patchA | Atomically apply one validated unified text patch. One patch may contain multiple repository text-file targets. All targets are validated before mutation and Git applies the patch as one locked operation, so a target failure does not leave a partial multi-file edit. |
| repo_git_commitA | Create one local Git commit for allowlisted pending changes. Disabled unless ALLOW_GIT_COMMIT is enabled (GUI: allow Git commit). Requires write or test mode. Does not push, amend, reset, rebase, checkout, or skip hooks. Sensitive paths are never staged. |
| repo_run_testA | Run one or more allowlisted repository verification commands. The allowlist covers test/build/lint/check profiles for common Python,
Go, Node, Maven, and Gradle repositories. Every started command returns command, exit_code, stdout, stderr, duration and truncation metadata. Timeout/output-limit termination is a structured failed result so captured evidence is not discarded. Commands may emit |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/cloud-Xolt/local-repo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server