
Osmcp
io.github.KrushnaVardhanReddyPublished by GitHub account KrushnaVardhanReddyv1.0.5Updated Oct 24, 2026
A typed, policy-controlled OS capability layer for AI agents.
Overview
A local MCP server that gives AI assistants policy-bounded filesystem, git and text-processing tools on the user's machine, with an audit log.
- What you can do
- Search and inspect files: grep, find, ls, cat, stat, wc, head, tail, tree and du within an allowed root directory. Read git state: status, diff and log. Transform text and data: jq, sed and diff. When mutation is enabled, write, append, create directories, remove, move, copy and patch files. When mutation is enabled, stage, commit, checkout, branch, pull and push in git. Every call returns a typed envelope and is recorded in an append-only audit log.
- When to use it
- Useful when you want an assistant to read and edit code or files in a specific project directory on your machine, or to inspect and commit git changes, while keeping it inside a defined path boundary and tool allowlist.
- Requirements
- Runs as a local process over stdio, installed via Homebrew or built from source, or pulled as a container image. Needs a TOML policy file passed with the --policy argument that sets allowed_root, allowed_tools, mutation and limits. No accounts, API keys or environment variables are declared.
Installation
In SourceWeft
- Open Osmcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
osmcp — OS Capabilities for AI Agents
A typed, policy-controlled OS capability layer for AI agents via the Model Context Protocol (MCP).
osmcp exposes a curated set of safe filesystem, git, and text-processing tools to AI agents — all governed by a strict Policy Engine that enforces path boundaries, tool allowlists, output limits, mutation controls, and an immutable audit trail.
📖 Read the comprehensive Architecture & Design Document for a deep dive into the philosophy, safety boundaries, and design decisions behind osmcp.
[LiteLLM Compatible] [Smithery Verified]
Features
Architecture
Demo
[osmcp Demo Action] A demonstration of Claude Desktop securely editing code via osmcp, safely bounded by a TOML policy engine.
Quick Start
1. Install via Homebrew
Alternatively, build from source:
2. Configure a Policy
3. Run
The binary communicates over stdio using MCP JSON-RPC. Connect any MCP-compatible client.
Client Integrations
Claude Desktop
Add the following to your claude_desktop_config.json:
Smithery (npx)
To install osmcp for Claude Desktop automatically via Smithery:
LiteLLM
Integrate osmcp into your enterprise LLM proxy using the LiteLLM MCP Gateway.
5. Test
Policy Security Model
allowed_root— All filesystem paths are validated to be inside this root. Traversal outside is blocked withPOLICY_DENIED.allowed_tools— Only tools in this list are visible to the MCP client. Unlisted tools do not appear intools/list.allow_mutation— Whenfalse, mutating tools (write, delete, git commit) are globally blocked.- Limits — Per-invocation timeout, output byte cap, and match count cap prevent runaway operations.
Envelope Response Format
All tool responses follow a consistent typed envelope:
License
MIT
Acknowledgements
osmcp would not be possible without the incredible open-source libraries it is built upon:
Source: README.md at commit 3e5c928
Tools
0Version history
1- v1.0.5LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts