Kept for developers
Kept is an MCP server and a JSON API on the Mac that runs it. Your agent asks, and gets a short answer that cites the exact passage in your team's runbooks and docs. Three read-only tools, one revocable key per tool.
On this page
What it looks like
Claude Code calls Kept’s ask tool and gets numbered citations, each quoting the passage it came from. Every line below is from the MCP docs.
claude mcp add --transport http kept http://127.0.0.1:47822/mcp --header "Authorization: Bearer $KEPT_KEY" claude Using Kept, how do we roll back a deploy? kept: ask (MCP) question: "How do we roll back a deploy?" kind: grounded, 2 citations Roll back with the deploy tool's previous release, then confirm the error rate drops within 10 minutes [1]. Page the payments on-call if it doesn't [2]. [1] payments-runbook.md “To roll back, run deploy rollback payments --to previous…” [2] on-call.md “If the error rate hasn't recovered within 10 minutes, page…”
Set it up
- Turn on the API. In Kept, Settings → Sharing, under Apps and AI tools. It’s off by default.
- Make a key for the tool. It starts with
kept_and is shown once. Put it inKEPT_KEYrather than a config file. - Add Kept to your agent. Every agent needs the address
http://127.0.0.1:47822/mcpand the headerAuthorization: Bearer $KEPT_KEY.
claude mcp add --transport http kept http://127.0.0.1:47822/mcp \
--header "Authorization: Bearer $KEPT_KEY"codex mcp add kept --url http://127.0.0.1:47822/mcp --bearer-token-env-var KEPT_KEY{
"mcpServers": {
"kept": {
"url": "http://127.0.0.1:47822/mcp",
"headers": { "Authorization": "Bearer ${env:KEPT_KEY}" }
}
}
}{
"servers": {
"kept": {
"type": "http",
"url": "http://127.0.0.1:47822/mcp",
"headers": { "Authorization": "Bearer ${input:kept-key}" }
}
},
"inputs": [
{ "id": "kept-key", "type": "promptString", "description": "Kept API key", "password": true }
]
}{
"context_servers": {
"kept": {
"url": "http://127.0.0.1:47822/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}{
"mcpServers": {
"kept": {
"httpUrl": "http://127.0.0.1:47822/mcp",
"headers": { "Authorization": "Bearer $KEPT_KEY" }
}
}
}{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"kept": {
"type": "remote",
"url": "http://127.0.0.1:47822/mcp",
"headers": { "Authorization": "Bearer {env:KEPT_KEY}" },
"oauth": false
}
}
}It also works with Windsurf, Cline, LM Studio, Goose and Claude Desktop, and any client that speaks Streamable HTTP with custom headers. Setup for every client
Make your agent reach for it
Agents decide when to call a tool from its description. To make yours use Kept without being told, add a line to its instructions file (CLAUDE.md, AGENTS.md, .cursor/rules and so on):
For questions about our runbooks, policies or internal docs, ask the kept MCP server and cite its sources.The three tools
- ask
- A short answer from your documents with numbered citations. A local model writes it, so it takes 5 to 60 seconds; pinned answers come back at once. If your docs don’t cover the question, it says so.
- search
- The passages closest to a query, best first, without writing an answer. Fast, and good when your agent wants the exact wording.
- list_sources
- The documents Kept answers from, with their category and status.
The HTTP API
The same things for scripts and apps on the Mac: read-only JSON at http://127.0.0.1:47822/v1, with the same keys and limits as MCP.
curl http://127.0.0.1:47822/v1/ask \
-H "Authorization: Bearer $KEPT_KEY" \
-H "Content-Type: application/json" \
-d '{"question": "How do we roll back a payments deploy?"}'const answer = await fetch("http://127.0.0.1:47822/v1/ask", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KEPT_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ question: "How do we roll back a payments deploy?" }),
signal: AbortSignal.timeout(90_000),
}).then((r) => r.json());answer = requests.post(
"http://127.0.0.1:47822/v1/ask",
headers={"Authorization": f"Bearer {KEPT_KEY}"},
json={"question": "How do we roll back a payments deploy?"},
timeout=90,
).json(){
"kind": "grounded",
"answer": "Roll back with the deploy tool's previous release, then confirm the error rate drops within 10 minutes [1].",
"citations": [
{
"number": 1,
"source": "payments-runbook.md",
"category": "Runbooks",
"quote": "To roll back, run deploy rollback payments --to previous…"
}
]
}Each key gets 120 requests a minute, 20 of them questions. Endpoints, limits and error codes
Safe by default
- This Mac only. Kept listens on 127.0.0.1 and refuses requests from websites.
- Read-only. No tool or endpoint can add, change or delete anything.
- A key per tool, shown once, stored only as a hash, revocable at any time.
If your agent uses a cloud model, the answers and passages Kept returns go to that model’s provider, like anything else in its context. Use a local model, such as one in LM Studio, to keep everything on the Mac.
In the docs
Kept is coming to your Mac.
It launches with a 14-day free trial, no card needed. Leave your email and you’ll get one message when it’s out.