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: agent_react
title: "`agent` with ReAct strategy, tool catalogue, and budgets"
summary: "Declares an `agent` — orchestrated cognitive entity binding tools + memory + shield under an explicit coordination strategy with iteration/token/time/cost budgets."
topic: agents
primitives:
  - persona
  - tool
  - memory
  - shield
  - agent
---

// `agent` is the Fase 18+ orchestrated cognitive entity. Where
// `persona` declares identity and `flow` declares a typed sequence,
// `agent` binds tools + memory + shield under a coordination
// strategy (react | plan_and_execute | reflexion | custom) with
// explicit budgets.

persona Researcher {
    domain: ["research"]
    tone: analytical
    confidence_threshold: 0.85
    cite_sources: true
}

tool WebSearch {
    provider: openai
    effects:  <network>
    timeout:  30s
}

tool Calculator {
    provider: openai
    effects:  <pure>
    timeout:  5s
}

memory SessionScratch {
    store:     session
    retrieval: semantic
}

shield SafeAgent {
    scan:       [prompt_injection, data_exfil]
    on_breach:  halt
    severity:   high
    compliance: [SOC2]
}

agent ResearchAssistant {
    goal:           "Answer user questions by combining web search with arithmetic."
    tools:          [WebSearch, Calculator]
    memory:         SessionScratch
    strategy:       react
    on_stuck:       escalate
    shield:         SafeAgent
    max_iterations: 12
    max_tokens:     16384
    max_time:       2m
}