{
  "name": "base-layer",
  "display_name": "Base Layer: a specification over MCP",
  "description": "Serves a Base Layer specification to an MCP client. The specification contains plain-text claims in three layers about how a person reasons, communicates and decides. It is built from their own writing. The server runs locally over stdio and sends nothing to Base Layer. It serves a build made with `baselayer run` (the older, quicker pipeline). A cited build is not yet served automatically. You add its served.txt to a system prompt by hand. Read more at https://www.base-layer.ai/llms.txt",
  "version": "0.5.0",
  "transport": [
    "stdio"
  ],
  "install": {
    "pip": "pip install git+https://github.com/agulaya24/BaseLayer.git",
    "build": "baselayer run <your-export-or-folder>",
    "claude_code": "claude mcp add --scope user --transport stdio base-layer -- baselayer-mcp",
    "command": "baselayer-mcp",
    "notes": "Not on PyPI; the baselayer name there belongs to another project. Requires Python 3.10 or later, git, and ANTHROPIC_API_KEY. For a person other than you, use a fresh data root and register the server in one project only: claude mcp add --scope local -e MEMORY_SYSTEM_ROOT=<that root> --transport stdio base-layer -- baselayer-mcp"
  },
  "resources": [
    {
      "uri": "memory://specification",
      "name": "Specification",
      "description": "The three layers (ANCHORS, CORE, PREDICTIONS) and a short manifest of tools. Some clients truncate long MCP instructions. This resource always returns the full text.",
      "mimeType": "text/plain",
      "aliases": [
        "memory://identity"
      ],
      "alias_note": "memory://identity is a deprecated alias and will be removed."
    }
  ],
  "tools": [
    {
      "name": "recall_memories",
      "description": "Find facts and conversation episodes relevant to a query.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "What to recall, in plain language"
          }
        },
        "required": [
          "query"
        ]
      }
    },
    {
      "name": "search_facts",
      "description": "Search the fact database by keyword.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "limit": {
            "type": "integer",
            "default": 15
          }
        },
        "required": [
          "query"
        ]
      }
    },
    {
      "name": "trace_claim",
      "description": "Show the facts linked to a claim, how each was linked, and the source conversation. For facts extracted under the turn contract, also show up to three evidence spans. Each span quotes the person's own words and includes its turn id. On a baselayer run build, the links identify facts nearest in meaning. They are not citations.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "claim_id": {
            "type": "string",
            "description": "Claim id, for example A1, P3, C2"
          }
        },
        "required": [
          "claim_id"
        ]
      }
    },
    {
      "name": "get_stats",
      "description": "Counts of conversations and facts, broken down by tier and source.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "verify_claims",
      "description": "Check claims against the fact database for existence, recurrence, cross-domain coverage, temporal consistency and internal contradictions. Store the results in the database.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "claim_id": {
            "type": "string",
            "description": "Optional claim id. Empty checks all.",
            "default": ""
          },
          "layer": {
            "type": "string",
            "description": "anchors, core, predictions, or all",
            "default": "all"
          }
        }
      }
    },
    {
      "name": "get_brief",
      "description": "Return the optional prose brief, if one was composed. The brief is separate from the specification.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "description": "One short sentence on why the brief is needed"
          }
        },
        "required": [
          "reason"
        ]
      }
    },
    {
      "name": "get_help",
      "description": "The Base Layer reference for agents, or one section of it.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "description": "Optional: intents, diagnostic, cli, tools, files, fetch, faq",
            "default": ""
          }
        }
      }
    },
    {
      "name": "get_call_log",
      "description": "Recent calls to this server process.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50
          },
          "name_filter": {
            "type": "string",
            "default": ""
          }
        }
      }
    }
  ],
  "repository": "https://github.com/agulaya24/BaseLayer",
  "documentation": "https://www.base-layer.ai/llms.txt",
  "author": "Aarik Gulaya",
  "license": "Apache-2.0",
  "tags": [
    "specification",
    "mcp",
    "claude-code"
  ],
  "research": "https://www.base-layer.ai/research"
}
