kody-hq/kody
A Cloudflare Workers MCP server for shared agent state, code, and automation
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Kody is a TypeScript Nx monorepo using npm workspaces, with shared code in packages/shared. The origin entrypoint, packages/worker/src/index.ts, handles OAuth before MCP and MCP before static assets. Webhooks, including GET subscription challenges, are handled in the Worker’s fetch path before remaining site requests reach TanStack Start via packages/worker/start/http-entry.ts. Vite-built client assets are served through the ASSETS binding.
The origin delegates MCP and other Durable Object services to packages/platform-worker, package apps and the invoke API to packages/runtime-worker, and cron and JobManager to packages/jobs-worker, which calls back via JobsHost. Runtime also receives package-app traffic directly on kody.run. D1 is the database, KV holds session and OAuth state, and platform Durable Objects hold MCP state. The extension surface is the OAuth-protected HTTP MCP endpoint, centered on search and Code Mode execute.
Key Capabilities & Differentiators
Kody gives individuals and teams a persistent store for package code, credentials, memories, and jobs across compatible MCP hosts. State is isolated by account, with organizations, teams, and grants for collaboration. search discovers capabilities and Code Mode execute invokes them, favoring a compact MCP interface over a large catalog of individually advertised tools.
Packages are both reusable code and a publishing unit: package apps have an invoke API, and saved packages can be reviewed through lightweight merge requests against protected main, including codemod changes. Publishing builds the app’s profile, and the app acts as the publisher. Kody complements an agent host rather than replacing it: there is no specified model backend or local inference stack. ChatGPT is identified as a likely primary host, not as evidence of parity across MCP clients.
Trade-offs & Limitations
Compared with running standalone MCP servers, Kody is a better fit when several hosts need the same durable state, credentials, and package lifecycle. Standalone servers are simpler when each host needs only a few fixed tools. Kody’s compact interface avoids exposing every capability as a separate tool, but moves more responsibility to discovery and code execution; test that workflow in each client rather than assuming HTTP MCP support is enough.
Centralizing credentials and execution makes team grants and publisher identity operational concerns. Check what access a published app has and how it should be handled when its publisher’s role changes. The Worker split gives ingress, runtime, and scheduling distinct responsibilities, but deployments and incident diagnosis must account for service bindings, state, and job callbacks. Source availability is not a commercial license: the root contains LICENSE, but its terms are unspecified here.
Hardware & Deployment Guide
Local development requires Node.js 26 or newer and npm. Run npm install and npm run dev; the CLI defaults to localhost:3742 and selects the next free port if needed. Wrangler provides the local Workers runtime and D1. The setup does not require a model inference stack, and the root scripts include separate client, Worker, and mock Cloudflare development paths.
Production uses the Cloudflare Worker fleet, so plan for service bindings, D1, KV, Durable Objects, and the origin/package-app routing split rather than a single Node.js service. The root exposes a deploy script; docs/contributing/getting-started.md covers setup and environment variables. Since v2026.12.01, automations, publish builds, and nested execute calls follow the stored execution-context chain by default. That lets execution stay on configured machines without implying that ingress, OAuth, or state storage also move off Cloudflare.
/mcp centers on search and Code Mode execute.main and lightweight merge requests for saved packages, including codemod changes.execute calls follow the stored execution-context chain by default.Teams using multiple compatible MCP hosts that need persistent memory, governed credentials, reviewable packages, and scheduled execution, and can operate a Cloudflare Workers deployment.
You only need a small static MCP toolset, want an agent harness with model inference, or require a deployment with no Cloudflare service dependencies.
Quick Start & Installation
npm install npm run dev
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| kody ★ | 1k | +39 | TypeScript | — | A Cloudflare Workers MCP server for shared agent state, code, and automation |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +801 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.9k | +324 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/kody-hq/kody.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about kody
How does an agent host connect, and what should we test?
/mcp endpoint. The host needs to work with Kody’s search and Code Mode execute flow, not just display a static list of tools. Verify OAuth sign-in and one representative package invocation in each intended client before rollout.Does Kody need a GPU, and what drives runtime overhead?
Can we self-host Kody commercially?
LICENSE, but the license terms are unspecified here. A deploy script establishes a deployment path, not permission for commercial operation, modification, or redistribution. Review the actual license and relevant Cloudflare service terms before committing to a commercial deployment.When is Kody preferable to a set of standalone MCP servers?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy