Repository navigation
[REMOTE] Add tools to list, add, update and delete wiki page comments #1720
Matheus Mota (devmatheusmota)
started this conversation in
Backlog of Suggestions
Replies: 1 comment
|
Implementation for this is ready on my side, covering both local and remote: a list_page_comments action on the wiki tool and a wiki_page_comment_write tool (add/update/delete, reply via parentId), built on the WikiApi comment methods from azure-devops-node-api, with tests and TOOLSET.md updated. Would you accept a PR for it? Happy to adjust names or shape first if you prefer something different. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Type
Tool(s)
New tool request:
wikiactionlist_page_comments: list the comments on a wiki page.wiki_page_comment_writewith actionsadd,updateanddelete: write comments on a wiki page (addaccepts an optionalparentIdto reply).Description
The remote wiki toolset covers the page body (
wikilist_wikis/get_wiki/list_pages/get_page,search_wiki,wiki_upsert_page) but not the page comments. Work items and pull requests already have comment tools, so wiki pages are the only place where an agent can't read or post a comment.Why we need it: we keep one wiki page per production release, and the link to the release pull request is posted in the page comments. Today that step is done by hand or with a raw REST call outside the MCP server.
Endpoint (tested against our organization, both GET and POST work):
GET / POST https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments?api-version=7.1-preview.1
PATCH / DELETE https://dev.azure.com/{organization}/{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}?api-version=7.1-preview.1
The REST reference on Learn has no page for these routes (they are still preview), but the client methods are documented in WikiRestClient: https://learn.microsoft.com/en-us/javascript/api/azure-devops-extension-api/wikirestclient (addComment, listComments, updateComment, deleteComment).
Example prompts:
Same request for the local server: #1718
All reactions