mzcache-mcp-server
v0.1.1Model Context Protocol server for the MzCache C++ engine
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cache_set
Stores a primitive key-value string pair inside mzcache.
| Parameter | Type | Description |
|---|---|---|
key * | string | The target identifier key. |
value * | string | The value payload to store. |
cache_get
Retrieves a cached string value by key identifier.
| Parameter | Type | Description |
|---|---|---|
key * | string | The cache key to check. |
cache_delete
Evicts/removes an absolute key along with its payload data.
| Parameter | Type | Description |
|---|---|---|
key * | string | The key to purge. |
cache_setnx
Stores a value only if the key does not already exist.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
value * | string |
cache_mset
Stores multiple key-value pairs in a single operation.
| Parameter | Type | Description |
|---|---|---|
mapping * | object |
cache_mget
Retrieves values for multiple keys.
| Parameter | Type | Description |
|---|---|---|
keys * | array |
cache_append
Appends text to an existing string value.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
value * | string |
cache_strlen
Returns the length of a stored string.
| Parameter | Type | Description |
|---|---|---|
key * | string |
cache_incr
Atomically increments an integer value.
| Parameter | Type | Description |
|---|---|---|
key * | string |
cache_incrby
Atomically increments an integer value by a specified amount.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | |
key * | string |
cache_decr
Atomically decrements an integer value.
| Parameter | Type | Description |
|---|---|---|
key * | string |
cache_decrby
Atomically decrements an integer value by a specified amount.
| Parameter | Type | Description |
|---|---|---|
amount * | integer | |
key * | string |
cache_rpush
Appends an element to the tail end of an active list queue.
| Parameter | Type | Description |
|---|---|---|
list_name * | string | Target list name. |
value * | string | Value to append. |
cache_lpop
Removes and returns the frontmost element from a targeted list.
| Parameter | Type | Description |
|---|---|---|
list_name * | string | Target list name. |
cache_lpush
Prepends an element to a list.
| Parameter | Type | Description |
|---|---|---|
list_name * | string | |
value * | string |
cache_rpop
Removes the last element of a list.
| Parameter | Type | Description |
|---|---|---|
list_name * | string |
cache_llen
Returns the length of a list.
| Parameter | Type | Description |
|---|---|---|
list_name * | string |
cache_lindex
Returns the value at a given list index.
| Parameter | Type | Description |
|---|---|---|
index * | integer | |
list_name * | string |
cache_lset
Sets the value at a specified list index.
| Parameter | Type | Description |
|---|---|---|
index * | integer | |
list_name * | string | |
value * | string |
cache_lsort
Sorts a list in ascending or descending order.
| Parameter | Type | Description |
|---|---|---|
list_name * | string | |
order | string |
cache_lprint
Returns a printable representation of a list.
| Parameter | Type | Description |
|---|---|---|
list_name * | string |
cache_sadd
Inserts a unique item member inside an target collection set.
| Parameter | Type | Description |
|---|---|---|
member * | string | Unique string record value to insert. |
set_name * | string | Target set identity name. |
cache_smembers
Returns all active elements tracked inside a selected Set collection.
| Parameter | Type | Description |
|---|---|---|
set_name * | string | Name of target set. |
cache_srem
Removes a member from a set.
| Parameter | Type | Description |
|---|---|---|
member * | string | |
set_name * | string |
cache_scard
Returns the number of members in a set.
| Parameter | Type | Description |
|---|---|---|
set_name * | string |
cache_spop
Removes and returns a random member from a set.
| Parameter | Type | Description |
|---|---|---|
set_name * | string |
cache_sismember
Checks whether a member exists in a set.
| Parameter | Type | Description |
|---|---|---|
member * | string | |
set_name * | string |
cache_sunion
Returns the union of two sets.
| Parameter | Type | Description |
|---|---|---|
set1 * | string | |
set2 * | string |
cache_sinter
Returns the intersection of two sets.
| Parameter | Type | Description |
|---|---|---|
set1 * | string | |
set2 * | string |
cache_sdiff
Returns the difference between two sets.
| Parameter | Type | Description |
|---|---|---|
set1 * | string | |
set2 * | string |
cache_hset
Stores or replaces a mapping field parameter inside a specified complex Hash dictionary tracking name.
| Parameter | Type | Description |
|---|---|---|
field * | string | The sub-key attribute dictionary name label. |
hash_name * | string | Target hash grouping handle name. |
value * | string | String payload data assignment value. |
cache_hget
Fetches properties of a targeted mapping attribute inside a specific Hash dictionary structure identifier.
| Parameter | Type | Description |
|---|---|---|
field * | string | Specific object attribute key parameter label to retrieve. |
hash_name * | string | Hash map dictionary tracker parameter name. |
cache_hdel
Deletes a field from a hash.
| Parameter | Type | Description |
|---|---|---|
field * | string | |
hash_name * | string |
cache_hexists
Checks whether a field exists in a hash.
| Parameter | Type | Description |
|---|---|---|
field * | string | |
hash_name * | string |
cache_hlen
Returns the number of fields in a hash.
| Parameter | Type | Description |
|---|---|---|
hash_name * | string |
cache_expire
Assigns a Time-To-Live countdown constraint configuration payload execution expiration window on a target key identifier.
| Parameter | Type | Description |
|---|---|---|
key * | string | Target tracking key element. |
seconds * | integer | Life cycle deadline period delay window sequence limit values calculated via standard seconds count. |
cache_ttl
Returns the remaining TTL of a key.
| Parameter | Type | Description |
|---|---|---|
key * | string |