nazaa-arch

Stateless MCP Skills Gateway — AI skill for Claude Code

AI community

Stateless MCP & Agent Skills gateway implementing AAIF progressive disclosure (Python + Next.js) to eliminate LLM tool bloat.

How to install Stateless MCP Skills Gateway

This entry records only its repository, not the path inside it, so there is no exact command to give. Open nazaa-arch/stateless-mcp-skills-gateway and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Stateless MCP Skills Gateway does

Stateless MCP & Agent Skills gateway implementing AAIF progressive disclosure (Python + Next.js) to eliminate LLM tool bloat.

Alternatives in AI

  • Image Use — Use your ChatGPT subscription to generate images from the command line — no OPENAI_API_KEY, no gateway, no dae 373 ★
  • Mancode — AI coding agent harness 358 ★
  • ChatGPT Imagegen — Use your ChatGPT subscription to generate images from the command line — no OPENAI_API_KEY, no gateway, no dae 333 ★

README

stateless-mcp-skills-gateway

Gateway **Stateless MCP & Agent Skills** (**Python + TypeScript / Next.js**) yang mengimplementasikan pola **Progressive Disclosure** (Agentic AI Foundation / AAIF) untuk mengatasi *tool bloat* pada prompt LLM dengan memuat instruksi `SKILL.md` dan skema JSON MCP secara dinamis sesuai konteks.

Fitur Utama

  • Arsitektur 3-Tahap AAIF:
    • Tahap 0 (discover_catalog): Mengirim indeks ringkas nama + deskripsi singkat dengan jejak token minimal.
    • Tahap 1 (route_context): Memilih hanya top-K skill & tool MCP yang relevan terhadap kueri pengguna dan menghitung penghematan token secara presisi.
    • Tahap 2 (hydrate_skill, hydrate_tool_schema): Memuat penuh isi SKILL.md dan inputSchema secara stateless hanya saat dibutuhkan.
  • Stateless MCP Server (stdio JSON-RPC 2.0): Siap dihubungkan sebagai meta-gateway di depan puluhan/ratusan tools MCP.
  • Next.js Inspector UI (web/): Menampilkan metrik baseline tokens vs disclosed tokens dan daftar tool aktif.

Instalasi

git clone https://github.com/nazaa-arch/stateless-mcp-skills-gateway.git
cd stateless-mcp-skills-gateway

Contoh Penggunaan

# Simulasikan progressive disclosure dan simpan laporan untuk UI Next.js
python -m gateway.cli route --query "audit kepatuhan uu pdp pada dataset csv" --skills-dir ./skills --tools-json ./tools.json --out web/public/route-report.json

# Jalankan server MCP gateway stateless
python -m gateway.cli serve --skills-dir ./skills --tools-json ./tools.json

# Jalankan unit tests
python -m unittest discover -s tests -v

Lisensi

MIT License — lihat [LICENSE](LICENSE).