DEV Community

Cover image for Building an Agent-Native Open-Source Stack from Scratch: Web Platform, Zero-Dep CLI, Code-Mode MCP & Edge API
khalid naami for kronvex

Posted on

Building an Agent-Native Open-Source Stack from Scratch: Web Platform, Zero-Dep CLI, Code-Mode MCP & Edge API

Most developer platforms treat the website, CLI, REST API, and AI agent layer as four separate afterthoughts. When we built KRONVEX, we designed all four surfaces together as one cohesive, zero-dependency open-source stack under Apache-2.0.

Here is how the four pieces fit together and how you can test every surface live in seconds without creating an account or API key.


1. The Web Platform (kronvex.org)

Our public web platform serves as the visual hub, interactive documentation, and live playgrounds for the CLI, REST API, and MCP server, alongside machine-readable discovery endpoints (/robots.txt, /sitemap.xml, and /.well-known/mcp.json).


2. Zero-Dependency Agent-Native CLI (kronvex-cli)

Pure Node.js (>=18), 0 npm dependencies, and ~55ms cold start. It ships 33 capabilities — including a regex secret-leak scanner with CI exit codes (scan), a live HTTP security + SEO/GEO auditor (audit), SHA-256 verification, and local Ollama hardware benchmarking.

Every command supports both an interactive 24-bit TrueColor terminal UI for humans and deterministic --json / stream-json output for CI pipelines and AI agents:

# macOS / Linux
curl -fsSL https://kronvex.org/cli/install.sh | sh

# Windows (PowerShell)
irm https://kronvex.org/cli/install.ps1 | iex

# Or run straight from source
git clone https://github.com/KRONVEX/kronvex-cli.git
cd kronvex-cli && node bin/kronvex.mjs doctor
Enter fullscreen mode Exit fullscreen mode

3. Code-Mode MCP Server (kronvex-mcp)

Standard MCP servers often expose 50–400 individual JSON tool schemas, burning 30,000–42,000+ input tokens on every turn.

kronvex-mcp uses Code Mode to collapse discovery and querying into 2 read-only tools (~650 tokens — a 98.4% reduction), while keeping a --mode classic escape hatch and local zero-dependency stdio support.

Test the live stateless HTTP endpoint directly with curl:

curl -sS -X POST "https://mcp.kronvex.org/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Enter fullscreen mode Exit fullscreen mode

Or connect it in one command:

claude mcp add --transport http kronvex https://mcp.kronvex.org/mcp
Enter fullscreen mode Exit fullscreen mode

4. Unified Edge REST API (kronvex-api)

A single zero-dependency Cloudflare Workers gateway powers both api.kronvex.org and mcp.kronvex.org at 4–5ms edge execution time, exposing 17 public /v1/* endpoints backed by formal OpenAPI 3.1.0 and Postman v2.1 contracts.

curl -sS https://api.kronvex.org/v1/health
Enter fullscreen mode Exit fullscreen mode

What's Next

All four repositories are open source under Apache-2.0 on github.com/KRONVEX. In our next post, we will walk through our agent skills architecture and production starter templates.

If you test any of the endpoints or CLI commands, let me know what breaks or what you would improve!

Top comments (0)