Skip to content

Conversation

@mtodor
Copy link
Collaborator

@mtodor mtodor commented Dec 3, 2025

Description

This PR is adding implementation of list clusters tool.

Input parameters support offset and limit. Unfortunately StackRox API does not support paging for /v1/clusters endpoint. So paging is done on a client side within the MCP server.

For validation we are using JSON schema. Defining schema is not ideal, so the processes that schema is defined from struct with additional configuration of defaults and validation values.

Validation

  • Build and test it against demo staging with MCP inspector
  • Test with LLM

@mtodor mtodor requested a review from janisz as a code owner December 3, 2025 17:54
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
193 2 191 0
View the full list of 2 ❄️ flaky test(s)
github.com/stackrox/stackrox-mcp/internal/testutil::

Flake rate in main: 100.00% (Passed 0 times, Failed 2 times)

Stack Traces | 0s run time
Build error
github.com/stackrox/stackrox-mcp/internal/toolsets/mock::

Flake rate in main: 100.00% (Passed 0 times, Failed 2 times)

Stack Traces | 0s run time
Build error

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@mtodor mtodor force-pushed the mtodor/ROX-31478-implement-list-clusters-tool branch from 622d248 to 2d7f57d Compare December 3, 2025 18:02
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.

2 participants