Skip to main content
Glama
jfrog

JFrog MCP Server

Official
by jfrog

jfrog_list_runtime_clusters

Retrieve a paginated list of all runtime clusters on the JFrog Platform, with options to set limits and manage pagination for efficient cluster management.

Instructions

return a list of all my runtime clusters in the jfrog platform

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoThe maximum number of clusters to return
next_keyNoThe next key to use for pagination

Implementation Reference

  • Handler function for the jfrog_list_runtime_clusters tool that validates input and delegates to getAllRuntimeClusters API function
    handler: async (args: any) => {
      const parsedArgs = getAllRuntimeClustersSchema.parse(args);
      return await getAllRuntimeClusters(parsedArgs.limit);
    }
  • Zod input schema defining parameters for listing runtime clusters: limit (default 50) and optional next_key for pagination
    export const getAllRuntimeClustersSchema = z.object({
      limit: z.number().int().default(50).describe("The maximum number of clusters to return"),
      next_key: z.string().optional().describe("The next key to use for pagination")
    });
  • Helper function that performs the actual API call to list runtime clusters using jfrogRequest and parses the response with the response schema
    export async function getAllRuntimeClusters(limit:number) {
      const response = await jfrogRequest("/runtime/api/v1/clusters",{
        method: "POST",
        body: {
          limit
        }
      });
       
      return JFrogRuntimeClustersListResponseSchema.parse(response);
    }
  • tools/runtime.ts:90-94 (registration)
    Module-level registration of runtime tools array including the jfrog_list_runtime_clusters tool
    export const RuntimeTools = [
      getAllRuntimeClustersTool,
      getRuntimeClusterTool,
      listRunningImagesTool
    ];
  • tools/index.ts:13-23 (registration)
    Global tools registration array that includes RuntimeTools (containing jfrog_list_runtime_clusters) via spread operator
    export const tools =[
      ...RepositoryTools,
      ...BuildsTools,
      ...RuntimeTools,
      ...AccessTools,
      ...AQLTools,
      ...CatalogTools,
      ...CurationTools,
      ...PermissionsTools,
      ...ArtifactSecurityTools,
    ];

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/jfrog/mcp-jfrog'

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