# Pash Mcp Server

> Standalone MCP server with PASH compression. Saves ~87% LLM tokens via dynamic tool registration.

- **Type:** MCP server
- **Install:** `agentstack add mcp-akynzh-pash-mcp-server`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AkynZH](https://agentstack.voostack.com/s/akynzh)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 1.0.0
- **License:** MIT
- **Upstream author:** [AkynZH](https://github.com/AkynZH)
- **Source:** https://github.com/AkynZH/pash-mcp-server

## Install

```sh
agentstack add mcp-akynzh-pash-mcp-server
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Felix Standalone MCP Server

**Standalone MCP Server with PASH Compression (Phoenix Architecture)**

Этот проект представляет собой минимальный, production-ready Model Context Protocol (MCP) сервер, извлеченный из экосистемы Felix. Он разработан для предоставления внешних инструментов (Cursor, Claude Desktop и др.) с максимальной экономией токенов благодаря встроенному PASH-сжатию.

## Особенности (Phoenix Architecture)
- **Чистое ядро**: Никаких скрытых зависимостей от монолитной кодовой базы Феликса.
- **Динамическая регистрация**: Автоматическое сканирование директории `mcp_engines` и загрузка инструментов из `manifest.json`.
- **PASH Compression**: Интеллектуальное сжатие тяжелых JSON-ответов (экономия >80% токенов) с прозрачным возвратом хэша.
- **Zero-config запуск**: Работает через `stdio` с конфигурацией через `.env`.

## ⚠️ Безопасность и Runtime
Для разработчиков, вносящих изменения в серверную часть (`sse_server.py`, тесты): строго соблюдайте паттерн **[Surgical Process Cleanup by Port](docs/RUNTIME_SAFETY.md)**. Глобальное убийство процессов (`taskkill /IM`) категорически запрещено, так как оно обрывает агентскую сессию.

## Architecture Boundaries

**Felix MCP Standalone** is a self-contained product. It shares **principles, not code** with the internal Felix core (`C:\Users\53\Felix`).

- **Product Judge** (in `src/product_judge.py`) is an independent implementation of deterministic validation. It shares the principle of "structural validation before output" with the internal Mirror Forge Synthesis, but has zero shared code by design. This is intentional technical debt prevention.
- **Cognitive Loop and PASH compression** are implemented directly in this repository. They do not import from or depend on the internal Felix core. This ensures the product can be deployed, tested, and maintained independently.

**Why this matters:** When you install this package, you get a complete, autonomous system. No hidden dependencies on internal infrastructure.

## Установка

```bash
git clone https://github.com/AkynZH/felix-mcp-standalone.git
cd felix-mcp-standalone
pip install -e .
```

## Конфигурация

Скопируйте `.env.example` в `.env` и настройте пути:

```env
MCP_ENGINES_DIR=./mcp_engines
LOG_LEVEL=INFO
PASH_MIN_THRESHOLD=500
```

Создайте директорию `mcp_engines` и поместите в неё подпапки с `manifest.json` и исполняемыми файлами ваших MCP-серверов.

## Запуск

```bash
python server.py
```

Сервер запустится в режиме `stdio` и будет готов к подключению через совместимые клиенты (например, Claude Desktop).

## Структура проекта
```
felix-mcp-standalone/
├── server.py                  # Точка входа (FastMCP)
├── src/
│   ├── config.py              # Pydantic-конфигурация
│   ├── router.py              # Сканер и JSON-RPC прокси
│   └── compressor.py          # Ядро PASH-сжатия
├── config/
│   └── manifest.example.json  # Пример манифеста
└── tests/                     # Изолированные тесты
```

## Odysseus Integration Status

This repository serves as the cognitive core designed to be paired with an interface like Odysseus.
- ✅ **Completed & Shipped:** Cognitive Loop, PASH compression, Product Judge, and heuristic routing are fully implemented and tested.
- 🗺️ **Roadmap:** Native, one-click UI integration with the Odysseus agent (combining local reflexes with this cognitive core) is currently in active development. 

*We believe in shipping what works and clearly labeling what is being built.*

## Лицензия
MIT License (c) 2026 AkynZH

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AkynZH](https://github.com/AkynZH)
- **Source:** [AkynZH/pash-mcp-server](https://github.com/AkynZH/pash-mcp-server)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Versions

- **1.0.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-akynzh-pash-mcp-server
- Seller: https://agentstack.voostack.com/s/akynzh
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
