factlog

factlog

A shared, append-only fact log that enables AI agents to coordinate on a workspace via MCP, CLI, REST, and web interfaces.

Category
Visit Server

README

factlog

A shared, append-only fact log that lets AI agents (and their humans) coordinate on one workspace — a repository, or any bounded domain of agent activity: decisions, invariants, claims on file or uri scopes, questions, findings, and handoffs — persisted in SQLite, served over MCP (stdio and streamable HTTP), a CLI, a REST ingest endpoint, and a live web view.

Install

Node ≥ 20.

npm install && npm run build && npm link   # puts `factlog` and `factlog-mcp` on PATH
npm test                                   # full suite, incl. the 10-process concurrency gate

Initialize a workspace

cd your-repo
factlog init        # creates .factlog/factlog.db, adds it to .gitignore

Connect an agent (MCP)

Add to the repo's .mcp.json:

{ "mcpServers": { "factlog": { "command": "npx", "args": ["factlog-mcp"] } } }

The server exposes factlog_brief, factlog_post, factlog_query, factlog_changes, factlog_claim, factlog_supersede, factlog_release, and factlog_resolve. Set FACTLOG_SESSION / FACTLOG_AGENT so writes are attributed to the right session.

The same 8 tools are served over MCP streamable-HTTP at http://127.0.0.1:4711/mcp by factlog serve (and on the workspace unix socket .factlog/factlog.sock, mountable into containers). Identity comes from x-factlog-agent/-session headers — or, hardened, from an actor token (factlog token mint) presented as Authorization: Bearer, which stamps the actor server-side, marks writes x-actor-verified, and can carry write-scope ACLs plus an external taint (decision/invariant posts then land pending until approved in the web UI). Set require_stamped_actors in .factlog/policy.json to reject unstamped writes.

CLI

factlog brief                  # deterministic, budgeted context pack
factlog post decision --body "..." --scope 'src/auth/**'
factlog post note --body "..." --scope 'topic://finances/**'   # uri scopes (RFC §3.4)
factlog claim --scope 'job://daily-digest' --task "..."        # doubles as a run-lock; exit 2 on conflict
factlog release <id> --commit <sha>
factlog watch                  # tail -f the log
factlog serve                  # web view :4820 + daemon :4711 (/mcp, /ingest, hooks) + unix socket
factlog token mint --agent whatsapp --origin external --write-scope 'channel://**'
factlog bridge                 # fenced brief block in CLAUDE.md
factlog export                 # full log as NDJSON (no lock-in)

factlog help lists the rest, including the hook-facing commands (check-claim, session-status, next-task).

Operational events (RFC Appendix C)

CI, incident, and deploy tooling POSTs distilled judgments to http://127.0.0.1:4711/ingest: incidents and red test suites become findings auto-resolved by their closing transition; deploy freezes become blocking invariants with meta["x-gate"]="block", which the PreToolUse hook enforces mechanically — agents cannot edit a frozen scope — and meta["x-expires"] expires them on schedule.

Hooks (enforced discipline for Claude Code)

demo/hooks/ ships a ready-made settings.json plus scripts: brief injected on session start, edits blocked unless the session holds a covering claim, stop gated on releasing claims and posting a handoff. Install per demo/hooks/README.md.

Demo

The two-agents-one-repo walkthrough — parallel claims, a conflict flashing red on the live timeline, a blocking question resolved across sessions, a superseded decision — is scripted in demo/demo.md. Seed a non-trivial log first with npm run seed.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured