Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

GhostInTheShell

БесплатноНе проверен

A sandboxed, read-only MCP server that safely exposes system metrics, container diagnostics, and logs to AI agents with intelligent context compression and stri

GitHubEmbed

Описание

A sandboxed, read-only MCP server that safely exposes system metrics, container diagnostics, and logs to AI agents with intelligent context compression and strict security measures.

README

A Sandboxed, Read-Only System Oracle for AI Agents

Because it sees everything… but touches nothing.

Python version MCP framework Security


GhostInTheShell is an advanced Model Context Protocol (MCP) server for local DevOps, Container Diagnostics, and System Monitoring. It safely exposes metrics, container states, and logs to AI agents while minimizing token usage and preventing malicious directory traversal.

Unlike raw wrapper servers, it provides Diagnostics Intelligence and Strict Sandboxing. Instead of dumping raw command outputs that exhaust LLM tokens, it employs contextual compression to return highly targeted diagnostic intelligence.

🌟 Key Features

Security First Model

Built to be strictly read-only:

  • Symlink Traversal Blocker: Protects against malicious directory escapes (/../).
  • Whitelist Paths: Hard-blocks system sensitive directories like /etc and /root.
  • Virtual Log Registry: Log reading is done via aliases (e.g., app_error -> /tmp/app.log) so the LLM doesn't even know the real disk paths.

Diagnostics Intelligence Layer

Computes states locally before hitting the LLM:

  • analyze_containers: Parses Docker states for Crash Loops, OOMKilled flags, and healthcheck failures.
  • check_cpu_anomalies: Uses exact process uptimes to find runaway loops holding threads.
  • check_port_conflicts: Finds exactly what process is stealing port 3000 during your web dev.
  • check_log_errors: Scans the tail of safe logs for spikes of exceptions/fatals.

Context Compression Engine

A custom logging parser that helps prevent LLM context exhaustion:

  • Strips variable noise (timestamps, IDs)
  • Deduplicates identical screaming loops
  • Truncates giant lines (like massive JSON stack traces) to a tight 500-character cap.

🛠 Installation & Usage

Requires uv and Python 3.10+.

# Clone the repository
git clone https://github.com/pronzzz/GhostInTheShell-mcp.git
cd GhostInTheShell-mcp

# Install as a uv tool globally
uv tool install ./

Or run directly from source:

GHOST_ALLOWED_DIRS="/var/log,/tmp" uv run ghostinshell

Adding to Claude Desktop

To grant Claude Desktop access to your machine's diagnostics securely, edit your claude_desktop_config.json:

{
  "mcpServers": {
    "ghostinshell": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/ghostinshell",
        "run",
        "ghostinshell"
      ]
    }
  }
}

🧰 Tools Provided to the LLM

  • get_system_health: High-level multi-platform CPU, Disk, and RAM status.
  • list_processes(sort_by="cpu|memory"): Details on top running processes.
  • docker_status: Raw Docker daemon read-only status.
  • analyze_containers: Intelligent diagnosis of crash loops, OOM flags, and resource limits.
  • check_cpu_anomalies: Detects runaway processes based on load and uptime.
  • check_memory_pressure: Identifies system memory hogs.
  • check_disk_pressure: Warnings for saturated root disks.
  • list_available_virtual_logs: Look up registered safe-to-read log files.
  • tail_log(alias, lines): Returns token-compressed tail of a file.
  • check_log_errors(alias): Rapid regex anomaly detection for error spikes.
  • check_port_conflicts: Detect processes attempting to bind identical local ports.

👩‍💻 Development

Want to add new safe capabilities? Check out the GUIDE.md and CONTRIBUTING.md.

# Install development dependencies
uv pip install -e ".[dev]"

# Run tests
uv run pytest tests/

We test heavily against:

  • Sandbox symlink jailbreaks
  • Log compression deduplication logic
  • OS cross-platform wrappers (Darwin vs Linux)
  • Port conflict topological structures.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

from github.com/pronzzz/GhostInTheShell-mcp

Установка GhostInTheShell

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/pronzzz/GhostInTheShell-mcp

FAQ

GhostInTheShell MCP бесплатный?

Да, GhostInTheShell MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для GhostInTheShell?

Нет, GhostInTheShell работает без API-ключей и переменных окружения.

GhostInTheShell — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить GhostInTheShell в Claude Desktop, Claude Code или Cursor?

Открой GhostInTheShell на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Opencode Omniroute Plugin

OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc

GitHub Actionsавтор: GitHub Actions
62

Roblox Studio

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

paralovавтор: paralov

Antigravity Drawio

MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.

S-SUJAN-Sавтор: S-SUJAN-S

Fetch

Web content fetching and conversion for efficient LLM usage.

автор: Community

AWS KB Retrieval

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

modelcontextprotocolавтор: modelcontextprotocol

Spring AI MCP Server

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

автор: Community

llm-analysis-assistant

A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also

xuzexin-hzавтор: xuzexin-hz

MCP-Agent

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

lastmile-aiавтор: lastmile-ai

Spring AI MCP Client

Provides auto-configuration for MCP client functionality in Spring Boot applications.

автор: Community

mcp.natoma.ai

A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)

автор: Community

Compare GhostInTheShell with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai