{"slug": "building-an-agent-native-open-source-stack-from-scratch-web-platform-zero-dep", "title": "Building an Agent-Native Open-Source Stack from Scratch: Web Platform, Zero-Dep CLI, Code-Mode MCP & Edge API", "summary": "The KRONVEX project released an agent-native open-source stack under Apache-2.0, combining a web platform, a zero-dependency Node.js CLI, a Code Mode MCP server, and a Cloudflare Workers edge API. The kronvex-mcp server collapses tool discovery and querying into two read-only tools at roughly 650 tokens, which the team says is a 98.4% reduction from the 30,000–42,000+ input tokens typical MCP servers consume per turn. The CLI ships 33 capabilities with a ~55ms cold start, and the edge gateway serves 17 public /v1/* endpoints at 4–5ms execution time.", "body_md": "Most developer platforms treat the website, CLI, REST API, and AI agent layer as four separate afterthoughts. When we built **[KRONVEX](https://kronvex.org)**, we designed all four surfaces together as one cohesive, zero-dependency open-source stack under **Apache-2.0**.\n\nHere is how the four pieces fit together and how you can test every surface live in seconds without creating an account or API key.\n\nOur 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`).\n\n`kronvex-cli`\nPure 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.\n\nEvery command supports both an interactive 24-bit TrueColor terminal UI for humans and deterministic `--json` / `stream-json` output for CI pipelines and AI agents:\n\n```\n# macOS / Linux\ncurl -fsSL https://kronvex.org/cli/install.sh | sh\n\n# Windows (PowerShell)\nirm https://kronvex.org/cli/install.ps1 | iex\n\n# Or run straight from source\ngit clone https://github.com/KRONVEX/kronvex-cli.git\ncd kronvex-cli && node bin/kronvex.mjs doctor\n```\n\n`kronvex-mcp`\nStandard MCP servers often expose 50–400 individual JSON tool schemas, burning **30,000–42,000+ input tokens** on every turn.\n\n**`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.\n\nTest the live stateless HTTP endpoint directly with `curl`:\n\n```\ncurl -sS -X POST \"https://mcp.kronvex.org/mcp\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}'\n```\n\nOr connect it in one command:\n\n```\nclaude mcp add --transport http kronvex https://mcp.kronvex.org/mcp\n```\n\n`kronvex-api`\nA 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.\n\n```\ncurl -sS https://api.kronvex.org/v1/health\n```\n\nAll four repositories are open source under **Apache-2.0** on [github.com/KRONVEX](https://github.com/KRONVEX). In our next post, we will walk through our agent skills architecture and production starter templates.\n\nIf you test any of the endpoints or CLI commands, let me know what breaks or what you would improve!", "url": "https://wpnews.pro/news/building-an-agent-native-open-source-stack-from-scratch-web-platform-zero-dep", "canonical_source": "https://dev.to/kronvex/building-an-agent-native-open-source-stack-from-scratch-web-platform-zero-dep-cli-code-mode-mcp-4gbc", "published_at": "2026-11-29 13:05:55+00:00", "updated_at": "2026-11-29 13:14:35.647803+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools", "ai-infrastructure"], "entities": ["KRONVEX", "kronvex-cli", "kronvex-mcp", "kronvex-api", "Cloudflare Workers", "Ollama", "GitHub", "Claude"], "also_reported_by": [], "takeaway": "Collapsing MCP tool discovery and querying into two read-only Code Mode tools cut per-turn input tokens from 30,000–42,000+ to about 650, a 98.4% reduction, with a --mode classic escape hatch retained.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/building-an-agent-native-open-source-stack-from-scratch-web-platform-zero-dep", "markdown": "https://wpnews.pro/news/building-an-agent-native-open-source-stack-from-scratch-web-platform-zero-dep.md", "text": "https://wpnews.pro/news/building-an-agent-native-open-source-stack-from-scratch-web-platform-zero-dep.txt", "jsonld": "https://wpnews.pro/news/building-an-agent-native-open-source-stack-from-scratch-web-platform-zero-dep.jsonld"}}