Getting Started
1. Add https://mcp.lograck.ai/mcp to your MCP client and sign in when it asks; no key needed.
2. For scripts, CI or clients that can't sign in, go to API Keys and create a key named after the tool (the name becomes the writer on its logs). A typical client needs logs:read, logs:write and racks:read.
3. Ask your agent to load your LogRack context. A good habit to encourage in your prompts: "call get_context or catch_up at session start, and log decisions, tasks, and a session summary before you finish."
Connect via MCP
MCP is how LLMs reach your shared memory. The fastest route is the hosted server at https://mcp.lograck.ai/mcp — nothing to install.
Sign in with OAuth
If your client supports remote MCP servers, give it the URL and nothing else. It will send you here to sign in, pick a workspace, and choose what the app may do — then it is connected. Manage or disconnect it later under Connected Apps.
https://mcp.lograck.ai/mcpClaude Desktop and claude.ai
Customize → Connectors → Add custom connector, paste the URL, sign in. On Team and Enterprise plans an Owner adds it once under Organization settings → Connectors, and each member then finds it under Customize → Connectors, clicks Connect and signs in.
ChatGPT
Add the URL as a custom MCP server with OAuth and sign in when it asks. ChatGPT connects with sign-in (OAuth); it cannot send an API key header.
Or bring an API key
Clients that let you set a header can skip OAuth. The key you send is the key your session writes with, so your logs land in your workspace under that key's name.
Claude Code
claude mcp add --transport http lograck https://mcp.lograck.ai/mcp \
--header "Authorization: Bearer lrk_your_api_key"Cursor
{
"mcpServers": {
"lograck": {
"url": "https://mcp.lograck.ai/mcp",
"headers": { "Authorization": "Bearer lrk_your_cursor_key" }
}
}
}MCP Tools
| Tool | What it does |
|---|---|
log_write | Write a log to the shared memory (task, idea, thought, memory, context, note). Supports racks, tags, pinning, TTL, and supersession. |
log_search | Browse/search by kind, tags, rack, status, writer, or full text. |
log_get | One log by ID, with its supersession chain. |
log_update | Mark a task done, pin/unpin, retag. |
log_delete | Permanently delete a log (prefer supersession for edits). |
get_context | Token-budgeted context pack: pinned → matches → recent. Call at session start. |
catch_up | Everything written since your cursor — the agent-to-agent handoff primitive. |
list_racks / create_rack | Manage per-project piles (log_write auto-creates racks by name). |
REST API
Write a log
/api/logslogs:writecurl -X POST https://app.lograck.ai/api/logs \
-H "Authorization: Bearer lrk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"kind": "task",
"title": "Ship the racks page",
"body": "Portal needs a racks browser.",
"tags": ["ui"],
"rack": "lograck-pivot"
}'{
"success": true,
"data": {
"acceptedCount": 1,
"rejectedCount": 0,
"logs": [
{
"id": "log_abc123",
"kind": "task",
"title": "Ship the racks page",
"body": "Portal needs a racks browser.",
"tags": ["ui"],
"status": "open",
"pinned": false,
"rackId": "rack_xyz",
"source": { "client": "claude-code" },
"supersededById": null,
"timestamp": "2026-07-29T14:30:00.000Z",
"ingestedAt": "2026-07-29T14:30:00.120Z",
"expiresAt": null
}
],
"rackId": "rack_xyz",
"rackCreated": true
}
}Batch writes: send { "logs": [ ... ] } (max 100). Ephemeral logs: add ttlSeconds or expiresAt.
# Bodies are immutable — update content by superseding the old log
curl -X POST https://app.lograck.ai/api/logs \
-H "Authorization: Bearer lrk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"kind": "memory",
"body": "User prefers yarn (not npm) in all projects.",
"supersedes": "log_old456"
}'Search logs
/api/logslogs:readcurl "https://app.lograck.ai/api/logs?kind=task&status=open&rack=lograck-pivot" \
-H "Authorization: Bearer lrk_your_api_key"| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
kind | string | No | — | Filter by kind (task, idea, thought, memory, context, note). Can be repeated. |
tags | string | No | — | Comma-separated tags; a log must have all of them. |
status | string | No | — | Task status filter: "open" or "done". |
pinned | boolean | No | — | Only pinned (true) or unpinned (false) logs. |
source | string | No | — | Filter by the client that wrote the log (e.g. "claude-code", "portal"). |
q | string | No | — | Full-text search over title + body (websearch syntax). Max: 200 chars. |
rack / rackId | string | No | — | Filter by rack name or ID. |
includeSuperseded | boolean | No | false | Include logs that were replaced by newer versions. |
includeExpired | boolean | No | false | Include logs past their ttlSeconds or expiresAt. |
limit | number | No | 100 | Maximum number of results. Max: 200. |
cursor | string | No | — | Opaque cursor for pagination. Use nextCursor from the previous response. |
Context pack
/api/contextA ready-to-paste markdown bundle of the most relevant logs under a token budget: pinned first, then matches for q, then recent. Every log carries a provenance line and the header frames the content as data, not instructions.
curl "https://app.lograck.ai/api/context?rack=lograck-pivot&maxTokens=4000" \
-H "Authorization: Bearer lrk_your_api_key"{
"success": true,
"data": {
"pack": "# LogRack context pack\n...provenance-labeled markdown...",
"tokenEstimate": 3800,
"logCount": 24,
"truncated": false,
"generatedAt": "2026-07-29T14:31:00.000Z"
}
}Catch up (delta sync)
/api/sync# First call: what was written in the last 24 hours (or since=7d, or an ISO time)
curl "https://app.lograck.ai/api/sync?since=24h" \
-H "Authorization: Bearer lrk_your_api_key"
# Later: everything written since the cursor, oldest first
curl "https://app.lograck.ai/api/sync?cursor=eyJ0cyI6..." \
-H "Authorization: Bearer lrk_your_api_key"Export everything
/api/exportlogs:readThe whole workspace as NDJSON, streamed as a download: racks first, then every log oldest first (superseded and expired ones too), then an end line with the counts; a file without it was cut short. 10 exports an hour per workspace. Settings → Workspaces has the same export as a button.
# Every rack and log of the workspace, superseded and expired included
curl -OJ "https://app.lograck.ai/api/export" \
-H "Authorization: Bearer lrk_your_api_key"
# One JSON object per line:
# {"type":"rack","id":"...","name":"lograck-pivot",...}
# {"type":"log","id":"...","kind":"memory",...,"rack":"lograck-pivot","supersedes":[]}
# {"type":"end","racks":3,"logs":128,"exportedAt":"..."}Update / delete
/api/logs/:id# Mark a task done / pin a log (only status, pinned, tags are mutable)
curl -X PATCH https://app.lograck.ai/api/logs/log_abc123 \
-H "Authorization: Bearer lrk_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "status": "done" }'DELETE /api/logs/:id removes a log permanently. Racks live under /api/racks.
TypeScript SDK
The TypeScript client (@lograck/api 0.2) is not on npm yet; use the REST API above. The 0.1 release on npm was built for an older API and cannot write logs.
Concepts
| Concept | Meaning |
|---|---|
kind | What a log is: task (something to do), idea, thought (reasoning worth keeping), memory (durable fact), context (session state — usually with a TTL), or note. |
supersede | Bodies are immutable. To update content, write a new log with supersedes: oldId; the old one drops out of default reads but stays in the chain. Rack, pin, tags and task status carry over unless you set them. Supersede the current version: superseding a log that was already replaced is rejected with the current version's id. |
racks | One per project. Logs without a rack are loose. Racks are auto-created when you write with a new rack name. |
pinned | Pinned logs surface first in context packs. |
source | Provenance on every log: which client wrote it (the API key's or connected app's name, or "portal"), plus optional model and session identifiers. |
expiry | Logs with ttlSeconds or expiresAt drop out of default reads once past due (add includeExpired=true to see them). Nothing is deleted unless you or an agent delete it. |
Authentication & Scopes
Scripts and REST calls send an API key in the Authorization header with the Bearer scheme; connected apps send the token they got when you signed in. Keys are workspace-scoped and hashed at rest.
| Scope | Grants |
|---|---|
logs:write | Write logs (POST /api/logs), update status/pin/tags, delete |
logs:read | Search logs, context packs, catch-up sync, stats |
racks:read / racks:write | List/read and create/update/delete racks |
keys:read / keys:write | List, create, and revoke API keys (admin) |
Rate Limiting
Writing logs (POST /api/logs) is limited per API key or connected app (1,000 requests a minute); searches, context packs and catch-up are limited per workspace (600 requests a minute). Over the limit you get 429 Too Many Requests with a Retry-After header; log writes also carry X-RateLimit-* headers.