Skip to content

Commit e2206f2

Browse files
committed
Fix for Not able to set integer value using set command #16
1 parent 9c212ed commit e2206f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/string.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.typing import EncodableT
45

56

67
@mcp.tool()
7-
async def set(key: str, value: str, expiration: int = None) -> str:
8+
async def set(key: str, value: EncodableT, expiration: int = None) -> str:
89
"""Set a Redis string value with an optional expiration time.
910
1011
Args:

0 commit comments

Comments
 (0)