-
Notifications
You must be signed in to change notification settings - Fork 4
feat: implement cloudflare worker for mcp sse protocol #475
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
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
4236780 to
8bbef6c
Compare
- Create MCPToolRegistry interface and class for tool management - Add IDevCycleApiClient interface for API abstraction - Refactor project tools to use registry pattern - Add central tool registration coordination - Maintain backward compatibility with legacy exports - Add comprehensive registry tests (7 test cases) This enables sharing tool implementations between local and remote MCP servers while preserving existing functionality. Phase 1.1 of Cloudflare Worker plan.
- Add dedicated API interface module (src/mcp/api/interface.ts) - Create IDevCycleApiClient, IAuthContext, and factory interfaces - Implement LocalDevCycleApiClient wrapping existing DevCycleApiClient - Add WorkerDevCycleApiClient skeleton for Cloudflare Worker support - Move interface from registry to dedicated API module - Add comprehensive interface tests (8 test cases) - Create API abstraction documentation This enables same tool implementations to work with different auth strategies: - Local: file system, environment variables, SSO tokens - Worker: OAuth JWT tokens from Cloudflare Worker context Phase 1.2 of Cloudflare Worker plan.
…acy exports single source of truth
…s, disable custom props tools
0352427 to
60a1651
Compare
a0f01f4 to
40269eb
Compare
e2d1ea7 to
86462ee
Compare
jonathannorris
added a commit
that referenced
this pull request
Aug 11, 2025
* docs: add cloudflare worker implementation plan for mcp sse * feat: extract core tool logic into registry pattern - Create MCPToolRegistry interface and class for tool management - Add IDevCycleApiClient interface for API abstraction - Refactor project tools to use registry pattern - Add central tool registration coordination - Maintain backward compatibility with legacy exports - Add comprehensive registry tests (7 test cases) This enables sharing tool implementations between local and remote MCP servers while preserving existing functionality. Phase 1.1 of Cloudflare Worker plan. * feat: create abstracted API client interface for dual-mode operation - Add dedicated API interface module (src/mcp/api/interface.ts) - Create IDevCycleApiClient, IAuthContext, and factory interfaces - Implement LocalDevCycleApiClient wrapping existing DevCycleApiClient - Add WorkerDevCycleApiClient skeleton for Cloudflare Worker support - Move interface from registry to dedicated API module - Add comprehensive interface tests (8 test cases) - Create API abstraction documentation This enables same tool implementations to work with different auth strategies: - Local: file system, environment variables, SSO tokens - Worker: OAuth JWT tokens from Cloudflare Worker context Phase 1.2 of Cloudflare Worker plan. * refactor(mcp): eliminate duplication in tool definitions and make legacy exports single source of truth * refactor: consolidate tool registration into centralized registry pattern * feat: starting CF Worker MCP setup * feat: move MCP Worker logic to /mcp-worker * feat: MCP Worker auth mostly working * feat: calling MCP tools working now * feat: fix tests, add project selection tool * feat: add projectSelectionTools.ts * feat: new mcp tool format working with zod schemas * chore: fix missing file * feat: new format of tool calls working in worker + CLI * feat: cleanup no project error messages * feat: update worker to support HTTP and SSE * feat: re-use error handling * feat: add errorHandling.ts * docs: update mcp-worker README * docs: update mcp.md * feat: fix audit log query params and results * feat: update audit log types * feat: remove un-used registry, disable project/env create/update tools, disable custom props tools * feat: rename tool to: select_project * feat: combine enableTargeting/disableTargeting to set_feature_targeting tool * docs: update readmes * docs: update worker docs link * feat: setup yarn workspace for mcp-worker * fix: tests / linting * revert: restore README.md table of contents and formatting * chore: cleanup
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 implementation plan for Cloudflare Worker to handle MCP SSE protocol.