mzcache-mcp-server

v0.1.1
mzcache-mcp-server Checked 1 day ago Published 5 months ago

Model 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.

ParameterTypeDescription
key *stringThe target identifier key.
value *stringThe value payload to store.

cache_get

Retrieves a cached string value by key identifier.

ParameterTypeDescription
key *stringThe cache key to check.

cache_delete

Evicts/removes an absolute key along with its payload data.

ParameterTypeDescription
key *stringThe key to purge.

cache_setnx

Stores a value only if the key does not already exist.

ParameterTypeDescription
key *string
value *string

cache_mset

Stores multiple key-value pairs in a single operation.

ParameterTypeDescription
mapping *object

cache_mget

Retrieves values for multiple keys.

ParameterTypeDescription
keys *array

cache_append

Appends text to an existing string value.

ParameterTypeDescription
key *string
value *string

cache_strlen

Returns the length of a stored string.

ParameterTypeDescription
key *string

cache_incr

Atomically increments an integer value.

ParameterTypeDescription
key *string

cache_incrby

Atomically increments an integer value by a specified amount.

ParameterTypeDescription
amount *integer
key *string

cache_decr

Atomically decrements an integer value.

ParameterTypeDescription
key *string

cache_decrby

Atomically decrements an integer value by a specified amount.

ParameterTypeDescription
amount *integer
key *string

cache_rpush

Appends an element to the tail end of an active list queue.

ParameterTypeDescription
list_name *stringTarget list name.
value *stringValue to append.

cache_lpop

Removes and returns the frontmost element from a targeted list.

ParameterTypeDescription
list_name *stringTarget list name.

cache_lpush

Prepends an element to a list.

ParameterTypeDescription
list_name *string
value *string

cache_rpop

Removes the last element of a list.

ParameterTypeDescription
list_name *string

cache_llen

Returns the length of a list.

ParameterTypeDescription
list_name *string

cache_lindex

Returns the value at a given list index.

ParameterTypeDescription
index *integer
list_name *string

cache_lset

Sets the value at a specified list index.

ParameterTypeDescription
index *integer
list_name *string
value *string

cache_lsort

Sorts a list in ascending or descending order.

ParameterTypeDescription
list_name *string
orderstring

cache_lprint

Returns a printable representation of a list.

ParameterTypeDescription
list_name *string

cache_sadd

Inserts a unique item member inside an target collection set.

ParameterTypeDescription
member *stringUnique string record value to insert.
set_name *stringTarget set identity name.

cache_smembers

Returns all active elements tracked inside a selected Set collection.

ParameterTypeDescription
set_name *stringName of target set.

cache_srem

Removes a member from a set.

ParameterTypeDescription
member *string
set_name *string

cache_scard

Returns the number of members in a set.

ParameterTypeDescription
set_name *string

cache_spop

Removes and returns a random member from a set.

ParameterTypeDescription
set_name *string

cache_sismember

Checks whether a member exists in a set.

ParameterTypeDescription
member *string
set_name *string

cache_sunion

Returns the union of two sets.

ParameterTypeDescription
set1 *string
set2 *string

cache_sinter

Returns the intersection of two sets.

ParameterTypeDescription
set1 *string
set2 *string

cache_sdiff

Returns the difference between two sets.

ParameterTypeDescription
set1 *string
set2 *string

cache_hset

Stores or replaces a mapping field parameter inside a specified complex Hash dictionary tracking name.

ParameterTypeDescription
field *stringThe sub-key attribute dictionary name label.
hash_name *stringTarget hash grouping handle name.
value *stringString payload data assignment value.

cache_hget

Fetches properties of a targeted mapping attribute inside a specific Hash dictionary structure identifier.

ParameterTypeDescription
field *stringSpecific object attribute key parameter label to retrieve.
hash_name *stringHash map dictionary tracker parameter name.

cache_hdel

Deletes a field from a hash.

ParameterTypeDescription
field *string
hash_name *string

cache_hexists

Checks whether a field exists in a hash.

ParameterTypeDescription
field *string
hash_name *string

cache_hlen

Returns the number of fields in a hash.

ParameterTypeDescription
hash_name *string

cache_expire

Assigns a Time-To-Live countdown constraint configuration payload execution expiration window on a target key identifier.

ParameterTypeDescription
key *stringTarget tracking key element.
seconds *integerLife cycle deadline period delay window sequence limit values calculated via standard seconds count.

cache_ttl

Returns the remaining TTL of a key.

ParameterTypeDescription
key *string