feat: add ably event publishing for mcp worker installs#499
Merged
jonathannorris merged 9 commits intomainfrom Aug 22, 2025
Merged
feat: add ably event publishing for mcp worker installs#499jonathannorris merged 9 commits intomainfrom
jonathannorris merged 9 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds real-time event publishing to notify the dashboard when users successfully complete OAuth authentication with the hosted MCP Worker. The implementation uses Ably for publishing events to organization-specific channels.
- Added Ably event publishing for MCP worker OAuth completion
- Created centralized telemetry module with error handling
- Updated configuration and documentation for new dependency
Reviewed Changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
mcp-worker/src/ably.ts |
New module for publishing MCP install events to Ably channels |
mcp-worker/src/auth.ts |
Added event publishing to OAuth callback flow |
mcp-worker/package.json |
Added Ably dependency |
mcp-worker/wrangler.toml |
Added ABLY_API_KEY configuration comment and enabled AI binding |
mcp-worker/README.md |
Documented new event publishing functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
JamieSinn
reviewed
Aug 21, 2025
JamieSinn
approved these changes
Aug 21, 2025
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.
Add Ably Event Publishing for MCP Worker Installs
This PR adds real-time event publishing to the dashboard when users successfully install and authenticate with the hosted MCP Worker.
Changes
mcp-installevents to Ably on successful OAuth completion${orgId}-mcp-installAbly.Rest.Promisefollowing existing EventForwardingObject patternwaitUntil()to avoid blocking OAuth flowFiles Modified
mcp-worker/src/telemetry.ts- New centralized telemetry modulemcp-worker/src/auth.ts- Simplified OAuth callback with event publishingmcp-worker/package.json- Added Ably dependencymcp-worker/wrangler.toml- Environment variable commentsmcp-worker/worker-configuration.d.ts- AddedABLY_API_KEYtypingmcp-worker/README.md- Updated documentationConfiguration Required
ABLY_API_KEYsecret in Cloudflare Workers dashboard