Idemcore

v0.1.5
net.idemcore/mcp Checked 4 days ago Published 14 days ago

Chat with open models and get a signed receipt for every answer; verify receipts offline.

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

idemcore_chat Chat with a signed receipt

Send a chat request to an open model running on Idemcore (OpenAI-compatible API). Returns the answer plus a signed receipt that proves which model, inputs and settings produced it, and checks the receipt signature locally.

ParameterTypeDescription
max_tokensinteger
messagesarrayFull chat history in OpenAI format.
modelstringModel id; defaults to IDEMCORE_MODEL or the server default.
privacystringhash_only (default on the API) keeps only salted hashes.
promptstringUser message. Use this or `messages`.
seedintegerSampling seed recorded in the receipt.
systemstringOptional system message, prepended when using `prompt`.
temperaturenumber
token_logstringper_token keeps a per-token log so L2 can be checked later.
verifybooleanCheck the receipt signature locally (offline).

idemcore_verify_receipt Verify a receipt offline

Verify an Idemcore receipt without calling the API: L1 checks format and the Ed25519 signature against trusted Idemcore keys; L2 recomputes the token-log chain digests from a log; optional disclosure checks that a prompt, token ids or displayed text match the receipt's hashes.

ParameterTypeDescription
receipt *Receipt JSON (object, JSON string, base64url JSON, or an embed envelope {receipt, ...}).
extra_keysExtra public JWK / JWKS to trust for this call (e.g. a self-hosted signer).
log_pathstringPath to a per-token log file for L2.
log_textstringPer-token log text for L2.
messagesarrayDisclosed prompt messages to check against prompt_hash.
output_idsarrayDisclosed output token ids to check against output_token_hash.
output_textstringDisplayed answer text to check against output_text_hash (if the receipt carries it).
salt_b64ustringSalt (base64url) for hash_only receipts; not needed for privacy=full.

idemcore_get_receipt Fetch a stored receipt

Fetch a receipt (and optionally its per-token log) from the tenant's Idemcore receipt store, then verify it locally.

ParameterTypeDescription
receipt_id *string
include_logboolean
verifyboolean

idemcore_export_audit Export an audit bundle

Export the tenant's receipts and audit events for a time range, save them to a local file, and check the event hash chain and signed daily Merkle roots offline.

ParameterTypeDescription
from *stringStart (RFC 3339 or YYYY-MM-DD, UTC).
to *stringEnd (RFC 3339 or YYYY-MM-DD, UTC).
include_logsboolean
savebooleanWrite the bundle under IDEMCORE_EXPORT_DIR.

idemcore_verify_audit Verify an audit bundle offline

Check an exported audit bundle (JSON file with `events`, `roots` and optional `receipts`) offline: event hash chain, signed Merkle roots and every receipt signature.

ParameterTypeDescription
path *stringPath to the exported bundle JSON.

idemcore_trusted_keys List trusted signing keys

Show which Idemcore public keys this server trusts for receipt signatures and where each came from.