# MCP Gateway

> MCP Gateway — expose toutes les skills Botte comme outils MCP. Découverte automatique, schémas d'entrée, transport stdio. Compatible Claude Code, Codex, Cursor, et tout client MCP.

- Skill: `zedarvates/mcp-gateway` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx skillmds@latest add zedarvates/mcp-gateway`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zedarvates/mcp-gateway/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: zedarvates (https://skillmd.com/u/zedarvates)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zedarvates/mcp-gateway

---


# mcp_gateway — Botte Secrète MCP Gateway

Expose l'ensemble des skills Botte Secrète comme outils MCP (Model Context Protocol).
Un seul point d'entrée pour que n'importe quel agent (Claude Code, Codex, Cursor, etc.)
découvre et utilise toutes les capacités de Botte.

## Concept

```
Client MCP (Claude Code / Codex / Cursor)
    │
    ▼
mcp_gateway (stdio JSON-RPC)
    │
    ├── security_scanner    → scan . --format json
    ├── fast_context        → explore . "find imports"
    ├── meta_harness        → run plan agents
    ├── botte_nn            → predict model input
    ├── solvers             → assign / pack / schedule
    ├── context_budget      → optimal context budget
    ├── nlp_deterministic   → classify / extract
    └── … (auto-discover)
```

## Usage

```bash
# Test en local
python -m skills.mcp_gateway.server

# Avec un client
python -m skills.mcp_gateway.cli call security_scanner '{"root": ".", "fail_on": "critical"}'
python -m skills.mcp_gateway.cli call fast_context '{"root": ".", "query": "find imports"}'
python -m skills.mcp_gateway.cli list
```

## Configuration

Fichier `.botte-cache/mcp_gateway.json` :

```json
{
  "enabled_skills": ["security_scanner", "fast_context", "solvers"],
  "excluded_skills": []
}
```

Si non configuré, toutes les skills disponibles sont exposées.

## Architecture

```
mcp_gateway/
├── server.py     — MCP server stdio (JSON-RPC 2.0)
├── registry.py   — Découverte des skills disponibles
├── dispatcher.py — Dispatch tools/call vers la bonne skill
├── cli.py        — CLI pour test
└── test_mcp_gateway.py
```

