Repository navigation
Quickstart and MCP Setup
Kera runs as a local MCP stdio process. Your MCP client launches Kera, Kera opens an HTTP
listener on 127.0.0.1:4000, and every request sent to that listener is forwarded to your app and
captured.
For a terminal-only workflow, see Terminal CLI. To inspect captured traffic in a browser, see Local Dashboard. Tunneling for external webhook delivery is opt-in.
- Node.js 20 or newer (Node 22 recommended; CI tests Node 20 and 22).
-
pnpm 10 if building from a checkout. The exact version is pinned in
package.json. - Your local application running on a known URL, for example
http://127.0.0.1:3000. - An MCP-capable client: Claude Code, Cursor, Windsurf, Claude Desktop, or Cline.
npx -y kera-mcp --target http://127.0.0.1:3000
kera-mcp@0.3.0and later on npm includeget_tunnel_urland--tunnel. Calltools/listto confirm the tool is present in your client.
npm install -g kera-terminal
kera mcp --target http://127.0.0.1:3000With kera-terminal@0.4.0, use "command": "kera" and
"args": ["mcp", "--target", "http://127.0.0.1:3000"] in any client configuration below.
Kera must be started once per capture port. Do not configure two Kera instances with the same
--port.
Install from npm for kera-mcp@1.1.0 and its eight tools. Directory listings can lag behind npm:
| Listing | Where | Notes |
|---|---|---|
| Glama | https://glama.ai/mcp/servers/mcdavidobioha/kera | Hosted listing with tool schemas and online inspector |
| Official MCP Registry | io.github.mcdavidobioha/kera |
Currently lists kera-mcp@0.3.0
|
| npm | https://www.npmjs.com/package/kera-mcp | Current release used by npx -y kera-mcp
|
On Claude Code v2.1.275 or later:
/plugin install kera --marketplace mcdavidobioha/kera
The plugin bundles the MCP server definition and the webhook debugging skill.
- Use
/mcpto check the connection. - Use
/kera:webhook-debuggingto load the debugging skill. - The plugin runs
npx -y kera-mcp. - Default target:
http://localhost:3000. SetKERA_TARGET_URLin the environment that launches Claude Code to change it. - Tunnel default:
KERA_TUNNEL=false. SetKERA_TUNNEL=truebefore starting Claude Code to enable the Quick Tunnel.
claude mcp add --transport stdio kera -- \
npx -y kera-mcp --target http://127.0.0.1:3000With the tunnel:
claude mcp add --transport stdio kera -- \
npx -y kera-mcp --target http://127.0.0.1:3000 --tunnelUse /mcp inside Claude Code to confirm the server is connected.
{
"mcpServers": {
"kera": {
"type": "stdio",
"command": "npx",
"args": ["-y", "kera-mcp", "--target", "http://127.0.0.1:3000"]
}
}
}Add the entry to .cursor/mcp.json for the project or ~/.cursor/mcp.json for your user.
{
"mcpServers": {
"kera": {
"type": "stdio",
"command": "npx",
"args": ["-y", "kera-mcp"],
"env": {
"KERA_TARGET_URL": "http://127.0.0.1:3000",
"KERA_LISTEN_PORT": "4000",
"KERA_TUNNEL": "false"
}
}
}
}Use args flags instead of env if you prefer:
{
"mcpServers": {
"kera": {
"type": "stdio",
"command": "npx",
"args": ["-y", "kera-mcp", "--target", "http://127.0.0.1:3000"]
}
}
}Set KERA_TUNNEL to "true" to enable the tunnel. KERA_TUNNEL accepts only true or false.
In Cascade's MCP menu, choose Open MCP config file and add the entry to
mcp_config.json. Refresh the MCP server list afterward.
{
"mcpServers": {
"kera": {
"command": "npx",
"args": ["-y", "kera-mcp", "--target", "http://127.0.0.1:3000"]
}
}
}Edit claude_desktop_config.json:
{
"mcpServers": {
"kera": {
"command": "npx",
"args": ["-y", "kera-mcp", "--target", "http://127.0.0.1:3000"]
}
}
}Restart Claude Desktop after saving.
Open MCP Servers β Configure β Configure MCP Servers and add the entry to
cline_mcp_settings.json.
{
"mcpServers": {
"kera": {
"command": "npx",
"args": ["-y", "kera-mcp", "--target", "http://127.0.0.1:3000"],
"disabled": false,
"autoApprove": []
}
}
}autoApprove is intentionally empty. Replay and clear operations can have real side effects and
should require approval.
Add --tunnel to Kera's arguments:
npx -y kera-mcp --target http://127.0.0.1:3000 --tunnelOr set the environment variable in the MCP client config:
{
"mcpServers": {
"kera": {
"command": "npx",
"args": ["-y", "kera-mcp"],
"env": {
"KERA_TARGET_URL": "http://127.0.0.1:3000",
"KERA_TUNNEL": "true"
}
}
}
}Tunnel mode requires the listener to stay on the literal address 127.0.0.1. Kera rejects
--host localhost, ::1, 0.0.0.0, or any other interface when --tunnel is enabled.
Current npm releases can download and cache cloudflared automatically when you enable tunneling.
See Configuration and Flags for binary setup and overrides.
Call get_tunnel_url and give me the public URL.
When active, the tool returns:
{
"ok": true,
"enabled": true,
"url": "https://random-words.trycloudflare.com",
"provider": "cloudflared",
"targetUrl": "http://127.0.0.1:3000"
}Append your webhook path, for example:
https://random-words.trycloudflare.com/webhooks/stripe
- Edge startup can take up to 30 seconds after the executable is ready.
get_tunnel_urlreturnsenabled: falsewith a "starting" message until the URL is assigned and the first edge connection is registered. - The public URL is random and changes every session.
- If
cloudflaredis missing or offline, local capture and all other MCP tools keep working.get_tunnel_urlreports the failure with a safe, actionable message. - On shutdown, Kera sends
SIGTERM, waits 2 seconds, then usesSIGKILLif needed. - The tunnel is public and unauthenticated. Read Security and Privacy before enabling it.
External Webhook βββΆ Tunnel βββΆ 127.0.0.1:4000 βββΆ Local App & SQLite βββΆ stdio MCP βββΆ Agent
optional,
--tunnel
Expanded view:
ββββββββββββββββββββ
β External webhook β
ββββββββββ¬ββββββββββ
β HTTPS
βΌ
ββββββββββββββββββββββββββββββββββββ
β Cloudflare Quick Tunnel β β only with --tunnel
β https://β¦trycloudflare.com β
ββββββββββ¬ββββββββββββββββββββββββββ
β forwards to loopback
βΌ
ββββββββββββββββββββββββββββββββββββ
β Kera listener β
β 127.0.0.1:4000 β
ββββββββ¬ββββββββββββββββββ¬ββββββββββ
β forward β capture
βΌ βΌ
ββββββββββββββββ βββββββββββββββββββββββββββ
β Local App β β ~/.kera/traffic.db β
β :3000 β β raw bytes + metadata β
ββββββββββββββββ βββββββββββββ¬ββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββ
β Kera MCP server (stdio) β
β kera / kera-mcp β
βββββββββββββ¬ββββββββββββββ
β JSON-RPC
βΌ
βββββββββββββββββββββββββββ
β AI coding agent β
βββββββββββββββββββββββββββ
Steps:
- A provider sends an HTTPS request to the Quick Tunnel URL (or a local client sends directly to
127.0.0.1:4000). - The tunnel forwards the request to Kera's loopback listener.
- Kera forwards it to the configured target (for example
127.0.0.1:3000). - Kera stores the request and response, preserving raw request bytes and multi-value headers.
- The agent calls MCP tools over
stdin/stdout; Kera returns redacted, bounded results. - After a code fix, the agent calls
replay_requestto send the saved request again.
- Start your app.
- Start or reconnect the MCP client.
- Send a request to
http://127.0.0.1:4000, not directly to your app. - Ask the agent to call
list_requests. - Pass a returned
idtoinspect_request. - If tunneling is enabled, call
get_tunnel_urland send a request to the returned URL.
Example prompt:
"Call
list_requestswith{"limit": 5}and tell me what Kera captured."
Expected result: a list containing the request's method, path, status, provider label, and timing.
| Symptom | Cause / fix |
|---|---|
EADDRINUSE on startup |
Another process owns the port. Stop it or choose another --port. |
Kera's target points to its own listener |
--target resolves to Kera's own host/port. Change the target or listen port. |
Tunnel cannot find or download cloudflared
|
Check Configuration and Flags for binary setup for your Kera version. |
| Tunnel says it is starting | Wait and call get_tunnel_url again; a first-use download can add to the edge startup time. |
| Tunnel failed / offline | Local capture still works. Check internet access and Cloudflare connectivity, then restart. |
Tunnel rejected listenHost
|
Use the literal 127.0.0.1; other bind addresses are not allowed with tunneling. |
| No captures appear | Traffic was sent to your app's port instead of Kera's 4000, or the client never started Kera. |
| MCP client cannot connect | Check the client's MCP logs. Startup diagnostics go to stderr, never stdout. |
Permission error for ~/.kera
|
The data directory must be private (0700 on POSIX). Fix permissions or use --data-dir. |
Agent sees [REDACTED]
|
Expected. Redaction is on by default. See Security and Privacy. |
More configuration detail: Configuration and Flags. Exact tool contracts: MCP Tools Reference.
- MCP Tools Reference
- Webhook Providers and Plugins
- Security and Privacy
- Privacy and Data Handling
- Architecture and Contributing
- Roadmap
- GitHub repository
- Issues
- Releases
- npm:
kera-mcpΒ·kera-terminal - Glama listing
-
Official MCP Registry (
io.github.mcdavidobioha/kera) - Contributing guide
- Security policy