-
Notifications
You must be signed in to change notification settings - Fork 275
New Tool: Publish Custom Events to Event Grid Topics #514
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
New Tool: Publish Custom Events to Event Grid Topics #514
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
tools/Azure.Mcp.Tools.EventGrid/src/Services/EventGridService.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Services/EventGridService.cs
Outdated
Show resolved
Hide resolved
20f6579 to
6fc771a
Compare
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 a new MCP tool for publishing custom events to Azure Event Grid topics. The tool supports multiple event schemas (EventGrid, CloudEvents, Custom) and enables event-driven architectures by providing structured event publishing capabilities with delivery guarantees.
Key changes include:
- New
EventsPublishCommandfor publishing events to Event Grid topics - Support for EventGrid, CloudEvents, and Custom schema formats
- Comprehensive unit and live tests for event publishing scenarios
- Event schema validation and parsing logic
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
EventsPublishCommand.cs |
Main command implementation for publishing events to Event Grid topics |
EventGridService.cs |
Service layer implementation with event parsing and publishing logic |
EventsPublishCommandTests.cs |
Comprehensive unit tests covering various event publishing scenarios |
EventGridCommandTests.cs |
Live integration tests for event publishing functionality |
EventGridEventSchema.cs |
Model for EventGrid event schema with JSON serialization attributes |
EventPublishResult.cs |
Result model for event publishing operations |
| Various other files | Supporting options, setup, and configuration changes |
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Models/EventPublishResult.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Options/EventGridOptionDefinitions.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Services/EventGridService.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Services/EventGridService.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Services/EventGridService.cs
Outdated
Show resolved
Hide resolved
a828449 to
9990c21
Compare
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.EventGrid/src/Commands/Events/EventsPublishCommand.cs
Outdated
Show resolved
Hide resolved
2fac4f0 to
5233309
Compare
conniey
left a comment
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.
lgmt! ty
* merge conflict 1 * merge conflict 2 * merge conflict 3 * merge conflict 5 * merge conflict 6 * dotnet format * fixed with httpstatuscode * cleaned up a little * review comment * review comment * Addressed review comments * Addressed review comments except POJO * Refactored using POJO instead of JSON object traversal * defined loggerFactory * Addressed review comments * Removed additional validation
What does this PR do?
azmcp-eventgrid-events-publish - Publish custom events to Event Grid topics for event-driven architectures. This tool sends structured event data to Event Grid topics with schema validation and delivery guarantees for downstream subscribers. Returns publish operation status.
GitHub issue number?
#297
Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentation/docs/azmcp-commands.mdand/or/docs/fabric-commands.mdToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test prompts/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline