Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Shell Sieve

FreeNot checked

An MCP server that executes shell commands and intelligently compresses, filters, and extracts errors from verbose output to save AI agent context windows. It s

GitHubEmbed

About

An MCP server that executes shell commands and intelligently compresses, filters, and extracts errors from verbose output to save AI agent context windows. It strips ANSI, collapses repetitive lines, and always preserves error information.

README

shell-sieve

An MCP server and CLI wrapper that executes shell commands and intelligently compresses, filters, and extracts errors from verbose output to save AI agent context windows.

License Language Status PyPI version License: MIT MCP Server

Demo

🎯 Why?

AI coding agents frequently exhaust their context windows when running verbose commands like npm install or pytest, leading to hallucinations or dropped errors. Existing tools either blindly truncate output (losing the stack trace) or dump everything; Shell Sieve intelligently strips ANSI, collapses repetitive progress lines, and guarantees error extraction.

Target audience: AI agent developers, users of Claude Code/Cursor/Cline, and CLI power users who want clean, actionable command output without the noise.

✨ Features

  • ANSI stripping and smart line collapsing (e.g., progress bars)
  • Error-aware truncation (always keeps the last N lines and any detected stack traces/errors)
  • Native MCP Server implementation for seamless integration with Cursor, Claude Desktop, and Cline

🚀 Quick Start

# Install
pip install shell-sieve

# Run
shell-sieve --help

📦 Installation

From Source

git clone https://github.com/YOUR_USERNAME/shell-sieve.git
cd shell-sieve
# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest -v

🎬 Demo

The GIF above was recorded using Charm VHS:

vhs < demo.tape

📖 Usage

# Show help
shell-sieve --help

# Common usage examples
shell-sieve --example

🏗️ Architecture

graph LR
    A[Input] --> B[Core Engine]
    B --> C[Output]
    B --> D[Plugins]
    D --> E[Extensions]

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repo
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT © 2026 — See LICENSE for details.


If this project helped you, please ⭐ star it!

Made with ❤️ and AI

from github.com/yulinlina/shell-sieve

Install Shell Sieve in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install shell-sieve

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add shell-sieve -- uvx --from git+https://github.com/yulinlina/shell-sieve shell-sieve

Step-by-step: how to install Shell Sieve

FAQ

Is Shell Sieve MCP free?

Yes, Shell Sieve MCP is free — one-click install via Unyly at no cost.

Does Shell Sieve need an API key?

No, Shell Sieve runs without API keys or environment variables.

Is Shell Sieve hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Shell Sieve in Claude Desktop, Claude Code or Cursor?

Open Shell Sieve on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Shell Sieve with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs