empirica-mcp

v1.14.20
empirica-mcp Checked 7 hours ago Published 27 days ago

MCP server for Empirica — AI measurement and calibration tools via Model Context Protocol

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

session_create

Create new Empirica session

ParameterTypeDescription
ai_idstring
project_idstring
subjectstring

project_bootstrap

Load project context (findings, goals, unknowns, calibration)

ParameterTypeDescription
ai_idstring
depthstring
session_idstring

bootstrap_context

Three-circle artifact graph bootstrap (v2 wire shape). Returns active_state (recency-decayed) + persistent_reference (no decay) + topic_relevant_backlog (Qdrant similarity-pulled). Designed for Claude Desktop / Cursor / Cline at chat-start to match what CLI hooks inject. See PROPOSAL_BOOTSTRAP_AGGREGATOR.md.

ParameterTypeDescription
project_pathstring
session_idstring
similarity_thresholdstring

session_snapshot

Create snapshot of current session state

resume_previous_session

Resume a previous session

ParameterTypeDescription
ai_idstring
countnumberCount
detail_levelstring

submit_preflight_assessment

Submit PREFLIGHT self-assessment (13 vectors 0.0-1.0). Optional `claims`: [{claim, grounding, ref}] with grounding read|ran|retrieved|assumed. Claims grounded by `read` or `ran` CERTIFY the transaction — praxic work may then proceed with no separate CHECK, which is the path for work you were already grounded in before opening. `retrieved` and `assumed` deliberately do not certify: prior artifacts are testimony, not observation.

ParameterTypeDescription
vectors *object13 epistemic vectors (0.0-1.0)
reasoningstringAssessment reasoning
session_idstringSession UUID
task_contextstringWhat you're working on
work_contextstringgreenfield|iteration|investigation|refactor
work_typestringcode|infra|research|debug|docs|comms|design|audit

submit_check_assessment

Submit CHECK gate assessment — gates noetic → praxic. Optional `claims`: [{claim, grounding, ref}] naming what the praxic work will rest on, so POSTFLIGHT can adjudicate each one rather than averaging them into a single know score.

ParameterTypeDescription
vectors *object13 epistemic vectors (0.0-1.0)
decisionstring
reasoningstringAssessment reasoning
session_idstringSession UUID

submit_postflight_assessment

Submit POSTFLIGHT assessment — closes transaction, triggers grounded verification. Optional `claims`: [{index|id, verdict, evidence}] with verdict held|refuted|untested, adjudicating what was declared at PREFLIGHT/CHECK. Anything left unadjudicated is forced to `untested` and reported as a gap, so 'never checked' stays distinguishable from 'nothing declared'.

ParameterTypeDescription
vectors *object13 epistemic vectors (0.0-1.0)
reasoningstringAssessment reasoning
session_idstringSession UUID

finding_log

Log a finding (what was learned). Use source_ids to link to epistemic sources, visibility to opt into cross-project sharing, epistemic_source to tag provenance.

ParameterTypeDescription
finding *string
descriptionstring
entity_idstring
entity_typestring
epistemic_sourcestring
goal_idstring
impactnumberImpact
project_idstring
scopestring
session_idstring
source_idsarrayList of source ids
subjectstring
task_idstring
viastring
visibilitystring

note

Jot a quick note-to-self (scratchpad) while in flow — for things to check on after the current work. Faster + lower-friction than a full finding/decision: pure metadata, NOT shared, NOT embedded. Notes are transaction-scoped, survive context compaction, and surface at POSTFLIGHT for triage. Optional tag: followup | doubt | idea. Review/clear via CLI: empirica note --list / --clear.

ParameterTypeDescription
text *stringtext (positional argument)
project_idstring
session_idstring
tagstring

unknown_log

Log an unknown (what needs investigation). Use description for a rich body.

ParameterTypeDescription
unknown *string
descriptionstring
entity_idstring
entity_typestring
epistemic_sourcestring
goal_idstring
project_idstring
scopestring
session_idstring
source_idsarrayList of source ids
subjectstring
task_idstring
viastring
visibilitystring

deadend_log

