Skip to content

Conversation

@alexmt
Copy link
Contributor

@alexmt alexmt commented Oct 22, 2025

Closes #63

PR adds getResource tool that allows retrieving live resource manifest .

@alexmt
Copy link
Contributor Author

alexmt commented Oct 22, 2025

@leoluz earlier we've agreed to add getResources with filtering but I realized that Argo CD does not really have getResources (in our conversation I was thinking about different API ). So I think getResource is the best we can do.

@jessesuen jessesuen changed the title feat: add getResource tool to retrieve life resource manifest feat: add getResource tool to retrieve live resource manifest Oct 22, 2025
@alexmt alexmt force-pushed the feat/get-resource branch from 8e21132 to c21d8cf Compare October 22, 2025 23:42
@alexmt alexmt merged commit 98e9a70 into main Oct 22, 2025
4 checks passed
@alexmt alexmt deleted the feat/get-resource branch October 22, 2025 23:44
@leoluz
Copy link
Collaborator

leoluz commented Oct 23, 2025

@alexmt That is a great starting point. Thank you Alex!
However, unfortunately, it leaves us in an non desired stage because we need to send one request to get the list of all resources first with /api/v1/applications/<app>/resource-tree. Such method isn't available in the current MCP today and even if it was, we would have to send multiple requests to the MCP to get the state of every resource which is not ideal. As the next step I can create a proposal in Argo CD to expose a new API to get the live state of every resource in the app and then we could use that API in the MCP.

@alexmt
Copy link
Contributor Author

alexmt commented Oct 23, 2025

@alexmt , the getResourceTree is actually available. It is possible to ask AI to give manifests of all resources - it should call getResourceTree and then getResource on by one. It indeed will be a lot of resource requests.

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.

Feature Request: add call for "Get Resource"

4 participants