This repository was archived by the owner on Sep 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 338
Add azmcp-storage-queue-message-send command #794
Merged
Merged
Conversation
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for sending messages to Azure Storage queues through the Azure MCP toolset. The implementation introduces a new MCP tool azmcp_storage_queue_message_send
that allows sending messages with configurable time-to-live (TTL) and visibility timeout settings.
- Adds queue message sending functionality with the
azmcp storage queue message send
command - Implements proper error handling for queue-specific scenarios (404 for queue not found, 403 for authorization failures)
- Includes comprehensive unit and integration tests to validate the new functionality
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
areas/storage/src/AzureMcp.Storage/AzureMcp.Storage.csproj | Adds Azure.Storage.Queues package dependency |
areas/storage/src/AzureMcp.Storage/Services/IStorageService.cs | Adds SendQueueMessage method signature to the service interface |
areas/storage/src/AzureMcp.Storage/Services/StorageService.cs | Implements queue message sending functionality and queue service client creation |
areas/storage/src/AzureMcp.Storage/Commands/Queue/BaseQueueCommand.cs | Base class for queue-related commands with common queue options |
areas/storage/src/AzureMcp.Storage/Commands/Queue/Message/QueueMessageSendCommand.cs | Main command implementation for sending queue messages |
areas/storage/src/AzureMcp.Storage/Models/QueueMessageSendResult.cs | Result model containing message metadata |
areas/storage/src/AzureMcp.Storage/Options/Queue/BaseQueueOptions.cs | Base options class for queue commands |
areas/storage/src/AzureMcp.Storage/Options/Queue/Message/QueueMessageSendOptions.cs | Specific options for queue message send command |
areas/storage/src/AzureMcp.Storage/StorageSetup.cs | Registers the new queue command in the command hierarchy |
areas/storage/tests/AzureMcp.Storage.UnitTests/Queue/Message/QueueMessageSendCommandTests.cs | Comprehensive unit tests for the command |
areas/storage/tests/AzureMcp.Storage.LiveTests/StorageCommandTests.cs | Integration tests for queue message functionality |
areas/storage/src/AzureMcp.Storage/Commands/Queue/Message/QueueMessageSendCommand.cs
Show resolved
Hide resolved
areas/storage/src/AzureMcp.Storage/Commands/Queue/Message/QueueMessageSendCommand.cs
Show resolved
Hide resolved
areas/storage/src/AzureMcp.Storage/Commands/Queue/Message/QueueMessageSendCommand.cs
Show resolved
Hide resolved
jongio
reviewed
Aug 4, 2025
areas/storage/src/AzureMcp.Storage/Commands/Queue/Message/QueueMessageSendCommand.cs
Outdated
Show resolved
Hide resolved
jongio
reviewed
Aug 11, 2025
jongio
approved these changes
Aug 11, 2025
13 tasks
chidozieononiwu
pushed a commit
to chidozieononiwu/azure-mcp
that referenced
this pull request
Aug 18, 2025
* Add command * Add tests and documentation * Use correct base command * Fix linting * Fix linting again * CSpell testfilesystem * PR feedback * Minor cleanup * Fix linting * Fix linting * subscriptionId -> subscription
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What does this PR do?
The
QueueMessageSend
branch adds support for sending messages to Azure Storage queues through the Azure MCP (Model Context Protocol) toolset. The changes span across 2 commits and include the following major additions:✨ New Features Added
1. Queue Message Send Command
azmcp_storage_queue_message_send
that allows sending messages to Azure Storage queuesazmcp storage queue message send
2. Core Implementation
SendQueueMessage
method toIStorageService
andStorageService
Azure.Storage.Queues
v12.22.0)CreateQueueServiceClient
method for queue operations🏗️ Architecture & Structure
1. Command Structure
BaseQueueCommand<T>
- Base class for queue-related commandsQueueMessageSendCommand
- Specific implementation for sending messagesQueueMessageSendOptions
- Options class for command parameters2. Models & Results
QueueMessageSendResult
- Response model containing:3. Option Definitions
queue-name
,message-content
,time-to-live-in-seconds
,visibility-timeout-in-seconds
🧪 Testing & Quality
1. Unit Tests
QueueMessageSendCommandTests.cs
2. Integration Tests
StorageCommandTests.cs
3. Test Infrastructure
testqueue
)📚 Documentation & Configuration
1. Documentation Updates
2. JSON Serialization
StorageJsonContext
to include new result types for AOT compatibility🔧 Command Usage
🚀 Technical Implementation Details
This implementation enables asynchronous messaging capabilities within the Azure MCP toolset, allowing users to send messages to Azure Storage queues with configurable delivery and visibility settings.
Pre-merge Checklist
CHANGELOG.md
for product changes (features, bug fixes, UI/UX, updated dependencies
).\eng\common\spelling\Invoke-Cspell.ps1
README.md
documentation/docs/azmcp-commands.md
/e2eTests/e2eTestPrompts.md