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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools/version.py:7-29 (handler)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)