Add Cosmos DB container copy job MCP tools#90
Open
niteshvijay1995 wants to merge 1 commit intoAzureCosmosDB:mainfrom
Open
Add Cosmos DB container copy job MCP tools#90niteshvijay1995 wants to merge 1 commit intoAzureCosmosDB:mainfrom
niteshvijay1995 wants to merge 1 commit intoAzureCosmosDB:mainfrom
Conversation
Add 7 new MCP tools for managing Cosmos DB container copy jobs via the ARM copyJobs REST API (api-version 2025-05-01-preview): - create_copy_job: Create a copy job (NoSQL, Cassandra, Mongo, Blob) - get_copy_job: Get job status and details - list_copy_jobs: List all copy jobs for the account - cancel_copy_job: Cancel a running job - pause_copy_job: Pause a running job - resume_copy_job: Resume a paused job - complete_copy_job: Complete an Online copy job New files: - Services/CopyJobService.cs: ARM REST service using DefaultAzureCredential - Tests/CopyJobServiceTests.cs: Unit tests for parameter validation Modified files: - MCPProtocolController.cs: Tool registration and dispatch - Program.cs: DI registration for CopyJobService + IHttpClientFactory Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
|
This PR adds seven new MCP tools, but the user-facing docs were not updated. The tool list here still only documents the original Cosmos data-plane tools and does not mention the new copy-job operations. Since these new tools use the ARM management plane, the docs should also call out the new input and permission model: subscriptionId is required, the account is resolved from COSMOS_ENDPOINT, and the caller needs ARM/RBAC access to list Cosmos accounts and manage copy jobs. Without that, the feature will be difficult to discover and configure correctly. Update the instructions accordingly @jcodella WDYT? these tools should go to Azure MCP server? also please review the PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds 7 new MCP tools for managing Cosmos DB container copy jobs via the ARM copyJobs REST API (\�pi-version 2025-05-01-preview).
New Tools
Implementation Details
Files Changed
Testing