Skip to content

Guide

How to use Reasons Library

What is a Reasons Library?

A Reasons Library is a knowledge base where beliefs have justifications — they can depend on other beliefs. When a foundational belief is retracted, everything that depends on it automatically goes OUT. This is called a Truth Maintenance System (TMS).

Key concepts

Authentication

Sign in with Google at /login to get a 24-hour JWT token. Use it as a Bearer token for API calls and MCP connections.

Claude Code (MCP)

claude mcp add reasons-library \
  --transport streamable-http \
  --header "Authorization: Bearer <token>" \
  https://library.reasonsforge.com/mcp

Available MCP tools:

ToolDescription
list_domainsList knowledge bases with belief counts
list_beliefsPaginated listing with IN/OUT filter
get_beliefSingle belief with justifications
explain_beliefTrace justification chain to premises
searchText/ID substring search
propose_beliefSubmit new belief for review
propose_retractionSubmit retraction for review
list_proposalsList proposals by status

REST API

All endpoints are under /api and require a Bearer token.

curl https://library.reasonsforge.com/api/domains \
  -H "Authorization: Bearer <token>"

See the README for the full API reference.