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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools/builds.ts:43-51 (handler)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(); } };
- tools/builds.ts:7-13 (helper)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); }
- schemas/builds.ts:16-19 (schema)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, ];