Skip to main content

🛡️ mcp-chronoshell

PyPI version Python versions License: MIT

The safety net for autonomous AI agents.

mcp-chronoshell is a Model Context Protocol (MCP) server that grants AI agents the ability to execute terminal commands with a built-in "Undo Button." By utilizing hyper-fast, state-reverting snapshots, agents can safely write code, manipulate files, and run scripts without the risk of permanently breaking your local workspace.

🧠 How It Works: The Snapshot Architecture

When an agent is connected to Chronoshell, it gains access to a safe execution loop. The server exposes three primary tools to the LLM:

  1. 📸 run_safe_command (The Executor): Before executing a shell command, the server takes a millisecond-fast snapshot of the current working directory, ignoring heavy directories (e.g., node_modules, .venv, .git).
  2. revert_workspace (The Undo Button): If the command exits with an error or causes unintended side effects, the agent can call this tool to instantly roll the directory back to its exact previous state.
  3. 🗑️ commit_workspace (The Garbage Collector): If the command succeeds and the agent validates the output, it calls this tool to clear the snapshot cache and save disk space.

✨ Core Optimizations & Safety

  • Zero-Latency Backups: Uses hardcoded blocklists and OS-level I/O optimizations to take snapshots in milliseconds, preventing the LLM from timing out.
  • Concurrent Multi-Agent Safety: Injects cryptographic UUIDs into snapshot IDs, guaranteeing race-condition safety when multiple agents invoke commands simultaneously.
  • Smart Symlink Evasion: Dynamically sniffs out and bypasses Windows Junctions and Reparse points to prevent infinite-loop crashes.
  • Actionable Error Routing: Captures OS-level permission denials and STDERR outputs, routing them directly back into the LLM's context window so it can learn and adapt.

🚀 Installation

You can run mcp-chronoshell instantly via uv (recommended) or install it globally using pip:

# Using uv (Recommended)
uvx mcp-chronoshell

# Using pip
pip install mcp-chronoshell

🔌 Connecting to AI Clients

1. Google Antigravity (Workspace Local)

To give a specific Antigravity project access to the safety net, create a .agents/mcp_config.json file in the root of your project:

{
  "mcpServers": {
    "chronoshell": {
      "command": "uvx",
      "args": ["mcp-chronoshell"]
    }
  }
}

2. Claude Desktop (Global)

Add the server to your Claude Desktop configuration file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "chronoshell": {
      "command": "uvx",
      "args": ["mcp-chronoshell"]
    }
  }
}

3. Custom LangChain / Python Agents

Chronoshell is fully compatible with langchain-mcp-adapters. Simply initialize the StdioServerParameters pointing to the uvx command to bind the tools to your custom ReAct or LangGraph agents.

🤝 Contributing

Contributions are welcome! If you have ideas for new features, performance optimizations, or find a bug, please open an issue or submit a pull request.

📄 License

This project is licensed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_chronoshell-0.1.3.tar.gz (159.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_chronoshell-0.1.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_chronoshell-0.1.3.tar.gz.

File metadata

  • Download URL: mcp_chronoshell-0.1.3.tar.gz
  • Upload date:
  • Size: 159.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mcp_chronoshell-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9f11de42cb0bfe57917dfbfa1aa00ebda02d36a03702195aea704d7eb61129a2
MD5 2612726b2d5f01758d6510ff509e4b64
BLAKE2b-256 c8d1f626fb5f36a1bbc3f86dfb64010d2a0d9dc6afea5edb0274024a7186071c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_chronoshell-0.1.3.tar.gz:

Publisher: publish.yml on ANSHUMANSINGH987/mcp-chronoshell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_chronoshell-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_chronoshell-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4831a3b5fca3a069c772cab597915e819ed71b4c09585ab9891bdcb47738c8f
MD5 d1936e19baec5c9c8e36cd0e6522dca3
BLAKE2b-256 474fbb96852ef700113488c420889986c88d3ef8955c3aafd61aa9b81ecca9f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_chronoshell-0.1.3-py3-none-any.whl:

Publisher: publish.yml on ANSHUMANSINGH987/mcp-chronoshell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page