Skip to content

Implement work item creation tool and update capability matrix#7

Merged
gadeynebram merged 4 commits into
mainfrom
feature/add_wit
May 18, 2026
Merged

Implement work item creation tool and update capability matrix#7
gadeynebram merged 4 commits into
mainfrom
feature/add_wit

Conversation

@gadeynebram
Copy link
Copy Markdown
Owner

This pull request adds support for creating new work items in Azure DevOps via the .NET MCP server, filling a key functional gap. The implementation follows established patterns for tool definition, error handling, and service layering, and includes comprehensive test coverage and documentation. The new tool method allows clients to specify the collection, project, work item type, title, and an optional description, returning the created work item's ID, type, title, and URL in a JSON response.

New Work Item Creation Capability:

  • Added a new MCP tool method wit_work_item_write_create in WorkItemTools to create work items with specified type, title, and optional description, returning a structured JSON result.
  • Updated the capabilities matrix to reflect the new work item creation capability and its implementation status.

Service and API Layer Enhancements:

  • Extended the IWorkItemContextService interface and its implementations to include CreateWorkItemAsync, which creates a new work item using Azure DevOps APIs and returns a CreateWorkItemResult. [1] [2] [3]
  • Integrated the new service method into the infrastructure layer with proper validation, error handling, and field mapping.

Testing and Validation:

  • Added and updated integration tests to cover successful creation, creation with description, and error scenarios for the new tool method, using fake and throwing service implementations. [1] [2] [3] [4]

Documentation and Specification:

  • Added OpenSpec design and proposal documents outlining the context, goals, design decisions, risks, and migration plan for the new capability. [1] [2] [3]

These changes enable programmatic work item creation in Azure DevOps Server environments, consistent with existing tool patterns and contracts.

@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@gadeynebram gadeynebram merged commit 0bca1ee into main May 18, 2026
5 checks passed
@gadeynebram gadeynebram deleted the feature/add_wit branch May 18, 2026 15:05
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