Log a dead-end (approach that didn't work). Use description for a rich body.

ParameterTypeDescription
approach *string
why_failed *string
descriptionstring
entity_idstring
entity_typestring
epistemic_sourcestring
goal_idstring
project_idstring
scopestring
session_idstring
source_idsarrayList of source ids
subjectstring
task_idstring
viastring
visibilitystring

mistake_log

Log a mistake (error to avoid in future). cost_estimate + root_cause_vector capture severity + which vector misfired; description for a rich body.

ParameterTypeDescription
mistake *string
prevention *string
why_wrong *string
cost_estimatenumberCost Estimate
descriptionstring
entity_idstring
entity_typestring
epistemic_sourcestring
goal_idstring
project_idstring
root_cause_vectorstring
scopestring
session_idstring
source_idsarrayList of source ids
visibilitystring

assumption_log

Log an unverified assumption with confidence level. description for a rich body.

ParameterTypeDescription
assumption *string
confidencenumberConfidence
descriptionstring
domainstring
entity_idstring
entity_typestring
epistemic_sourcestring
goal_idstring
project_idstring
session_idstring
source_idsarrayList of source ids
viastring
visibilitystring

decision_log

Log a decision with rationale. Use evidence_refs/evidence_from to link supporting findings, source_ids for external sources, description for a rich markdown body.

ParameterTypeDescription
choice *string
rationale *string
alternativesstring
confidencenumberConfidence
descriptionstring
domainstring
entity_idstring
entity_typestring
epistemic_sourcestring
evidence_fromarrayList of evidence from
evidence_refsarrayList of evidence refs
goal_idstring
project_idstring
reversibilitystring
session_idstring
source_idsarrayList of source ids
viastring
visibilitystring

source_add

Add an epistemic source reference

ParameterTypeDescription
source_type *string
title *string
descriptionstring
session_idstring
urlstring

source_list

List epistemic sources for the project (filter by type/direction).

ParameterTypeDescription
directionstring
include_archivedbooleanInclude Archived
project_idstring
typestring

epistemics_list

List epistemic artifacts for a session.

ParameterTypeDescription
session_idstring

epistemics_show

Show epistemic artifact detail for a session (optionally by phase).

ParameterTypeDescription
phasestring
session_idstring

log_artifacts

Log a connected set of epistemic artifacts in one call. JSON body on stdin: {nodes:[{ref, type, data}], edges:[{from, to, relation}]}. Node types: finding, unknown, dead_end, mistake, assumption, decision, source. Edge relations: evidence, raised_by, grounded_by, resolves, invalidates, sourced_from, caused_by, prevents, attached_to. Creates in dependency order, resolves $-refs to UUIDs.

ParameterTypeDescription
project_idstring
session_idstring

resolve_artifacts

Batch resolve open artifacts in one call. JSON body on stdin: {resolutions:[{type, id, resolution, resolution_kind, superseded_by}]}. Closes unknowns, marks assumptions verified/falsified, completes goals. `resolution_kind` is stale|superseded|retracted|mistyped and records WHY it closed — `retracted` means the artifact was wrong, `mistyped` means it was never that type, and neither is `stale`. Also accepts a `filter` block ({type, matching, older_than, project_id}) for policy resolution; that path is dry-run unless apply:true, and every dry-run row should be read before applying — a leadi…

update_artifacts

Batch CORRECT fields on existing artifacts. JSON body on stdin: {updates:[{type, id, <field>: <value>}]}. Correctable fields are metadata only — visibility, impact, epistemic_source, subject, domain, and per-type extras — never the artifact body, which keeps the graph an audit trail rather than something rewritable after the fact. Ids shorter than 8 characters are refused: a short prefix that happens to be unique is lucky, not safe. This is the correction half of the surface; without it a wrong visibility or a mis-tagged provenance can be logged but never fixed.

delete_artifacts

Batch delete stale/non-pertinent artifacts. JSON body on stdin: {deletions:[{type, id}], reason: '...'}. Deletes from SQLite + Qdrant, logs deletion as a decision for audit. Use dry_run=true to preview.

ParameterTypeDescription
dry_runbooleanDry Run

sync_push

Push local .empirica/ state to git remote. Cortex's git_watcher consumes the push and ingests artifacts into the project's Qdrant collection. Use after a coherent unit of work (or on a cadence) to propagate local writes to cloud. Lag budget: 10-15s end-to-end. Idempotent — Cortex dedups on artifact hash.

ParameterTypeDescription
dry_runbooleanDry Run
forcebooleanForce
remotestring

sync_status

Show sync state — remote configured, last push/pull timestamp, pending local changes.

ParameterTypeDescription
remotestring

doctor

Frontend-agnostic Empirica health check. Returns structured JSON: Python version, empirica CLI path/version, empirica-mcp path, .empirica/ folder state, git repo + remote, sync state (uncommitted changes), Cortex reachability. Designed for Claude Desktop where shell exec isn't available — narrow scoped replacement for general exec MCPs.

goals_create

Create a new goal. Use description for a rich markdown body (why/success criteria/links), scope_* for sizing, status=planned to queue without starting.

ParameterTypeDescription
objective *string
descriptionstring
estimated_complexitynumberEstimated Complexity
project_idstring
scope_breadthnumberScope Breadth
scope_coordinationnumberScope Coordination
scope_durationnumberScope Duration
session_idstring
statusstring
success_criteriastring

goals_list

List goals (use --completed to show completed goals)

ParameterTypeDescription
completedbooleanCompleted
project_idstring
session_idstring

goals_complete

Mark a goal as complete

ParameterTypeDescription
goal_id *string
reasonstring

goals_add_task

Add a task to a goal

ParameterTypeDescription
description *string
goal_id *string
importancestring

goals_get_tasks

List the tasks of a goal with their status/evidence.

ParameterTypeDescription
goal_id *string

goals_discover

Semantic search for goals across sessions (local Qdrant).

ParameterTypeDescription
from_ai_idstring
session_idstring

goals_activate

Activate a planned goal (planned → in_progress).

ParameterTypeDescription
goal_id *string

goals_refresh

Mark a stale goal back to in_progress (e.g. after regaining context).

ParameterTypeDescription
goal_id *string

goals_mark_stale

Mark in-progress goals stale (e.g. at compaction).

ParameterTypeDescription
reasonstring
session_idstring

goals_add_dependency

Declare a goal-to-goal dependency.

ParameterTypeDescription
depends_on *string
goal_id *string
descriptionstring
typestring

goals_complete_task

Mark a task as complete

ParameterTypeDescription
task_id *string
evidencestring

goals_progress

Get goal progress details

ParameterTypeDescription
goal_id *string

goals_ready

List goals ready for work (no blockers)

ParameterTypeDescription
session_idstring

unknown_list

List unknowns (open by default, use --resolved or --all)

ParameterTypeDescription
allbooleanAll
limitnumberLimit
project_idstring
resolvedbooleanResolved
session_idstring
subjectstring

unknown_resolve

Resolve an unknown. Use resolution_finding_id to link to the finding that answered it.

ParameterTypeDescription
unknown_id *string
resolution_finding_idstring
resolved_bystring

finding_resolve

Resolve a finding — kept for history, dropped from live retrieval. `kind` is the closed vocabulary and the queryable half: stale (true when written, has aged) | superseded (replaced by a NAMED newer artifact, pair with superseded_by) | retracted (was FALSE when written) | mistyped (belongs to another artifact type). Reach for 'retracted' when a claim was wrong rather than merely old — a practice that only ever records 'stale' cannot tell its own ageing from its own errors.

ParameterTypeDescription
finding_id *stringfinding_id (positional argument)
resolution *string
kindstring
superseded_bystring

project_embed

Embed project artifacts to Qdrant for semantic search

ParameterTypeDescription
project_idstring

calibration_report

Get calibration report with optional trajectory trend

ParameterTypeDescription
ai_idstring
trajectorybooleanTrajectory
weeksnumberWeeks

assess_state

Get current epistemic state assessment

ParameterTypeDescription
session_idstring

profile_status

Show artifact counts, drift, calibration summary

lesson_create

Create a reusable lesson (use --input or --json for full data)

ParameterTypeDescription
name *string

noetic_batch

Batched investigation: reads + greps + globs + investigate in one call. Replaces N round-trip noetic operations with a single tool call. Sentinel sees one noetic intent, no per-call gating overhead. JSON schema: {intent, reads:[{path,lines?}], greps:[{pattern,glob?,context?,case_sensitive?,max_matches?}], globs:[pattern OR {pattern,root?}], investigate:[{query,scope?,limit?}]}. See docs/architecture/NOETIC_BATCH_SPEC.md.

lesson_list

List available lessons

ParameterTypeDescription
domainstring

issue_list

List auto-captured issues

ParameterTypeDescription
severitystring
statusstring

issue_resolve

Resolve an auto-captured issue

ParameterTypeDescription
issue_id *string
resolution *string
session_id *string

investigate

Retrieve what this practice knows about a topic (alias of project-search --task; positional query text, not a file path)

ParameterTypeDescription
query *stringquery (positional argument)
global_searchbooleanGlobal Search
limitnumberLimit

handoff_create

Create handoff report for session continuation

ParameterTypeDescription
key_findingsstring
next_session_contextstring
planning_onlybooleanPlanning Only
remaining_unknownsstring
session_idstring
task_summarystring

workspace_overview

Show workspace overview (all tracked projects)

workspace_map

Show knowledge map across projects

checkpoint_create

Create a git checkpoint with epistemic metadata

ParameterTypeDescription
metadatastring
phasestring
session_idstring

checkpoint_load

Load a checkpoint

ParameterTypeDescription
max_agenumberMax Age
phasestring
session_idstring

bus_register

Register this Claude instance in the shared dispatch bus registry. capabilities and subscribes are comma-separated strings.

ParameterTypeDescription
instance_id *string
type *string
capabilitiesstring
subscribesstring

bus_dispatch

Send a typed dispatch action to another instance. Use to_instance='*' with required_capabilities for capability routing. Payload is JSON string.

ParameterTypeDescription
action *string
to_instance *string
callback_channelstring
deadlinenumberDeadline
from_instancestring
payloadstring
prioritystring
required_capabilitiesstring
ttlnumberTtl
waitbooleanWait
wait_timeoutnumberWait Timeout

bus_instances

List all registered bus instances (optionally filter by capability)

ParameterTypeDescription
capabilitystring

bus_status

Show an instance's registry state and inbox summary

ParameterTypeDescription
instance_id *string

bus_poll

Poll for incoming messages on a channel (default channel: dispatch). Use bus_subscribe equivalent: pass channel='dispatch' for typed dispatches.

ParameterTypeDescription
ai_id *string
channelstring
limitnumberLimit
statusstring

memory_compact

Compact session memory (deduplicate, prune stale)

efficiency_report

Generate efficiency report for session

ParameterTypeDescription
session_idstring

practice_context

[requires: cortex] Ambassador addressbook — pulls /v1/users/me/roster from cortex and projects each (tenant, project) seat with substrate (cortex|git|local). Use to verify canonical 3-form before emitting target_claudes. Base empirica users (no cortex configured) will see a clear 'cortex config missing' error.

ParameterTypeDescription
ai_idstring
api_keystring
cortex_urlstring
timeoutstring

commit_context

Walk artifacts anchored to commit(s) via git notes. Modes: single SHA (positional), --range (rev range), --since/--until (date window), --session (all commits in a session). --depth N expands the artifact graph; --full includes payloads.

ParameterTypeDescription
commitstringcommit (positional argument)
depthstring
fullstring
only_with_artifactsstring
rangestring
sessionstring
sincestring
untilstring

listener_on

[cortex-orchestrated, runs standalone] Register listener + emit Monitor command. Without cortex configured, listens to any supplied ntfy --topic. Pairs with `listener arm` + `listener off`.

ParameterTypeDescription
ai_idstring
instance_idstring
namestring
topicstring

listener_arm

Update listener state file with the Monitor task_id (so `listener off` can TaskStop it later).

ParameterTypeDescription
task_id *stringtask_id (positional argument)
ai_idstring
instance_idstring
namestring

listener_off

Emit a TaskStop command for the armed listener + clear state. Inverse of `listener on`/`arm`.

ParameterTypeDescription
ai_idstring
instance_idstring
namestring

loop_register

Register a loop (idempotent). Kind: cron | interval | monitor. Adaptive backoff supported via --backoff exponential + --base-interval/--max-interval.

ParameterTypeDescription
kind *string
name *string
backoffstring
base_intervalstring
cronstring
descriptionstring
instance_idstring
intervalstring
max_intervalstring

loop_heartbeat

Heartbeat a loop fire with result signal (found|empty|fail|paused). Optionally records the next scheduled job_id for pause/cancel.

ParameterTypeDescription
name *stringname (positional argument)
instance_idstring
messagestring
next_scheduled_job_idstring
resultstring
scheduler_kindstring
statusstring

loop_status

Read loop registry state: pause flag, last fire, last result, streak position.

ParameterTypeDescription
name *stringname (positional argument)
instance_idstring

loop_schedule_next

Compute the next fire interval per backoff policy + emit a cron_one_shot expression for CronCreate.

ParameterTypeDescription
name *stringname (positional argument)
instance_idstring

notify_emit

Multi-backend notification dispatcher. Reads ~/.empirica/notify.yaml for routing decisions. Severity: info|warning|critical. Backends: ntfy, macos, dbus, slack, email — pluggable.

ParameterTypeDescription
message *string
severity *string
title *string
actionsstring
backend_overridestring
click_urlstring
dry_runbooleanDry Run
rationalestring
sourcestring
tagsstring
topic_overridestring

mailbox_reply

[requires: cortex] Atomic cortex_propose reply + cortex_complete_proposal close in one call. Fixes the AI ack-discipline gap (no separate completion step). Type defaults to collab_brief; result {shipped,failed,wont_fix} on close.

ParameterTypeDescription
parent_id *string
summary *string
commit_shastring
no_archivestring
no_closestring
payloadstring
resultstring
source_claudestring
target_claudesstring
titlestring
typestring

mesh_status

[cortex-orchestrated, local layer standalone] Mesh health table — LOCAL (systemd/launchd service + loop_fires.log + loops) ALWAYS available; CORTEX BRIDGE (ntfy curl + inbox poll) only when cortex is configured. Per-instance ai_id rows, green/yellow/red, distinguishes DOWN vs WAITING.

ParameterTypeDescription
instancestringinstance (positional argument)

get_empirica_introduction

Get introduction to the Empirica epistemic framework