KRONVEX MCP
Official<p align="center">
<a href="https://kronvex.org/mcp">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./assets/hero-dark.svg" />
<source media="(prefers-color-scheme: light)" srcset="./assets/hero-light.svg" />
<img alt="KRONVEX MCP — Official Code-Mode Model Context Protocol Server" src="./assets/hero-dark.svg" width="100%" />
</picture>
</a>
</p>
<p align="center">
<a href="https://github.com/KRONVEX/kronvex-mcp/actions/workflows/ci.yml">
<img src="https://img.shields.io/github/actions/workflow/status/KRONVEX/kronvex-mcp/ci.yml?branch=main&style=for-the-badge&logo=githubactions&logoColor=white&label=CI" alt="CI Status" />
</a>
<a href="https://mcp.kronvex.org/mcp">
<img src="https://img.shields.io/badge/Live%20Endpoint-mcp.kronvex.org%2Fmcp-00D4FF?style=for-the-badge&logo=cloudflare&logoColor=070B14" alt="Live MCP Endpoint" />
</a>
<a href="https://kronvex.org/mcp">
<img src="https://img.shields.io/badge/NexusMCP%20Audit-100%2F100-22E53A?style=for-the-badge&logo=shield&logoColor=070B14" alt="NexusMCP Audit 100/100" />
</a>
<a href="package.json">
<img src="https://img.shields.io/badge/Token%20Savings-98.4%25%20(~650%20tok)-FFE024?style=for-the-badge&logoColor=070B14" alt="98.4% Token Reduction" />
</a>
<a href="LICENSE">
<img src="https://img.shields.io/badge/License-Apache%202.0-0D1628?style=for-the-badge&labelColor=FF2E4C" alt="Apache-2.0 License" />
</a>
</p>
<p align="center">
<a href="https://kronvex.org/mcp"><b>Interactive MCP Playground</b></a> ·
<a href="https://kronvex.org/.well-known/mcp.json"><b>Discovery Manifest</b></a> ·
<a href="#1-click-client-integration"><b>Client Setup</b></a> ·
<a href="#protocol-tools-resources--prompts"><b>Tools & Protocol</b></a> ·
<a href="#four-layer-security-architecture"><b>4-Layer Security</b></a> ·
<a href="https://github.com/KRONVEX/kronvex-api"><b>REST API</b></a> ·
<a href="https://github.com/KRONVEX/kronvex-cli"><b>CLI</b></a>
</p>
---
## Code-Mode Architecture & 4-Layer Security
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./assets/architecture-dark.svg" />
<source media="(prefers-color-scheme: light)" srcset="./assets/architecture-light.svg" />
<img alt="KRONVEX MCP Code-Mode Token Savings and 4-Layer Security Architecture" src="./assets/architecture-dark.svg" width="100%" />
</picture>
</p>
Conventional MCP servers flood an LLM context window with 50–400 redundant JSON tool schemas (`~42,000+ tokens` burned on every turn). **KRONVEX MCP** implements the **NexusMCP Code-Mode** architecture, giving AI agents full query power over KRONVEX apps, local WebGPU AI models, `SKILL.md` workflows, Top-21 research papers, services, and case studies in **just 2 read-only tools (`~650 tokens`)**.
| Mode | Transport | Exposed Tools | Context Cost | Security Audit |
| :--- | :--- | :--- | :---: | :---: |
| **Code Mode (Default)** | Streamable HTTP & `stdio` | `kronvex_search` + `kronvex_execute` (or `kronvex_query`) | **~650 tokens** | **100 / 100** |
| **Classic Mode (`--mode classic`)** | Local `stdio` | 6 dedicated read-only `kronvex_*` tools | ~1,900 tokens | **100 / 100** |
| *Traditional Multi-Tool MCP* | *Legacy SSE / stdio* | *50 – 400 individual schemas* | *~42,000+ tokens* | *Varies* |
---
## 1-Click Client Integration
Live zero-install public endpoint: **`https://mcp.kronvex.org/mcp`** (stateless Dual-Era `2025-03-26` + `2026-07-28 server/discover`, no API key required).
<table>
<tr>
<td width="50%" valign="top">
<b>Antigravity · Claude Desktop · Cursor · Windsurf · Cline</b>
<pre lang="json">{
"mcpServers": {
"kronvex": {
"type": "http",
"url": "https://mcp.kronvex.org/mcp"
}
}
}</pre>
</td>
<td width="50%" valign="top">
<b>VS Code (<code>.vscode/mcp.json</code>)</b>
<pre lang="json">{
"servers": {
"kronvex": {
"type": "http",
"url": "https://mcp.kronvex.org/mcp"
}
}
}</pre>
</td>
</tr>
</table>
### CLI Agents & Local `stdio` Mode
```bash
# Claude Code CLI (Instant Remote HTTP)
claude mcp add --transport http kronvex https://mcp.kronvex.org/mcp
# Local zero-dependency stdio server (Code Mode — default)
node bin/kronvex-mcp.mjs
# Local stdio server (Classic Mode escape hatch — 6 explicit tools)
node bin/kronvex-mcp.mjs --mode classic
```
---
## Protocol: Tools, Resources & Prompts
### JSON-RPC 2.0 Live Verification (`curl`)
```bash
# 1. Dual-Era 2026-07-28 Capability Discovery
curl -sS -X POST "https://mcp.kronvex.org/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"server/discover"}'
# 2. List Code-Mode Tools (~650 tokens total)
curl -sS -X POST "https://mcp.kronvex.org/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
# 3. Execute a Read-Only Search Query
curl -sS -X POST "https://mcp.kronvex.org/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"kronvex_search","arguments":{"query":"webgpu","limit":3}}}'
```
<details>
<summary><b>Complete MCP Surface: Tools, Resources & Prompt Templates</b></summary>
#### Tools (Code Mode)
| Tool | Annotations | Purpose |
| :--- | :--- | :--- |
| `kronvex_search` | `readOnlyHint: true`, `idempotentHint: true` | Fuzzy search across apps, local AI models, `SKILL.md` skills, landmark papers, Top-21 boards & services |
| `kronvex_execute` *(stdio)* / `kronvex_query` *(edge)* | `readOnlyHint: true`, `destructiveHint: false` | Execute read-only structured queries or sandboxed `node:vm` filtering over KRONVEX catalog datasets |
#### Resources
- `kronvex://catalog/summary` — Unified platform overview & schema index
- `kronvex://catalog/apps` — Signed Windows & Android application metadata
- `kronvex://catalog/models` — WebGPU/ONNX & GGUF local AI catalog
- `kronvex://catalog/research` — Top 21 frontier AI & computing arXiv papers
- `kronvex://catalog/top21` — 6h auto-synchronized GitHub & Hugging Face Top-21 radar
#### Prompts
- `recommend-local-ai` — Hardware-aware local LLM selector given user RAM/GPU specs
- `cite-research-paper` — Verified BibTeX & concise technical synthesis for any KRONVEX Top-21 paper
</details>
---
## Four-Layer Security Architecture
Audited continuously with **NexusMCP (`100/100`, `P0 = 0`, `P1 = 0`)**:
| Layer | Security Control | Mitigation |
| :---: | :--- | :--- |
| **L1** | **Null-Prototype `node:vm` Sandbox** | Executes read-only Code-Mode scripts inside `Object.create(null)` with strict timeout and zero access to `process`, `require`, `Buffer`, `fs`, `fetch`, or `env`. |
| **L2** | **Per-Call UUID Data Boundaries** | Wraps every upstream payload inside cryptographic `<untrusted-data-UUID>` delimiters with an explicit instruction sandwich blocking indirect prompt injection. |
| **L3** | **Strict Read-Only Tool Contract** | Every exposed tool declares `readOnlyHint: true`, `destructiveHint: false`, and `idempotentHint: true`; zero filesystem or state mutations exist. |
| **L4** | **Transport & Network Hardening** | `FilteredStdio` guarantees clean newline-delimited JSON-RPC `stdout`; Edge Worker enforces Origin CSRF checks, 4 MiB body limit, `410 Gone` retirement of legacy `/sse`, and strict `https://kronvex.org/api/*` SSRF allowlisting. |
---
## Self-Hosting & Testing
```bash
# Run full stdio (Code + Classic) & Edge Worker security test suite
npm test
# Deploy your own edge replica to Cloudflare Workers
cd worker && npx wrangler deploy
```
```text
kronvex-mcp/
├── bin/kronvex-mcp.mjs # Zero-dep local stdio MCP server (Code Mode + Classic Mode)
├── worker/
│ ├── worker.js # Stateless Cloudflare Workers Streamable HTTP MCP gateway
│ └── wrangler.toml # Ready-to-deploy Cloudflare Workers manifest
├── manifest/mcp.json # /.well-known/mcp.json discovery card
├── assets/ # Dark/Light adaptive SVG banners & architecture diagrams
├── tests/
│ ├── mcp.test.mjs # Protocol, security & UUID boundary verification suite
│ └── fixtures/ # Deterministic offline catalog snapshots
└── .github/workflows/ci.yml # Cross-OS matrix CI (Ubuntu & Windows × Node 20 & 22)
```
---
## KRONVEX Open-Source Ecosystem
<table>
<thead>
<tr>
<th align="left">Repository</th>
<th align="left">Role in KRONVEX Stack</th>
<th align="center">Live Surface</th>
<th align="center">Deps</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://github.com/KRONVEX/KRONVEX.github.io"><b><code>KRONVEX.github.io</code></b></a></td>
<td>Flagship Web Platform — Cross-Platform Apps, WebGPU AI & Top-21 Frontier Research</td>
<td align="center"><a href="https://kronvex.org"><code>kronvex.org</code></a></td>
<td align="center">Static Edge</td>
</tr>
<tr>
<td><a href="https://github.com/KRONVEX/kronvex-cli"><b><code>kronvex-cli</code></b></a></td>
<td>33-Capability Agent-Native Terminal, Live MCP Client, Security/SEO Auditors & Arcade</td>
<td align="center"><a href="https://kronvex.org/cli"><code>kronvex.org/cli</code></a></td>
<td align="center"><code>0</code></td>
</tr>
<tr>
<td><a href="https://github.com/KRONVEX/kronvex-mcp"><b><code>kronvex-mcp</code></b></a></td>
<td>Code-Mode MCP Server (98.4% Token Reduction, 100/100 NexusMCP Audit, HTTP + stdio)</td>
<td align="center"><a href="https://mcp.kronvex.org/mcp"><code>mcp.kronvex.org</code></a></td>
<td align="center"><code>0</code></td>
</tr>
<tr>
<td><a href="https://github.com/KRONVEX/kronvex-api"><b><code>kronvex-api</code></b></a></td>
<td>Unified Edge REST API v1, OpenAPI 3.1.0 Contract, Postman v2.1 & api-anything Spec</td>
<td align="center"><a href="https://api.kronvex.org/v1/health"><code>api.kronvex.org</code></a></td>
<td align="center"><code>0</code></td>
</tr>
</tbody>
</table>
---
## License & Security
- **License:** [Apache-2.0](LICENSE)
- **Security Policy:** [KRONVEX Security Policy](https://github.com/KRONVEX/.github/blob/main/SECURITY.md)
- **Author & Maintainer:** [Khalid Naami](https://github.com/khalid-naami) · [kronvex.org](https://kronvex.org)
TDQS
Scored across 2 tools
kronvex_search is a fuzzy lookup while kronvex_execute runs arbitrary JS with preloaded bindings. They are conceptually distinct, but execute can also retrieve data via kv.* bindings, so an agent may hesitate over which to use for a simple lookup. The descriptions do help resolve this by positioning search as the simple entry point.
Both tools use the same kronvex_ namespace prefix followed by a single lowercase verb (search, execute). The pattern is perfectly predictable for the two names present.
Two tools is thin for a server exposing seven distinct data domains (apps, models, skills, research, services, etc.). The code-execution approach arguably justifies a small surface, but there is no discovery or schema tool, making the set feel under-specified.
Coverage relies entirely on the agent already knowing the shape of the kv bindings and fields; there is no schema/introspection tool and no way to browse domain structure beyond fuzzy search. Read-only scope makes the absence of write operations acceptable, but the discovery gap is notable.