Skip to content

fix(mcp): pass section param through to info endpoint#280

Open
AruneshDwivedi wants to merge 1 commit into
BetterDB-inc:masterfrom
AruneshDwivedi:fix/get-info-section-param
Open

fix(mcp): pass section param through to info endpoint#280
AruneshDwivedi wants to merge 1 commit into
BetterDB-inc:masterfrom
AruneshDwivedi:fix/get-info-section-param

Conversation

@AruneshDwivedi

Copy link
Copy Markdown

The get_info MCP tool accepts a section filter (server, clients, memory, stats, replication, keyspace) but the underlying API endpoint at /mcp/instance/:id/info never received it. All sections were always returned regardless of the requested section.

Adds @query('section') to the McpController.getInfo handler and passes the parsed array to getInfoParsed(). The MCP tool now includes the section as a query param in the API call so the server filters before responding.

The get_info MCP tool accepts a section filter but the underlying API
endpoint at /mcp/instance/:id/info never received it, so all sections
were always returned regardless of the requested section. Adds
@query('section') to the controller and passes the parsed array to
getInfoParsed, and updates the MCP tool to include the query param in
the API call.

Signed-off-by: Arunesh Dwivedi <arunesh.devops@gmail.com>
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@AruneshDwivedi

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant