{
  "name": "base-layer",
  "display_name": "Base Layer — Behavioral Alignment for Agents",
  "description": "Behavioral alignment infrastructure for autonomous agents. Serves structured behavioral specifications via MCP: decision foundations, operational constraints, behavioral triggers, and provenance-traced fact retrieval. The behavioral layer of the agentic stack.",
  "version": "1.0.0",
  "transport": ["stdio"],
  "install": {
    "pip": "pip install baselayer",
    "command": "baselayer-mcp"
  },
  "resources": [
    {
      "uri": "memory://identity",
      "name": "Behavioral Specification",
      "description": "Full three-layer behavioral specification: decision foundations, operational constraints, and behavioral triggers. Always-on agent alignment context. ~3,000 tokens.",
      "mimeType": "text/plain"
    }
  ],
  "tools": [
    {
      "name": "recall_memories",
      "description": "Semantic retrieval of facts and episodes relevant to a query. Use when the conversation touches personal topics, past experiences, or preferences.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": { "type": "string", "description": "Natural language query (e.g., 'career history', 'trading approach')" }
        },
        "required": ["query"]
      }
    },
    {
      "name": "search_facts",
      "description": "Keyword search across all active behavioral facts.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": { "type": "string" },
          "limit": { "type": "integer", "default": 15 }
        },
        "required": ["query"]
      }
    },
    {
      "name": "trace_claim",
      "description": "Trace an identity claim back to source facts and conversations. Provenance chain.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "claim_id": { "type": "string", "description": "Claim ID (e.g., A1, P3, C2)" }
        },
        "required": ["claim_id"]
      }
    },
    {
      "name": "get_stats",
      "description": "Database statistics: conversation count, fact count, tier breakdown."
    },
    {
      "name": "verify_claims",
      "description": "Verify identity layer claims against the fact database. Binary verification checks: existence, recurrence, cross-domain coverage, temporal consistency.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "claim_id": { "type": "string", "description": "Optional claim ID to verify (e.g., A1, P3). If empty, verifies all." },
          "layer": { "type": "string", "description": "Layer to verify: anchors, core, predictions, or all", "default": "all" }
        }
      }
    }
  ],
  "repository": "https://github.com/agulaya24/BaseLayer",
  "documentation": "https://base-layer.ai/llms.txt",
  "author": "Aarik Gulaya",
  "license": "Apache-2.0",
  "tags": ["agent-alignment", "behavioral-specification", "behavioral-compression", "agentic-infrastructure", "mcp"]
}
