Skip to content

Commit c64b0b3

Browse files
DOC-6268 MCP server improvements
1 parent cb13f34 commit c64b0b3

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

build/command_api_mapping/mcp-server/node/src/extract-command-api-mapping.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -512,18 +512,12 @@ async function extractCommandApiMapping() {
512512
if (params.length === 0) return true;
513513

514514
const firstParam = params[0];
515-
const firstParamName = typeof firstParam === 'string'
516-
? firstParam.split(':')[0].trim().toLowerCase()
517-
: (firstParam.name || '').toLowerCase();
518-
const firstParamType = typeof firstParam === 'string'
519-
? (firstParam.split(':')[1] || '').trim().toLowerCase()
520-
: (firstParam.type || '').toLowerCase();
515+
const firstParamName = (firstParam.name || '').toLowerCase();
516+
const firstParamType = (firstParam.type || '').toLowerCase();
521517

522518
// Exclude bitfield-specific signatures (first param is 'fmt' with BitfieldOffsetT type nearby)
523519
if (firstParamName === 'fmt' && params.some(p => {
524-
const pType = typeof p === 'string'
525-
? (p.split(':')[1] || '').trim().toLowerCase()
526-
: (p.type || '').toLowerCase();
520+
const pType = (p.type || '').toLowerCase();
527521
return pType.includes('bitfieldoffset');
528522
})) {
529523
return false;

build/command_api_mapping/mcp-server/node/src/tools/extract-signatures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const CLIENT_SOURCE_FILES: Record<string, ClientSourceConfig> = {
6666
'src/main/java/redis/clients/jedis/commands/GeoCommands.java', // Geo commands interface
6767
'src/main/java/redis/clients/jedis/json/commands/RedisJsonV1Commands.java', // JSON V1 interface
6868
'src/main/java/redis/clients/jedis/json/commands/RedisJsonV2Commands.java', // JSON V2 interface
69-
'src/main/java/redis/clients/jedis/search/SearchCommands.java', // Search/FT commands interface
69+
'src/main/java/redis/clients/jedis/search/RediSearchCommands.java', // Search/FT commands interface
7070
'src/main/java/redis/clients/jedis/timeseries/RedisTimeSeriesCommands.java', // Time series commands
7171
],
7272
language: 'java'

0 commit comments

Comments
 (0)