Implement update_work_item handler #18
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces the implementation of the
update_work_item
handler for the Azure DevOps MCP server, along with comprehensive tests and necessary schema and interface updates. The key changes include the addition of theupdate_work_item
handler, the creation of the corresponding schema and options, and the implementation of unit tests to ensure the functionality works as expected.Implementation of
update_work_item
handler:updateWorkItem
function to handle updating work items insrc/operations/workitems.ts
. This function constructs a JSON patch document based on provided options and updates the work item using Azure DevOps API.UpdateWorkItemSchema
andUpdateWorkItemOptions
to define the schema and options for updating a work item insrc/operations/workitems.ts
. [1] [2]Server configuration:
update_work_item
handler in the Azure DevOps server configuration insrc/server.ts
. [1] [2]Task management documentation:
todo.md
file to thedoing.md
file to reflect its current status. [1] [2]Unit tests:
updateWorkItem
function intests/unit/operations/workitems-update-coverage.test.ts
. These tests cover various scenarios, including minimal fields, all standard fields, additional fields, error handling, and API call verification.