Skip to content

Conversation

@jonathannorris
Copy link
Member

@jonathannorris jonathannorris commented Sep 10, 2025

Summary

  • Added cleanup_feature MCP tool in src/mcp/tools/featureTools.ts to fetch the DevCycle Feature Cleanup prompt.
  • Introduced shared GitHub fetcher src/mcp/utils/github.ts and refactored installTools.ts to use it.
  • Added CleanupFeatureArgsSchema with featureKey to src/mcp/types.ts.

Details

  • Tool returns the cleanup prompt from the DevCycle prompts repo: Cleanup prompt.
  • Schema aligns with existing MCP patterns and uses featureKey for context.

@jonathannorris jonathannorris requested a review from a team as a code owner September 10, 2025 15:25
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 10, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
devcycle-mcp-server e765d32 Sep 10 2025, 03:29 PM

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 MCP tool for fetching DevCycle Feature Cleanup prompts and introduces a shared GitHub fetcher utility to reduce code duplication across tools.

Key changes:

  • Added cleanup_feature MCP tool to fetch cleanup guidance from the DevCycle prompts repository
  • Created shared fetchAiPromptsAndRules utility to centralize GitHub API calls
  • Refactored existing install tools to use the new shared fetcher

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/mcp/utils/github.ts New shared utility for fetching content from DevCycle AI-Prompts-And-Rules repository
src/mcp/types.ts Added CleanupFeatureArgsSchema with featureKey parameter
src/mcp/tools/installTools.ts Refactored to use shared GitHub fetcher, removing duplicate code
src/mcp/tools/featureTools.ts Added cleanup_feature tool implementation using shared fetcher

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jonathannorris jonathannorris merged commit d433106 into main Sep 10, 2025
9 checks passed
@jonathannorris jonathannorris deleted the feat-cleanup-feature-tool branch September 10, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants