Skip to main content
Glama
jfrog

JFrog MCP Server

Official
by jfrog

jfrog_list_builds

Retrieve a comprehensive list of all builds stored on the JFrog Platform using the JFrog MCP Server for efficient build tracking and management.

Instructions

return a list of all my build in the jfrog platform

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool definition including the handler function for 'jfrog_list_builds', which invokes getAllBuilds() to fetch the builds list.
    const getAllBuildsTool = {
      name: "jfrog_list_builds",
      description: "return a list of all my build in the jfrog platform",
      inputSchema: zodToJsonSchema(z.object({})),
      ////outputSchema: zodToJsonSchema(buildsSchemas.JFrogBuildsListSchema),
      handler: async () => {
        return await getAllBuilds();
      }
    };
  • Helper function that performs the actual API request to list all JFrog builds and parses the response using the schema.
    export async function getAllBuilds() {
      const response = await jfrogRequest("/artifactory/api/build", {
        method: "GET",
      });
         
      return buildsSchemas.JFrogBuildsListSchema.parse(response);
    }
  • Zod schema used for parsing and validating the output of the builds list API response.
    export const JFrogBuildsListSchema = z.object({
      uri: z.string(),
      builds: z.array(z.object({ uri: z.string(), lastStarted: z.string() }))
    });
  • tools/builds.ts:54-57 (registration)
    Export of BuildsTools array that registers the jfrog_list_builds tool locally.
    export const BuildsTools = [
      getAllBuildsTool,
      getSpecificBuildTool
    ];
  • tools/index.ts:13-23 (registration)
    Global tools array that includes BuildsTools, thereby registering jfrog_list_builds among all tools.
    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