saihm-mcp

v0.3.17
io.github.SAIHM-Admin/saihm-mcp Checked 2 days ago Published 1 month ago

MCP standards client for your own custodial SAIHM operator.

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

saihm_remember Remember

Store information in SAIHM persistent encrypted memory. Use this when a fact, decision, or piece of context should outlive the current session. Returns the cell id that saihm_forget takes.

ParameterTypeDescription
content *stringInformation to remember

saihm_recall Recall

Retrieve memories from the SAIHM encrypted store; the operator decrypts and returns plaintext, and this client holds no keys. Use at the start of a session, or whenever past context is needed. Pass a keyword to filter, or leave empty to load all.

ParameterTypeDescription
querystringFilter by keyword (empty = all)

saihm_forget Forget (GDPR erasure)

Erase one memory by its cell id. Whether erasure is cryptographic (the key is destroyed, so no one can read the content again) or access-control (the cell is withdrawn from service) depends on the operator; check its documentation. Irreversible: use it when erasure is the intent, not to tidy a working set.

ParameterTypeDescription
id *stringMemory entry ID (hex cellId) to erase

saihm_status Status

Show the current SAIHM session: agent identity, tier, the prs and bfsi scores, storage by tier, and sharing state, as far as the operator reports them — a non-custodial operator cannot see stored-byte totals. Use it to check the agent identity, custody mode, and what the operator reports about storage and sharing.

saihm_share Share

Grant other agents access to specific memory shards. Set type to 'temporary', 'permanent' or 'syndicate', and scope to 'read', 'write' or 'readwrite'. Grantees are hex agent-id hashes, not names, and shardIds lists exactly what is shared: nothing outside it is exposed, and sharing does not copy the memory.

ParameterTypeDescription
granteeIdHashesHex *arrayHex-encoded grantee agent ID hashes
scope *stringAccess scope
shardIds *arrayShard IDs to include in the contract
type *stringContract type
expiryEpochstringOptional expiry epoch (decimal string)

saihm_revoke_share Revoke share

Revoke a sharing contract by its contractId, withdrawing access granted with saihm_share. It applies to future reads and cannot retract what a grantee has already read. Use it to end access; the memory itself remains, and saihm_forget is what erases.

ParameterTypeDescription
contractId *stringSharing contract ID to revoke

saihm_governance_propose Propose (governance)

Open a protocol governance proposal: set scope to 'emission_param' or 'protocol_upgrade', and for 'emission_param' also pass paramKey and proposedValue. Protocol governance is not enabled by default. The call is forwarded to the operator endpoint you configured, so expect an error rather than an open vote unless that operator has turned governance on. Where it is enabled it returns a hex proposalId that saihm_governance_vote takes, and it starts a vote rather than changing a setting.

ParameterTypeDescription
scope *stringGovernable scope
paramKeystringParameter key (when scope=emission_param)
proposedValuestringProposed value as string

saihm_governance_vote Vote (governance)

Cast a vote on an open protocol governance proposal by its proposalId, with approve set to true to approve or false to reject. Protocol governance is not enabled by default. The call is forwarded to the operator endpoint you configured, so expect an error rather than a recorded vote unless that operator has turned governance on. Where it is enabled, vote weight derives from the governance-token balance held at the proposal snapshot epoch, not the balance at the time of voting.

ParameterTypeDescription
approve *booleantrue = approve, false = reject
proposalId *stringHex proposalId returned by saihm_governance_propose