kera
v0.3.0Local-first HTTP reverse proxy, webhook inspector, and replay engine for AI coding agents.
Your local webhook and network antenna for AI coding agents. Capture, inspect, redact, and replay local HTTP traffic over MCP — without leaving your editor. When you build webhook handlers (Stripe, GitHub, Clerk, Shopify) with AI coding assistants like Claude Code, Cursor, or Windsurf, the debugging loop breaks down: 1. An external webhook or test request hits your local server and fails with a 500. 2. Your AI agent cannot see the incoming HTTP headers, raw payload, or exact response. 3. You waste time manually re-triggering events or copy-pasting massive curl commands to test a fix.
Summary extracted from the README.
Why Kera?
When you build webhook handlers (Stripe, GitHub, Clerk, Shopify) with AI coding assistants like Claude Code, Cursor, or Windsurf, the debugging loop breaks down:
- An external webhook or test request hits your local server and fails with a
500. - Your AI agent cannot see the incoming HTTP headers, raw payload, or exact response.
- You waste time manually re-triggering events or copy-pasting massive
curlcommands to test a fix.
Kera closes that loop locally. It sits transparently in front of your dev server, captures raw request/response bytes in SQLite, redacts secrets automatically, and gives your AI agent tools to inspect failures and replay requests after patching your code.
External Webhook / HTTP Client
│
▼
Kera Listener (127.0.0.1:4000) ──────▶ Your Local App (localhost:3000)
│
▼
Local SQLite Store (~/.kera/)
│
▼
AI Coding Agent (MCP Tools: list, inspect, replay, diff, clear)
Quickstart
Phase 1 is complete. Kera provides local capture,
provider detection, redacted inspection,
and bounded replay and JSON diffs over MCP stdio.
Build the server from a checkout using Node.js 20 or newer:
pnpm install --frozen-lockfile
pnpm run build
Replace /absolute/path/to/kera with your checkout path and point --target at your local app.
To launch the npm release instead, run npx -y kera-mcp --target http://127.0.0.1:3000 from outside
this repository; inside the checkout npm resolves the local package and the command fails.
Choose your MCP client: Claude Code · Cursor · Windsurf · Claude Desktop.
Claude Code
Install the Kera plugin from inside Claude Code (v2.1.275 or later):
/plugin install kera --marketplace mcdavidobioha/kera
The plugin launches npx -y kera-mcp. It defaults to http://localhost:3000; set
KERA_TARGET_URL before starting Claude Code to use a different target. Use /mcp to check
the connection and /kera:webhook-debugging to load the debugging skill.
To connect from a local build instead:
claude mcp add --transport stdio kera -- node /absolute/path/to/kera/dist/index.js --target http://127.0.0.1:3000
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"kera": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/kera/dist/index.js", "--target", "http://127.0.0.1:3000"]
}
}
}
Windsurf (Cascade's Open MCP config file)
{
"mcpServers": {
"kera": {
"command": "node",
"args": ["/absolute/path/to/kera/dist/index.js", "--target", "http://127.0.0.1:3000"]
}
}
}
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"kera": {
"command": "node",
"args": ["/absolute/path/to/kera/dist/index.js", "--target", "http://127.0.0.1:3000"]
}
}
}
Once connected, send webhooks or test HTTP requests to http://127.0.0.1:4000 instead of port 3000. Kera forwards requests to your app and records the exchange. For Cline and more client details, see MCP setup.
Receive external webhooks with --tunnel
Install cloudflared
on the MCP client's PATH. Add --tunnel to the server's arguments; for example, to register a
tunneled local build in Claude Code:
claude mcp add --transport stdio kera -- node /absolute/path/to/kera/dist/index.js --target http://127.0.0.1:3000 --tunnel
With the plugin, set KERA_TUNNEL=true in the environment that starts Claude Code instead.
The published kera-mcp@0.2.0 package does not support tunnels. Use the local build command
above until an npm release includes Milestone 7. Call get_tunnel_url and append your webhook
path to the returned https://…trycloudflare.com URL.
A Quick Tunnel needs no Cloudflare account, exposes every route served
through Kera, and gets a new URL each time it starts. Keep application authentication or
signature verification enabled and stop the MCP server when done. See
Public tunnels.
Example Agent Workflow
Ask your AI coding assistant:
"Check the last failed webhook in Kera, find out why it returned 500, fix my route handler, and replay the request to verify."
Your agent uses Kera's MCP tools in sequence:
list_requests({"status":500,"provider":"stripe"}) — Finds the failedPOST /webhooks/stripecapture and its event type and ID.inspect_request— Uses that ID to review redacted headers, compressed request and response bodies, and any proxy error. Uses local app logs and code to diagnose the500.- Code fix — Patches the bug in the handler.
replay_request— After approval if there may be external side effects, uses the original ID and omits body overrides. Checks the upstreamresponseStatus, then inspects the replay ID to verify the outcome.
Available MCP Tools
| Tool | Parameters | Description |
|---|---|---|
list_requests |
limit?, status?, provider?, path_contains? |
Lists compact summaries. Filter by a provider name, such as stripe or paystack. |
inspect_request |
id, raw? |
Returns headers, payload, status, and timing for one exchange (redacted & compressed by default). |
replay_request |
id, override_body?, override_headers? |
Replays once to the configured target and warns if the signed body changes without re-signing. |
diff_payloads |
id_a, id_b |
Compares two captured JSON request bodies and masks sensitive fields. |
clear_traffic |
older_than_minutes?, confirm? |
Previews the scope and deletes captures only with confirm: true. |
get_tunnel_url |
— | Returns the active public HTTPS URL or tells you how to enable or troubleshoot the tunnel. |
override_body accepts UTF-8 text or null to remove the body; override_headers maps names
to strings or arrays of strings. A capture with a truncated body requires an override.
Omit older_than_minutes to preview all stored traffic.
clear_traffic reports the requested scope even if a confirmed deletion fails.
inspect_request with raw: true shows more detail within a byte limit. By default, it still
redacts sensitive values and re-serializes JSON for display without changing the capture in SQLite.
Replays never follow redirects. diff_payloads requires complete UTF-8 JSON bodies with no
content encoding other than identity and masks recognized credential and signature fields.
Configuration & CLI Flags
| Flag | Environment Variable | Default | Description |
|---|---|---|---|
--target <url> |
KERA_TARGET_URL |
(Required) | Upstream local application URL (e.g., http://localhost:3000). |
--port <number> |
KERA_LISTEN_PORT |
4000 |
Local port Kera listens on. |
--host <addr> |
KERA_LISTEN_HOST |
127.0.0.1 |
Local bind address (localhost-only by default). |
--tunnel |
KERA_TUNNEL |
false |
Opt in to a public Quick Tunnel. Requires cloudflared and 127.0.0.1. |
--data-dir <path> |
KERA_DATA_DIR |
~/.kera |
Directory for local SQLite storage (traffic.db). |
--max-requests <n> |
KERA_MAX_STORED_REQUESTS |
1000 |
Maximum retained captures, including failures. |
--max-body-bytes <n> |
KERA_MAX_BODY_BYTES |
1048576 |
Per-body capture limit in bytes (1 MiB). |
--log-level <lvl> |
KERA_LOG_LEVEL |
info |
info and debug show readiness on stderr; warn and error suppress it. |
| — | KERA_REDACTION_POLICY |
redact |
Set allow-unredacted-raw only if raw inspection may expose sensitive data. |
Flags take precedence over environment variables. See Configuration for accepted values and storage permissions.
Security & Privacy by Default
- Local-First Storage: Captures are stored locally in
~/.kera/traffic.dbby default (0600permissions on POSIX). The proxy sends traffic to your configured target. - Automatic Secret Redaction: Default inspection masks credential headers, webhook signatures, and recognized sensitive query and body fields.
- SSRF & Loop Guards: Replays are strictly restricted to your configured target URL. Kera rejects requests with
x-kera-hopbefore accepting their bodies. - Protocol-Clean
stdio: All diagnostic logs write exclusively tostderrso MCP JSON-RPC messages onstdoutare never corrupted. - Opt-In Public Exposure: Quick Tunnels are off by default. Enabling one sends public HTTPS requests through Cloudflare to the loopback proxy.
Read docs/SECURITY.md for the full threat model and responsible-use guidelines.
Ecosystem Roadmap
Kera is built around a single decoupled core engine (src/core/) powering three progressive interfaces:
- Phase 1 —
kera-mcpon npm (Complete): Local MCP stdio server for AI coding agents. - Phase 1.5 — Tunnels and Claude Code plugin: Opt-in Cloudflare Quick Tunnels and a Claude Code marketplace plugin.
- Phase 2 —
keraCLI (Planned): Standalone terminal listener (kera listen 3000) and live TUI stream. - Phase 3 — Kera Dashboard (Planned): Local browser UI (
localhost:4040) for visual request inspection, JSON diffing, and one-click replay.
See docs/ROADMAP.md for detailed milestone tracking.
Documentation
| Guide | Description |
|---|---|
| docs/DESIGN.md | Engineering design, product phases, and technical specifications |
| docs/ARCHITECTURE.md | Module boundaries, request lifecycle, and SQLite schema |
| docs/MCP_SETUP.md | Detailed setup instructions for supported MCP clients |
| docs/CONFIGURATION.md | Flags, environment variables, storage paths, and limits |
| docs/PROVIDERS.md | Eight webhook providers, replay warnings, and extension guide |
| docs/SECURITY.md | Redaction policy, SSRF protections, and local data handling |
| docs/DEVELOPMENT.md | Local development setup, testing, and npm publishing workflow |
| docs/GITHUB_PUBLISHING.md | GitHub Actions and npm Trusted Publishing |
| assets/README.md | Brand logos, icons, and monorepo asset guidelines |
Contributing & License
Contributions, bug reports, and new webhook provider integrations are welcome! Please read CONTRIBUTING.md and AGENTS.md before submitting a pull request.
main is protected. Submit changes from a feature branch for squash merge through a pull request.
Released under the MIT License.