Skip to content

DOC-6268 infra to map command names to client API calls and display in docs#2799

Merged
andy-stark-redis merged 63 commits intomainfrom
DOC-6268-api-cmd-map-tool
Feb 27, 2026
Merged

DOC-6268 infra to map command names to client API calls and display in docs#2799
andy-stark-redis merged 63 commits intomainfrom
DOC-6268-api-cmd-map-tool

Conversation

@andy-stark-redis
Copy link
Contributor

@andy-stark-redis andy-stark-redis commented Feb 18, 2026

Some sample pages:

A few main components to this:

  • Tools to extract API method signatures from client source code and help to match it up with the corresponding Redis commands (not as trivial as it sounds, though). The tools are implemented as an MCP server, which Augie recommends as a good way to keep AI in the loop here, but still make the tool available to the team without worrying about managing API keys, etc. This part is also an experiment in using Rust + JS via WebAssembly. This should improve performance and is based on the assumption that no direct human tinkering with the code will ever be needed or attempted :-)
  • Using the tools to generate a command-api-mapping.json file to represent the mapping between client method signatures and corresponding commands. This includes parameter/return details and descriptions where available. Note that only a small test subset of this info is currently in place.
  • Displaying this information usefully in the docs (it's another one of those things that's intended to help both humans and AI tools, btw). The TCEs now have method signatures for the selected client in the Commands bit at the bottom. Also, the command pages have an API methods tab alongside the syntax tabs at the top.

The MCP server isn't worth looking at unless you are particularly interested. The method signatures are implemented for the string and hash data type pages and command page (so SET, HGET, etc).

All feedback is welcome, but I'm well aware that there is still a lot to do on this! At this stage, I'm mainly just checking in to see if everyone is OK with where this is going so far.


Note

Low Risk
Low risk: this PR adds/updates documentation and project planning artifacts only, with no functional code or production configuration changes in the diff.

Overview
Adds a large set of new documentation for the Redis command→client API mapping effort, including the data/command-api-mapping/ JSON file structure and merge workflow.

Documents the proposed/implemented MCP-server-based extraction architecture and Augment integration (tool list, troubleshooting, and confirmed working configuration), plus project status artifacts (milestone plans/completions, testing summaries, extraction summaries, and a production deployment guide).

Written by Cursor Bugbot for commit b35c1b9. This will update automatically on new commits. Configure here.

@@ -0,0 +1 @@
# Augment MCP Server Integration Guide\n\n## Current Status\n\n✅ **Server is fully functional and tested**\n- All 6 tools are discoverable\n- All tools respond correctly to invocations\n- Server builds without errors\n- Server starts without errors\n\n⏳ **Augment Integration Issue**\n- Augment shows red pip: \"No tools are available for this MCP server\"\n- This indicates Augment IS connecting but server isn't responding to ListTools\n\n## Configuration Options\n\nTry these configurations in order:\n\n### Option 1: Simple (Recommended)\n```json\n{\n \"mcpServers\": {\n \"redis-parser-mcp\": {\n \"command\": \"node\",\n \"args\": [\"/Users/andrew.stark/Documents/Repos/docs/build/command_api_mapping/mcp-server/node/dist/index.js\"]\n }\n }\n}\n```\n\n### Option 2: With CWD\n```json\n{\n \"mcpServers\": {\n \"redis-parser-mcp\": {\n \"command\": \"node\",\n \"args\": [\"dist/index.js\"],\n \"cwd\": \"/Users/andrew.stark/Documents/Repos/docs/build/command_api_mapping/mcp-server\"\n }\n }\n}\n```\n\n### Option 3: Full Path to Node\n```json\n{\n \"mcpServers\": {\n \"redis-parser-mcp\": {\n \"command\": \"/usr/local/bin/node\",\n \"args\": [\"dist/index.js\"],\n \"cwd\": \"/Users/andrew.stark/Documents/Repos/docs/build/command_api_mapping/mcp-server\"\n }\n }\n}\n```\n\n## Troubleshooting Steps\n\n1. **Remove and re-add the server**\n - Go to Augment Settings\n - Remove the redis-parser-mcp server\n - Close VSCode completely\n - Reopen VSCode\n - Re-add the server with one of the configs above\n\n2. **Check if Augment daemon needs restart**\n - Run: `ps aux | grep -i augment | grep -v grep`\n - If there's an Augment process, try killing it\n - Restart VSCode\n\n3. **Verify server works manually**\n ```bash\n cd /Users/andrew.stark/Documents/Repos/docs/build/command_api_mapping/mcp-server\n node node/dist/index.js\n ```\n Should start without errors and wait for connections.\n\n4. **Test tool discovery**\n ```bash\n cd /Users/andrew.stark/Documents/Repos/docs/build/command_api_mapping/mcp-server/node\n npm run test-augment-discovery\n ```\n Should show all 6 tools are discoverable.\n\n## Available Tools\n\nOnce Augment connects, these tools will be available:\n\n1. **list_redis_commands** - List all Redis commands\n2. **list_clients** - List all supported Redis clients \n3. **get_client_info** - Get information about a specific client\n4. **extract_signatures** - Extract method signatures from source files\n5. **extract_doc_comments** - Extract documentation from code\n6. **validate_signature** - Validate method signatures\n\n## Files Modified\n\n- `node/package.json` - Added `\"type\": \"module\"`\n- `node/src/index.ts` - Fixed imports and removed startup messages\n- `node/src/data/data-access.ts` - Fixed imports\n- `node/src/data/components-access.ts` - Fixed imports\n- `node/src/test-wasm.ts` - Fixed imports\n- `node/src/integration-test.ts` - Fixed imports\n\n## Next Steps\n\n1. Try one of the configuration options above\n2. Remove and re-add the server in Augment Settings\n3. Close and reopen VSCode\n4. Check if tools now appear\n5. If still not working, try the other configuration options\n"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded personal paths leak developer home directory

Medium Severity

Multiple files contain hardcoded absolute paths referencing a developer's local machine: /Users/andrew.stark/Documents/Repos/docs/.... This appears in AUGMENT_INTEGRATION_GUIDE.md, AUGMENT_INTEGRATION_SUCCESS.md, AUGMENT_QUICK_START.md, and MCP_SERVER_STATUS.md. These paths expose the developer's username and local directory structure, and won't work for any other team member.

Additional Locations (2)

Fix in Cursor Fix in Web

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Copy link
Collaborator

@dwdougherty dwdougherty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool stuff, @andy-stark-redis. Approved.

@andy-stark-redis
Copy link
Contributor Author

@dwdougherty Thanks for the review! Great to finally get this into action :-)

@andy-stark-redis andy-stark-redis merged commit c98a2d9 into main Feb 27, 2026
46 of 47 checks passed
@andy-stark-redis andy-stark-redis deleted the DOC-6268-api-cmd-map-tool branch February 27, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-friendliness Features that help AI tools understand and use the doc pages more easily. clients Client library docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants