Skip to content

NE-2448: Add get_service_endpoints tool for NIDS troubleshooting#144

Merged
openshift-merge-bot[bot] merged 5 commits intoopenshift:mainfrom
bentito:NE-2448
Mar 13, 2026
Merged

NE-2448: Add get_service_endpoints tool for NIDS troubleshooting#144
openshift-merge-bot[bot] merged 5 commits intoopenshift:mainfrom
bentito:NE-2448

Conversation

@bentito
Copy link

@bentito bentito commented Feb 13, 2026

Description

This PR implements the get_service_endpoints MCP tool as part of the NIDS troubleshooting strategy (NE-2278).

Changes

  • New Tool: get_service_endpoints allows retrieving the full Endpoints object for a service.
  • Implementation: Uses controller-runtime client interface to support both live clusters and offline analysis (via potential file-based client injection).
  • Testing: Added comprehensive unit tests using fake client.

Related Resources

@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 13, 2026

@bentito: This pull request references NE-2448 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 13, 2026
@openshift-ci openshift-ci bot requested review from manusa and matzew February 13, 2026 22:45
@bentito bentito changed the title NE-2448: implement get_service_endpoints tool NE-2448: Add get_service_endpoints tool for NIDS troubleshooting Feb 13, 2026
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 13, 2026

@bentito: This pull request references NE-2448 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Description

This PR implements the get_service_endpoints MCP tool as part of the NIDS troubleshooting strategy (NE-2278).

Changes

  • New Tool: get_service_endpoints allows retrieving the full Endpoints object for a service.
  • Implementation: Uses controller-runtime client interface to support both live clusters and offline analysis (via potential file-based client injection).
  • Testing: Added comprehensive unit tests using fake client.

Related Resources

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

bentito added a commit to bentito/openshift-mcp-server that referenced this pull request Feb 19, 2026
This refactors query_prometheus to use DynamicClient and NetEdgeTestSuite, aligning with PR openshift#151 and PR openshift#144. Moves query_prometheus to the netedge package to share test infrastructure.

Signed-off-by: bentito <btofel@redhat.com>
@bentito
Copy link
Author

bentito commented Feb 25, 2026

/assign @matzew

@bentito
Copy link
Author

bentito commented Feb 25, 2026

@matzew this PR is just a follow-up to make the move to DynamicClient across our toolset

Copy link

@Thealisyed Thealisyed left a comment

Choose a reason for hiding this comment

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

This tool returns a raw EndpointSlice JSON. For the LLM agent, would it be helpful to filter or maybe summarize the output (ports, ready status etc..)
Wdyt?

…dpoints

This mirrors the changes in PR 147 (inspect_route) to extract key
fields like Nodes and Addresses from the EndpointSlice objects and
return them alongside the raw data as YAML.

Signed-off-by: bentito <btofel@redhat.com>
@bentito
Copy link
Author

bentito commented Mar 4, 2026

This tool returns a raw EndpointSlice JSON. For the LLM agent, would it be helpful to filter or maybe summarize the output (ports, ready status etc..) Wdyt?

I think you're correct here too, done in last commit, thanks!

@bentito
Copy link
Author

bentito commented Mar 10, 2026

ping @matzew when you can, I think okay for lgtm

Copy link
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@matzew
Copy link
Member

matzew commented Mar 13, 2026

/override "Konflux kflux-prd-rh02 / openshift-mcp-server-on-pull-request"

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 13, 2026
@matzew
Copy link
Member

matzew commented Mar 13, 2026

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 13, 2026
@openshift-ci
Copy link

openshift-ci bot commented Mar 13, 2026

@matzew: Overrode contexts on behalf of matzew: Konflux kflux-prd-rh02 / openshift-mcp-server-on-pull-request

Details

In response to this:

/override "Konflux kflux-prd-rh02 / openshift-mcp-server-on-pull-request"

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci
Copy link

openshift-ci bot commented Mar 13, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bentito, matzew

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link

openshift-ci bot commented Mar 13, 2026

@bentito: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit cfa14b8 into openshift:main Mar 13, 2026
10 of 11 checks passed
bentito added a commit to bentito/openshift-mcp-server that referenced this pull request Mar 13, 2026
This refactors query_prometheus to use DynamicClient and NetEdgeTestSuite, aligning with PR openshift#151 and PR openshift#144. Moves query_prometheus to the netedge package to share test infrastructure.

Signed-off-by: bentito <btofel@redhat.com>
matzew pushed a commit to bentito/openshift-mcp-server that referenced this pull request Mar 16, 2026
This refactors query_prometheus to use DynamicClient and NetEdgeTestSuite, aligning with PR openshift#151 and PR openshift#144. Moves query_prometheus to the netedge package to share test infrastructure.

Signed-off-by: bentito <btofel@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants