Skip to content

Commit 40bf221

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/azure/msal-node-5.1.2
2 parents ad54a80 + bd9af0b commit 40bf221

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tools/pipelines.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ function configurePipelineTools(server: McpServer, tokenProvider: () => Promise<
387387
pipelines: z.record(
388388
z.string().describe("Name of the pipeline resource."),
389389
z.object({
390-
runId: z.coerce.number().min(1).describe("Id of the source pipeline run that triggered or is referenced by this pipeline run."),
390+
runId: z.coerce.number().min(1).optional().describe("Id of the source pipeline run that triggered or is referenced by this pipeline run."),
391391
version: z.string().optional().describe("Version of the source pipeline run."),
392392
})
393393
),
@@ -439,6 +439,7 @@ function configurePipelineTools(server: McpServer, tokenProvider: () => Promise<
439439
const pipelineRun = await pipelinesApi.runPipeline(runRequest, project, pipelineId, pipelineVersion);
440440
const queuedBuild = { id: pipelineRun.id };
441441
const buildId = queuedBuild.id;
442+
442443
if (buildId === undefined) {
443444
throw new Error("Failed to get build ID from pipeline run");
444445
}

0 commit comments

Comments
 (0)