Commit Graph

402 Commits

Author SHA1 Message Date
openshift-merge-bot[bot]
7107a2474c Merge pull request #35 from openshift/konflux/references/main
chore(deps): update konflux references main
2025-09-30 08:56:49 +00:00
red-hat-konflux[bot]
bf57c06f86 chore(deps): update konflux references main
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-09-27 08:12:28 +00:00
openshift-merge-bot[bot]
0959b36f39 Merge pull request #34 from ardaguclu/sync-downstream
NO-JIRA: Sync downstream with the latest changes in upstream
2025-09-25 14:04:01 +00:00
Arda Güçlü
45fac4ff35 Upstream<carry>: Update Dockerfile.ocp 2025-09-25 16:44:25 +03:00
Arda Güçlü
a9608d251a Upstream<drop>: Run go mod vendor 2025-09-25 16:40:49 +03:00
Arda Güçlü
459677365f Upstream<carry>: Add OCP specific configurations 2025-09-25 16:40:25 +03:00
Arda Güçlü
da152bcb50 Merge remote-tracking branch 'downstream/main' into sync-downstream 2025-09-25 16:35:55 +03:00
Marc Nuri
c69e90c70d fix(mcp): InputSchema schema with empty properties for no-arg tools (#341)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-25 11:54:07 +02:00
openshift-merge-bot[bot]
6c8de3b5d0 Merge pull request #32 from openshift/konflux/references/main
chore(deps): update konflux references main
2025-09-25 08:45:45 +00:00
red-hat-konflux[bot]
7137b67019 chore(deps): update konflux references main
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-09-25 08:13:25 +00:00
iamsudip
053fb2e31c feat(pods): add optional tail parameter to pod logs retrieval (#335)
* feat(pods): add tailLines parameter to pod logs retrieval with default 256 lines

Signed-off-by: iamsudip <sudip.maji@harness.io>

* address review comments

Signed-off-by: iamsudip <sudip.maji@harness.io>

* test(pods): add tailLines parameter to pod logs retrieval with default 256 lines

Signed-off-by: Marc Nuri <marc@marcnuri.com>

---------

Signed-off-by: iamsudip <sudip.maji@harness.io>
Signed-off-by: Marc Nuri <marc@marcnuri.com>
Co-authored-by: Marc Nuri <marc@marcnuri.com>
2025-09-25 09:17:53 +02:00
openshift-merge-bot[bot]
47a3492d1d Merge pull request #33 from ralphbean/main-KONFLUX-6210-openshift-mcp-server
chore(KONFLUX-6210): fix and set name and cpe label for openshift-mcp-server
2025-09-25 05:52:19 +00:00
Ralph Bean
0181f6955a chore(KONFLUX-6210): fix and set name and cpe label for openshift-mcp-server
For https://issues.redhat.com/browse/KONFLUX-6210, clair needs access to a name and cpe label that it can use to look up the image in VEX statements.

See also release-engineering/rhtap-ec-policy#149

Signed-off-by: Ralph Bean <rbean@redhat.com>
Assisted-by: Gemini
2025-09-24 18:15:18 -04:00
dependabot[bot]
8e666d4c67 build(deps): bump github.com/google/jsonschema-go from 0.2.3 to 0.3.0 (#338)
Bumps [github.com/google/jsonschema-go](https://github.com/google/jsonschema-go) from 0.2.3 to 0.3.0.
- [Release notes](https://github.com/google/jsonschema-go/releases)
- [Commits](https://github.com/google/jsonschema-go/compare/v0.2.3...v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/google/jsonschema-go
  dependency-version: 0.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 10:50:34 +02:00
Andrew Block
4c5bce1b65 feat(container): added non-privileged image user (#336)
Signed-off-by: Andrew Block <andy.block@gmail.com>
2025-09-22 10:30:15 +02:00
dependabot[bot]
2b72f5f9ab build(deps): bump github.com/mark3labs/mcp-go from 0.39.1 to 0.40.0 (#337)
Bumps [github.com/mark3labs/mcp-go](https://github.com/mark3labs/mcp-go) from 0.39.1 to 0.40.0.
- [Release notes](https://github.com/mark3labs/mcp-go/releases)
- [Commits](https://github.com/mark3labs/mcp-go/compare/v0.39.1...v0.40.0)

---
updated-dependencies:
- dependency-name: github.com/mark3labs/mcp-go
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 10:28:32 +02:00
openshift-merge-bot[bot]
8f1fffe136 Merge pull request #31 from openshift/konflux/references/main
chore(deps): update konflux references main
2025-09-20 12:27:00 +00:00
red-hat-konflux[bot]
c762cdcbbc chore(deps): update konflux references main
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-09-20 12:12:06 +00:00
Marc Nuri
5b33e1a065 chore(doc): fix cursor link (#334)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-18 17:11:44 +02:00
Marc Nuri
8af889bc8f test(mcp): refactor helm toolset tests (#333)
Refactor tests to new approach before adding more functionality.

Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-18 16:08:53 +02:00
dependabot[bot]
76e22321f5 build(deps): bump helm.sh/helm/v3 from 3.18.6 to 3.19.0 (#321)
Bumps [helm.sh/helm/v3](https://github.com/helm/helm) from 3.18.6 to 3.19.0.
- [Release notes](https://github.com/helm/helm/releases)
- [Commits](https://github.com/helm/helm/compare/v3.18.6...v3.19.0)

---
updated-dependencies:
- dependency-name: helm.sh/helm/v3
  dependency-version: 3.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 07:13:31 +02:00
Marc Nuri
6e29a2ada5 feat(pods): update metrics to comply with new API
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-18 07:07:46 +02:00
dependabot[bot]
22de31d04d build(deps): bump k8s.io/kubectl from 0.33.4 to 0.34.1
Bumps [k8s.io/kubectl](https://github.com/kubernetes/kubectl) from 0.33.4 to 0.34.1.
- [Commits](https://github.com/kubernetes/kubectl/compare/v0.33.4...v0.34.1)

---
updated-dependencies:
- dependency-name: k8s.io/kubectl
  dependency-version: 0.34.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-18 07:07:46 +02:00
dependabot[bot]
97236a7bcd build(deps): bump golang.org/x/net from 0.42.0 to 0.44.0 (#332)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.42.0 to 0.44.0.
- [Commits](https://github.com/golang/net/compare/v0.42.0...v0.44.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 06:08:51 +02:00
Marc Nuri
94baad6570 fix(cmd): disable klog in STDIO mode (#331)
Prevents protocol issues with some clients.

Kubernetes tooling uses klog to log messages.
Some of these messages end up logged in the stderr or stdout which breaks some of the clients that expect jsonrpc messages.

Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-17 17:03:40 +02:00
Marc Nuri
e16114dfc5 test(mcp): refactor core toolset tests (namespaces) (#330)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-17 15:48:57 +02:00
Marc Nuri
2bf6c549fe test(mcp): remove side-effects from toolsets tests (#329)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-17 12:06:33 +02:00
Marc Nuri
d6936f42d3 test(mcp): refactor events toolset tests (#328)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-17 11:48:35 +02:00
Marc Nuri
f496c643e7 test(mcp): refactor configuration toolset tests (#327)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-17 11:11:50 +02:00
Marc Nuri
d9d35b9834 test(toolsets): toolset specific metadata tests (#326)
- Refactor tests to use testify (more clarity+composability for complex tests)
- Tests for default toolsets
- Tests for configured, granular toolsets

Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-17 11:06:17 +02:00
Marc Nuri
48cf204a89 feat(toolsets): add support for multiple toolsets in configuration (#323)
Users can now enable or disable different toolsets either by providing
a command-line flag or by setting the toolsets array field in the TOML
configuration.

Downstream Kubernetes API developers can declare toolsets for their
APIs by creating a new nested package in pkg/toolsets and registering
it in pkg/mcp/modules.go

Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-17 10:53:56 +02:00
dependabot[bot]
3fc4fa49bb build(deps): bump github.com/google/jsonschema-go from 0.2.2 to 0.2.3 (#324)
Bumps [github.com/google/jsonschema-go](https://github.com/google/jsonschema-go) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/google/jsonschema-go/releases)
- [Commits](https://github.com/google/jsonschema-go/compare/v0.2.2...v0.2.3)

---
updated-dependencies:
- dependency-name: github.com/google/jsonschema-go
  dependency-version: 0.2.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-15 06:19:58 +02:00
openshift-merge-bot[bot]
a68c2a849e Merge pull request #30 from openshift/konflux/references/main
chore(deps): update konflux references main
2025-09-13 12:52:44 +00:00
red-hat-konflux[bot]
e5c959bb5f chore(deps): update konflux references main
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-09-13 12:12:21 +00:00
Marc Nuri
209e8434d5 feat(mcp): toolset definitions completely agnostic from underlying MCP impl (#322)
Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-12 11:56:22 +02:00
Marc Nuri
2b6c886d95 refactor(mcp): toolset Tools definition is agnostic of MCP impl (#319)
Initial PR to make the toolsets agnostic of the usd MCP implementation (migration to go-sdk).
The decoupling will also be needed to move the different toolsets to separate nested packages (toolsets).

Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-12 09:58:54 +02:00
dependabot[bot]
4361a9e7d8 build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1 (#320)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.10.0 to 1.11.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.10.0...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-12 06:02:41 +02:00
Marc Nuri
ea641e6796 test(mcp): toolset metadata assertion (#318)
This test ensures that any tool definition refactoring
preserves the current behavior.

Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-11 10:31:39 +02:00
Samuel Masuy
6c573f31c8 feat(kubernetes): add support for previousPod container logs (#256)
Add 'previous' parameter to pods_log tool to retrieve logs from terminated containers, equivalent to kubectl logs --previous functionality.
This enables debugging of containers that have restarted due to crashes or updates.

Signed-off-by: Samuel Masuy <samuel.masuy@goto.com>
Co-authored-by: opencode <noreply@opencode.ai>
2025-09-11 09:29:51 +02:00
Marc Nuri
10c82f7bff refactor(toolsets): renamed Profile to Toolset (#309)
As a prior step to providing support for toolsets
this change repurposes the current work in profiles
which partially aligns with the toolsets expected features

Signed-off-by: Marc Nuri <marc@marcnuri.com>
2025-09-11 09:25:09 +02:00
dependabot[bot]
467e7e6757 build(deps): bump k8s.io/apiextensions-apiserver from 0.34.0 to 0.34.1 (#317)
Bumps [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver) from 0.34.0 to 0.34.1.
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases)
- [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.34.0...v0.34.1)

---
updated-dependencies:
- dependency-name: k8s.io/apiextensions-apiserver
  dependency-version: 0.34.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-11 05:57:17 +02:00
dependabot[bot]
a8b6041dbf build(deps): bump k8s.io/cli-runtime from 0.34.0 to 0.34.1 (#314)
Bumps [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime) from 0.34.0 to 0.34.1.
- [Commits](https://github.com/kubernetes/cli-runtime/compare/v0.34.0...v0.34.1)

---
updated-dependencies:
- dependency-name: k8s.io/cli-runtime
  dependency-version: 0.34.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-11 05:50:05 +02:00
dependabot[bot]
193ac1f239 build(deps): bump k8s.io/metrics from 0.34.0 to 0.34.1 (#312)
Bumps [k8s.io/metrics](https://github.com/kubernetes/metrics) from 0.34.0 to 0.34.1.
- [Commits](https://github.com/kubernetes/metrics/compare/v0.34.0...v0.34.1)

---
updated-dependencies:
- dependency-name: k8s.io/metrics
  dependency-version: 0.34.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-11 05:42:58 +02:00
dependabot[bot]
25033531bd build(deps): bump k8s.io/api from 0.34.0 to 0.34.1 (#311)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.34.0 to 0.34.1.
- [Commits](https://github.com/kubernetes/api/compare/v0.34.0...v0.34.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-version: 0.34.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-11 05:42:28 +02:00
dependabot[bot]
36bb0b9e51 build(deps): bump github.com/spf13/afero from 1.14.0 to 1.15.0 (#307)
Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](https://github.com/spf13/afero/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/afero
  dependency-version: 1.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-10 19:19:50 +02:00
dependabot[bot]
a6904999d0 build(deps): bump sigs.k8s.io/controller-runtime from 0.22.0 to 0.22.1 (#306)
Bumps [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.22.0...v0.22.1)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-version: 0.22.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-10 19:19:18 +02:00
dependabot[bot]
6bfa127841 build(deps): bump golang.org/x/oauth2 from 0.30.0 to 0.31.0 (#302)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.30.0 to 0.31.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-version: 0.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 10:56:45 +02:00
dependabot[bot]
18005a33b4 build(deps): bump golang.org/x/sync from 0.16.0 to 0.17.0 (#303)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/sync/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 09:36:40 +02:00
openshift-merge-bot[bot]
71f6c47f62 Merge pull request #29 from openshift/konflux/references/main
chore(deps): update konflux references main
2025-09-06 08:54:52 +00:00
red-hat-konflux[bot]
a4ddcdc214 chore(deps): update konflux references main
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
2025-09-06 08:10:48 +00:00