Skip to main content
Glama

get_version

Retrieve detailed version information of the ArgoCD API server, including Git commit, version, build date, and compiler details, to monitor and manage server updates effectively.

Instructions

Version returns version information of the API server using api/version This endpoint returns version details of the ArgoCD API server including Git commit, version, build date, compiler information, and more. Returns: Version information of the ArgoCD API server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_version' tool. It asynchronously fetches version information from the ArgoCD API server using a custom API request to the '/version' endpoint, handling success and error cases appropriately.
    async def get_version() -> Dict[str, Any]: """ Version returns version information of the API server using api/version This endpoint returns version details of the ArgoCD API server including Git commit, version, build date, compiler information, and more. Returns: Version information of the ArgoCD API server """ # Note: This endpoint uses a different base path ('/api/version' instead of '/api/v1/...') # We need to modify the path to point to just 'version' since the client adds '/api/v1/' success, data = await make_api_request("../version") if success: # Return the full version response return data else: # Return a properly structured error dictionary return { "error": data.get("error", "Failed to retrieve ArgoCD version information") }
  • server.py:38-38 (registration)
    The registration of the 'get_version' tool using the MCP FastMCP server's tool decorator, linking the handler from tools.version.
    mcp.tool()(version.get_version)

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/severity1/argocd-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server