Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
KIvanow merged 1 commit into
BetterDB-inc:masterfrom
AruneshDwivedi:fix/get-info-section-param
Jul 7, 2026
Merged

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

Conversation

@AruneshDwivedi

Copy link
Copy Markdown
Contributor

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 <[email protected]>
@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
Contributor 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
@KIvanow

KIvanow commented Jul 7, 2026

Copy link
Copy Markdown
Member

Thanks for the contribution! Clean fix — good catch that the section param was never being passed through. Nice and minimal.

@KIvanow KIvanow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@KIvanow KIvanow merged commit 12aab3c into BetterDB-inc:master Jul 7, 2026
1 of 2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants