Skip to content

Implement update_work_item handler #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2025
Merged

Conversation

Tiberriver256
Copy link
Owner

@Tiberriver256 Tiberriver256 commented Mar 15, 2025

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 the update_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:

  • Added updateWorkItem function to handle updating work items in src/operations/workitems.ts. This function constructs a JSON patch document based on provided options and updates the work item using Azure DevOps API.
  • Introduced UpdateWorkItemSchema and UpdateWorkItemOptions to define the schema and options for updating a work item in src/operations/workitems.ts. [1] [2]

Server configuration:

  • Registered the update_work_item handler in the Azure DevOps server configuration in src/server.ts. [1] [2]

Task management documentation:

  • Moved Task 2.4 from the todo.md file to the doing.md file to reflect its current status. [1] [2]

Unit tests:

  • Added comprehensive unit tests for the updateWorkItem function in tests/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.

Implemented the update_work_item handler for the Azure DevOps MCP server with comprehensive tests. This handler allows updating existing work items with various fields including title, description, state, and custom fields.
@Tiberriver256 Tiberriver256 merged commit e27dff3 into main Mar 15, 2025
1 check passed
@Tiberriver256 Tiberriver256 deleted the implement-update-work-item branch March 15, 2025 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant