Skip to content

Comments

feat: new tool to trigger cloudflow#98

Merged
taltultc merged 4 commits intomainfrom
trigger-cloudflow-tool
Feb 24, 2026
Merged

feat: new tool to trigger cloudflow#98
taltultc merged 4 commits intomainfrom
trigger-cloudflow-tool

Conversation

@farzadatdointl
Copy link
Contributor

  • add new tool to trigger a cloudflow flow, requesting id
  • also format the index test file and the prompt file

Copy link

Copilot AI left a 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 tool to trigger CloudFlow flows by flow ID, with optional JSON payload support. It also includes formatting improvements to the index test file and prompts file.

Changes:

  • New trigger_cloud_flow tool that accepts a flow ID and optional request body JSON
  • Integration of the CloudFlow tool into the MCP server and CloudFlare worker
  • Formatting updates to src/__tests__/index.test.ts and src/utils/prompts.ts for better readability

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/tools/cloudflow.ts New CloudFlow tool implementation with URL construction, schema validation, and handler function
src/tools/tests/cloudflow.test.ts Comprehensive unit tests for CloudFlow tool covering URL construction, request handling, and error cases
src/utils/toolsHandler.ts Added trigger_cloud_flow case to tool handler switch statement and imported the handler function
src/index.ts Registered triggerCloudFlowTool and exported handleTriggerCloudFlowRequest for use in MCP server
src/utils/prompts.ts Added CloudFlow trigger prompt guidance and reformatted existing prompts for consistency
src/tests/index.test.ts Reformatted for consistency and added trigger_cloud_flow tool to expected tools list
doit-mcp-server/src/index.ts Imported CloudFlow schemas and tool, registered tool in CloudFlare worker initialization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@taltultc taltultc merged commit 2669ec5 into main Feb 24, 2026
2 checks passed
@taltultc taltultc deleted the trigger-cloudflow-tool branch February 24, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants