MCP & Agents

MCP & Agents

Glimmer exposes both a live Streamable-HTTP MCP server per study for external AI agents and local $glimmer CLI skills for offline repositories.

Connect an agent via Streamable-HTTP MCP

Every study provides an MCP JSON-RPC endpoint at:

POST https://glimmer.science/mcp/<org>/<study>
# Local preview example:
POST http://127.0.0.1:4322/mcp/georgetown-cfmi/ads

Exposed MCP tools

ToolPurpose
get_verified_findingsReturns verified aggregate findings (for ADS: Str-13 stability metrics, BH-FDR survivors, honest nulls) alongside a separate top-level workbench_merged_nodes array.
get_nulls_and_caveatsReturns documented nulls, confound sign-flips (such as DUSI Lie-scale suppression), and rejected pilot pipelines (such as 8mm smoothing) so agents never cherry-pick positive results.
verify_provenanceLists all verified pipeline run-record entries (17 on ADS) with script/output digests, and live re-hashes merged Workbench sidecar files on disk (disk_verified: true, sha256_on_disk).
format_citationFormats verified study publications in APA 7th or BibTeX directly from curated study metadata.

Example MCP call

curl -s -X POST http://127.0.0.1:4322/mcp/georgetown-cfmi/ads \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": { "name": "verify_provenance", "arguments": {} }
  }'

Strict epistemic separation

User-emitted claims, hypotheses, and compute runs merged from the Browser Workbench are never mixed into verified study findings.

  • Verified study aggregates remain pinned to audited pipeline run-record hashes.
  • Merged Workbench contributions appear strictly under top-level workbench_merged_nodes / merged_workbench_nodes with status: merged, repo-relative materialized_path, and a live disk-verified 64-char sha256_on_disk.

Local repository skills ($glimmer)

For offline or CLI-driven workflows, install the project skill into your repository:

glimmer install-skill --project .
glimmer summary research-program

The $glimmer skill guides coding agents through typed sidecars, metadata queries, BM25 retrieval, and provenance checks without overflowing context windows. See Agents for the boundary between the public hub assistant and per-study Workbench agents.