Skip to content

Commit 629e1d4

Browse files
DOC-6268 updated MCP tools
1 parent c7b0437 commit 629e1d4

36 files changed

+5495
-150
lines changed

data/command-api-mapping.json

Lines changed: 2805 additions & 150 deletions
Large diffs are not rendered by default.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"api_calls": {
3+
"redis_py": [],
4+
"jedis": [
5+
{
6+
"signature": "String asking()",
7+
"params": [],
8+
"returns": {
9+
"type": "String",
10+
"description": "OK"
11+
}
12+
}
13+
],
14+
"go-redis": [],
15+
"node_redis": [
16+
{
17+
"signature": "parseCommand(parser: CommandParser)",
18+
"params": [
19+
{
20+
"name": "parser",
21+
"type": "CommandParser",
22+
"description": "The Redis command parser"
23+
}
24+
],
25+
"returns": {
26+
"type": "SimpleStringReply<'OK'>",
27+
"description": ""
28+
}
29+
}
30+
],
31+
"lettuce_sync": [
32+
{
33+
"signature": "String asking()",
34+
"params": [],
35+
"returns": {
36+
"type": "String",
37+
"description": "OK"
38+
}
39+
}
40+
],
41+
"lettuce_async": [
42+
{
43+
"signature": "RedisFuture<String> asking()",
44+
"params": [],
45+
"returns": {
46+
"type": "RedisFuture<String>",
47+
"description": "OK"
48+
}
49+
}
50+
],
51+
"lettuce_reactive": [
52+
{
53+
"signature": "Mono<String> asking()",
54+
"params": [],
55+
"returns": {
56+
"type": "Mono<String>",
57+
"description": "OK"
58+
}
59+
}
60+
],
61+
"nredisstack_sync": [],
62+
"nredisstack_async": [],
63+
"php": [],
64+
"redis_rs_sync": [],
65+
"redis_rs_async": []
66+
}
67+
}
68+
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"api_calls": {
3+
"redis_py": [],
4+
"jedis": [
5+
{
6+
"signature": "String clusterAddSlots(final int... slots)",
7+
"params": [
8+
{
9+
"name": "slots",
10+
"type": "int...",
11+
"description": ""
12+
}
13+
],
14+
"returns": {
15+
"type": "String",
16+
"description": "OK"
17+
}
18+
}
19+
],
20+
"go-redis": [
21+
{
22+
"signature": "ClusterAddSlots(ctx context.Context, slots ...int)",
23+
"params": [
24+
{
25+
"name": "ctx",
26+
"type": "context.Context",
27+
"description": ""
28+
},
29+
{
30+
"name": "slots",
31+
"type": "...int",
32+
"description": ""
33+
}
34+
],
35+
"returns": {
36+
"type": "*StatusCmd",
37+
"description": ""
38+
}
39+
}
40+
],
41+
"node_redis": [
42+
{
43+
"signature": "parseCommand(parser: CommandParser, slots: number | Array<number>)",
44+
"params": [
45+
{
46+
"name": "parser",
47+
"type": "CommandParser",
48+
"description": "The Redis command parser"
49+
},
50+
{
51+
"name": "slots",
52+
"type": "number | Array<number>",
53+
"description": "One or more hash slots to be assigned"
54+
}
55+
],
56+
"returns": {
57+
"type": "SimpleStringReply<'OK'>",
58+
"description": ""
59+
}
60+
}
61+
],
62+
"lettuce_sync": [
63+
{
64+
"signature": "String clusterAddSlots(int... slots)",
65+
"params": [
66+
{
67+
"name": "slots",
68+
"type": "int...",
69+
"description": "One or more hash slots to be assigned"
70+
}
71+
],
72+
"returns": {
73+
"type": "String",
74+
"description": "OK"
75+
}
76+
}
77+
],
78+
"lettuce_async": [
79+
{
80+
"signature": "RedisFuture<String> clusterAddSlots(int... slots)",
81+
"params": [
82+
{
83+
"name": "slots",
84+
"type": "int...",
85+
"description": "One or more hash slots to be assigned"
86+
}
87+
],
88+
"returns": {
89+
"type": "RedisFuture<String>",
90+
"description": "OK"
91+
}
92+
}
93+
],
94+
"lettuce_reactive": [
95+
{
96+
"signature": "Mono<String> clusterAddSlots(int... slots)",
97+
"params": [
98+
{
99+
"name": "slots",
100+
"type": "int...",
101+
"description": "One or more hash slots to be assigned"
102+
}
103+
],
104+
"returns": {
105+
"type": "Mono<String>",
106+
"description": "OK"
107+
}
108+
}
109+
],
110+
"nredisstack_sync": [],
111+
"nredisstack_async": [],
112+
"php": [],
113+
"redis_rs_sync": [],
114+
"redis_rs_async": []
115+
}
116+
}
117+
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"api_calls": {
3+
"redis_py": [],
4+
"jedis": [
5+
{
6+
"signature": "String clusterAddSlotsRange(int... ranges)",
7+
"params": [
8+
{
9+
"name": "ranges",
10+
"type": "int...",
11+
"description": ""
12+
}
13+
],
14+
"returns": {
15+
"type": "String",
16+
"description": "OK"
17+
}
18+
}
19+
],
20+
"go-redis": [
21+
{
22+
"signature": "ClusterAddSlotsRange(ctx context.Context, min, max int)",
23+
"params": [
24+
{
25+
"name": "ctx",
26+
"type": "context.Context",
27+
"description": ""
28+
},
29+
{
30+
"name": "min",
31+
"type": "Any",
32+
"description": ""
33+
},
34+
{
35+
"name": "max",
36+
"type": "int",
37+
"description": ""
38+
}
39+
],
40+
"returns": {
41+
"type": "*StatusCmd",
42+
"description": ""
43+
}
44+
}
45+
],
46+
"node_redis": [],
47+
"lettuce_sync": [
48+
{
49+
"signature": "String clusterAddSlotsRange(Range<Integer>... ranges)",
50+
"params": [
51+
{
52+
"name": "ranges",
53+
"type": "Range<Integer>...",
54+
"description": "One or more slot ranges"
55+
}
56+
],
57+
"returns": {
58+
"type": "String",
59+
"description": "OK"
60+
}
61+
}
62+
],
63+
"lettuce_async": [
64+
{
65+
"signature": "RedisFuture<String> clusterAddSlotsRange(Range<Integer>... ranges)",
66+
"params": [
67+
{
68+
"name": "ranges",
69+
"type": "Range<Integer>...",
70+
"description": "One or more slot ranges"
71+
}
72+
],
73+
"returns": {
74+
"type": "RedisFuture<String>",
75+
"description": "OK"
76+
}
77+
}
78+
],
79+
"lettuce_reactive": [
80+
{
81+
"signature": "Mono<String> clusterAddSlotsRange(Range<Integer>... ranges)",
82+
"params": [
83+
{
84+
"name": "ranges",
85+
"type": "Range<Integer>...",
86+
"description": "One or more slot ranges"
87+
}
88+
],
89+
"returns": {
90+
"type": "Mono<String>",
91+
"description": "OK"
92+
}
93+
}
94+
],
95+
"nredisstack_sync": [],
96+
"nredisstack_async": [],
97+
"php": [],
98+
"redis_rs_sync": [],
99+
"redis_rs_async": []
100+
}
101+
}
102+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"api_calls": {
3+
"redis_py": [],
4+
"jedis": [],
5+
"go-redis": [],
6+
"node_redis": [],
7+
"lettuce_sync": [
8+
{
9+
"signature": "String clusterBumpepoch()",
10+
"params": [],
11+
"returns": {
12+
"type": "String",
13+
"description": "BUMPED or STILL"
14+
}
15+
}
16+
],
17+
"lettuce_async": [
18+
{
19+
"signature": "RedisFuture<String> clusterBumpepoch()",
20+
"params": [],
21+
"returns": {
22+
"type": "RedisFuture<String>",
23+
"description": "BUMPED or STILL"
24+
}
25+
}
26+
],
27+
"lettuce_reactive": [
28+
{
29+
"signature": "Mono<String> clusterBumpepoch()",
30+
"params": [],
31+
"returns": {
32+
"type": "Mono<String>",
33+
"description": "BUMPED or STILL"
34+
}
35+
}
36+
],
37+
"nredisstack_sync": [],
38+
"nredisstack_async": [],
39+
"php": [],
40+
"redis_rs_sync": [],
41+
"redis_rs_async": []
42+
}
43+
}
44+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"api_calls": {
3+
"redis_py": [],
4+
"jedis": [],
5+
"go-redis": [],
6+
"node_redis": [],
7+
"lettuce_sync": [
8+
{
9+
"signature": "Long clusterCountFailureReports(String nodeId)",
10+
"params": [
11+
{
12+
"name": "nodeId",
13+
"type": "String",
14+
"description": "The node ID"
15+
}
16+
],
17+
"returns": {
18+
"type": "Long",
19+
"description": "Number of failure reports"
20+
}
21+
}
22+
],
23+
"lettuce_async": [
24+
{
25+
"signature": "RedisFuture<Long> clusterCountFailureReports(String nodeId)",
26+
"params": [
27+
{
28+
"name": "nodeId",
29+
"type": "String",
30+
"description": "The node ID"
31+
}
32+
],
33+
"returns": {
34+
"type": "RedisFuture<Long>",
35+
"description": "Number of failure reports"
36+
}
37+
}
38+
],
39+
"lettuce_reactive": [
40+
{
41+
"signature": "Mono<Long> clusterCountFailureReports(String nodeId)",
42+
"params": [
43+
{
44+
"name": "nodeId",
45+
"type": "String",
46+
"description": "The node ID"
47+
}
48+
],
49+
"returns": {
50+
"type": "Mono<Long>",
51+
"description": "Number of failure reports"
52+
}
53+
}
54+
],
55+
"nredisstack_sync": [],
56+
"nredisstack_async": [],
57+
"php": [],
58+
"redis_rs_sync": [],
59+
"redis_rs_async": []
60+
}
61+
}
62+

0 commit comments

Comments
 (0)