@azure-devops/mcp 2.3.0-nightly.20251203 → 2.3.0-nightly.20251204
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 +0 -36
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,6 @@ const REPO_TOOLS = {
|
|
|
21
21
|
reply_to_comment: "repo_reply_to_comment",
|
|
22
22
|
create_pull_request_thread: "repo_create_pull_request_thread",
|
|
23
23
|
update_pull_request_thread: "repo_update_pull_request_thread",
|
|
24
|
-
resolve_comment: "repo_resolve_comment",
|
|
25
24
|
search_commits: "repo_search_commits",
|
|
26
25
|
list_pull_requests_by_commits: "repo_list_pull_requests_by_commits",
|
|
27
26
|
};
|
|
@@ -933,41 +932,6 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
933
932
|
};
|
|
934
933
|
}
|
|
935
934
|
});
|
|
936
|
-
server.tool(REPO_TOOLS.resolve_comment, "Resolves a specific comment thread on a pull request.", {
|
|
937
|
-
repositoryId: z.string().describe("The ID of the repository where the pull request is located."),
|
|
938
|
-
pullRequestId: z.number().describe("The ID of the pull request where the comment thread exists."),
|
|
939
|
-
threadId: z.number().describe("The ID of the thread to be resolved."),
|
|
940
|
-
fullResponse: z.boolean().optional().default(false).describe("Return full thread JSON response instead of a simple confirmation message."),
|
|
941
|
-
}, async ({ repositoryId, pullRequestId, threadId, fullResponse }) => {
|
|
942
|
-
try {
|
|
943
|
-
const connection = await connectionProvider();
|
|
944
|
-
const gitApi = await connection.getGitApi();
|
|
945
|
-
const thread = await gitApi.updateThread({ status: 2 }, // 2 corresponds to "Resolved" status
|
|
946
|
-
repositoryId, pullRequestId, threadId);
|
|
947
|
-
// Check if the thread was successfully resolved
|
|
948
|
-
if (!thread) {
|
|
949
|
-
return {
|
|
950
|
-
content: [{ type: "text", text: `Error: Failed to resolve thread ${threadId}. The thread status was not updated successfully.` }],
|
|
951
|
-
isError: true,
|
|
952
|
-
};
|
|
953
|
-
}
|
|
954
|
-
if (fullResponse) {
|
|
955
|
-
return {
|
|
956
|
-
content: [{ type: "text", text: JSON.stringify(thread, null, 2) }],
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
return {
|
|
960
|
-
content: [{ type: "text", text: `Thread ${threadId} was successfully resolved.` }],
|
|
961
|
-
};
|
|
962
|
-
}
|
|
963
|
-
catch (error) {
|
|
964
|
-
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
|
|
965
|
-
return {
|
|
966
|
-
content: [{ type: "text", text: `Error resolving comment: ${errorMessage}` }],
|
|
967
|
-
isError: true,
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
});
|
|
971
935
|
const gitVersionTypeStrings = Object.values(GitVersionType).filter((value) => typeof value === "string");
|
|
972
936
|
server.tool(REPO_TOOLS.search_commits, "Search for commits in a repository with comprehensive filtering capabilities. Supports searching by description/comment text, time range, author, committer, specific commit IDs, and more. This is the unified tool for all commit search operations.", {
|
|
973
937
|
project: z.string().describe("Project name or ID"),
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.3.0-nightly.
|
|
1
|
+
export const packageVersion = "2.3.0-nightly.20251204";
|