Skip to content

Commit 34cf856

Browse files
authored
Merge pull request #18 from nafraf/fix-json-set
Fix `json_set()` `value` argument type
2 parents 10abdc2 + a06bf55 commit 34cf856

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/json.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from common.connection import RedisConnectionManager
22
from redis.exceptions import RedisError
33
from common.server import mcp
4+
from redis.commands.json._util import JsonType
45

56

67
@mcp.tool()
7-
async def json_set(name: str, path: str, value: str, expire_seconds: int = None) -> str:
8+
async def json_set(name: str, path: str, value: JsonType, expire_seconds: int = None) -> str:
89
"""Set a JSON value in Redis at a given path with an optional expiration time.
910
1011
Args:

0 commit comments

Comments
 (0)