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: flow_step_basic
title: Minimal flow with one step, persona, and anchor
summary: The smallest complete AXON program — declares an identity (persona), grounds it (anchor), and runs one reasoning step inside a flow.
topic: composition
primitives:
  - persona
  - anchor
  - flow
  - step
---

// The smallest complete AXON program: persona + anchor + flow + step.
// Every AXON application starts here; subsequent examples add one
// idea on top of this base.

persona Assistant {
    domain: ["general"]
    tone: precise
    confidence_threshold: 0.7
    cite_sources: true
}

anchor NoHallucination {
    require: source_citation
    confidence_floor: 0.7
    unknown_response: "I don't have enough information to answer that confidently."
    on_violation: raise AnchorBreachError
}

type Question { text: String }
type Answer   { text: String }

flow Respond(req: Question) -> Answer {
    step Reply {
        given: req
        ask: "Answer the question precisely; cite any factual claim."
        output: Answer
    }
    return Reply.output
}