Skip to main content

Crate mcp_usage_store

Crate mcp_usage_store 

Source
Expand description

Distributed durable-task attribution for UsageKit for MCP.

Backends store SHA-256 digests of tenant and task identifiers, never their plaintext values. Values contain only a fixed method category and the price resolved when the task was created, never a name, URI, or extension method string. Inserts are first-writer-wins and claims are atomic, so a completed task can be accounted for by at most one application instance.

Structs§

PostgresTaskStore
PostgreSQL durable-task attribution with atomic, once-only claims.
RedisTaskStore
Redis or Valkey durable-task attribution with atomic, once-only claims.

Enums§

StoreConfigError
Configuration or connection failure while constructing a store.