@azure-devops/mcp 2.10.0-nightly.20260921 → 2.10.0-nightly.20260923
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools/repositories.js +3 -4
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -506,8 +506,7 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
506
506
|
versionType: z
|
|
507
507
|
.enum(fileVersionTypeStrings)
|
|
508
508
|
.optional()
|
|
509
|
-
.
|
|
510
|
-
.describe("How to interpret the version parameter. Used for get_content. Defaults to 'Commit'."),
|
|
509
|
+
.describe("How to interpret the version parameter. Defaults to 'Commit' for get_content and 'Branch' for list_directory."),
|
|
511
510
|
recursive: z.boolean().optional().default(false).describe("Whether to list items recursively. Used for list_directory. Defaults to false."),
|
|
512
511
|
recursionDepth: z.coerce.number().min(1).optional().default(1).describe("Maximum depth for recursive listing. Used for list_directory when recursive is true. Defaults to 1."),
|
|
513
512
|
}, async ({ action, repositoryId, path, project, version, versionType, recursive, recursionDepth }) => {
|
|
@@ -517,7 +516,7 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
517
516
|
if (action === "get_content") {
|
|
518
517
|
if (!path)
|
|
519
518
|
return { content: [{ type: "text", text: "path is required for get_content" }], isError: true };
|
|
520
|
-
const versionDescriptor = version
|
|
519
|
+
const versionDescriptor = buildVersionDescriptor(version, versionType ?? "Commit");
|
|
521
520
|
const stream = await gitApi.getItemText(repositoryId, path, project, undefined, undefined, undefined, undefined, false, versionDescriptor, true);
|
|
522
521
|
const content = await streamToString(stream);
|
|
523
522
|
const streamError = extractAdoStreamError(content);
|
|
@@ -527,7 +526,7 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
527
526
|
return createExternalContentResponse(content, "repository file");
|
|
528
527
|
}
|
|
529
528
|
if (action === "list_directory") {
|
|
530
|
-
const versionDescriptor = buildVersionDescriptor(version, versionType
|
|
529
|
+
const versionDescriptor = buildVersionDescriptor(version, versionType);
|
|
531
530
|
const clampedDepth = Math.min(Math.max(recursionDepth || 1, 1), 10);
|
|
532
531
|
const recursionType = recursive ? VersionControlRecursionType.Full : VersionControlRecursionType.OneLevel;
|
|
533
532
|
const items = await gitApi.getItems(repositoryId, project, path, recursionType, true, false, false, false, versionDescriptor);
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.10.0-nightly.
|
|
1
|
+
export const packageVersion = "2.10.0-nightly.20260923";
|
package/package.json
CHANGED