axon-emcp 0.3.0

axon-emcp — the official ℰMCP (Epistemic Model Context Protocol) server for AXON. A stdio JSON-RPC 2.0 MCP server that exposes the AXON language to AI coding agents (Claude Code, Codex, Cursor, …): every primitive's grammar + semantic constraints + idiomatic examples, plus live validation via the same `axon-frontend` lexer/parser/type-checker the `axon` CLI uses. Hydrated from a diff-reviewable markdown knowledge base under `src/knowledge/`.
Documentation
---
name: memory_scopes
title: Two memory primitives with different lifecycle scopes
summary: The `store:` field is the closed lifecycle catalog (`ephemeral | none | session | persistent`). Each `memory` primitive picks ONE scope; multiple memories with different scopes coexist in one program.
topic: memory
primitives:
  - persona
  - memory
---

// The closed memory lifecycle catalog:
//   ephemeral  — single-turn; cleared as the writing step returns
//   none       — alias for ephemeral; explicit "intentionally amnesiac"
//   session    — lives across the conversation; cleared on disconnect
//   persistent — survives reconnect, scoped by tenant + user

persona Tutor {
    domain: ["education"]
    tone: friendly
    confidence_threshold: 0.7
    cite_sources: false
}

// Per-turn scratch — gone the moment the step returns.
memory ScratchPad {
    store:     ephemeral
    retrieval: exact
}

// Lives for the duration of the conversation.
memory SessionState {
    store:     session
    retrieval: semantic
}

// Survives reconnect — tenant + user scoped.
memory StudentProgress {
    store:     persistent
    backend:   pgvector
    retrieval: semantic
    decay:     never
}