Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
No arguments |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
connect_redis | 连接到 Redis 服务器 |
disconnect_redis | 断开与 Redis 服务器的连接 |
string_set | 设置字符串键值 |
string_get | 获取字符串值 |
string_incr | 递增数值 |
string_decr | 递减数值 |
string_mset | 批量设置键值 |
string_mget | 批量获取键值 |
hash_set | 设置哈希字段 |
hash_mset | 批量设置哈希字段 |
hash_get | 获取哈希字段 |
hash_getall | 获取所有哈希字段 |
hash_del | 删除哈希字段 |
list_lpush | 左侧推入列表 |
list_rpush | 右侧推入列表 |
list_lpop | 左侧弹出列表 |
list_rpop | 右侧弹出列表 |
list_range | 获取列表范围 |
set_add | 添加集合成员 |
set_remove | 移除集合成员 |
set_members | 获取集合所有成员 |
zset_add | 添加有序集合成员 |
zset_remove | 移除有序集合成员 |
zset_range | 获取有序集合范围 |
key_delete | 删除键 |
key_expire | 设置键过期时间 |
key_ttl | 获取键过期时间 |
key_search | 查找匹配的键 |
key_type | 获取键类型 |
key_info | 获取键信息 |
key_delete_pattern | 批量删除匹配的键 |
db_flush | 清空当前数据库 |
backup_create | 创建 Redis 数据备份 |
backup_restore | 从备份恢复 Redis 数据 |