Skip to content

Conversation

@jonathannorris
Copy link
Member

@jonathannorris jonathannorris commented Aug 13, 2025

Summary

Adds a new MCP tool to fetch DevCycle install prompts by guide name and vendors the list of available guides at build time.

Changes

  • Add install_devcycle_sdk MCP tool that returns the raw Markdown for a guide.
  • Build-time script scripts/fetch-install-prompts.js to:
    • Fetch all install-prompts/**/*.md (including OpenFeature)
    • Generate src/mcp/tools/installGuides.generated.ts (enum of valid slugs)
    • Log generation; on fetch failure, proceed with previously generated file if present
  • Update package.json to run the generator in yarn build.
  • Register the tool and allow plain string returns in MCP server.
  • Mark generated file as linguist-generated in .gitattributes.

Usage

  • Call install_devcycle_sdk with guide set to any slug from the generated list (e.g., react, openfeature/react, android-openfeature), and the tool returns the Markdown content.

References

This comment was marked as outdated.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 13, 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 720a508 Aug 14 2025, 09:02 PM

@jonathannorris jonathannorris force-pushed the feat-fdn-566-install-devcycle-sdk-tool branch 3 times, most recently from c60971e to 8d44bf2 Compare August 14, 2025 16:38
@JamieSinn JamieSinn requested a review from Copilot August 14, 2025 19:19

This comment was marked as outdated.

@jonathannorris jonathannorris requested a review from Copilot August 14, 2025 20:39
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 to fetch DevCycle SDK installation guides from GitHub and implements a build-time generation system for maintaining the list of available guides.

  • Introduces install_devcycle_sdk MCP tool that fetches Markdown installation guides by name
  • Implements build-time script to generate TypeScript constants from GitHub repository contents
  • Updates build process to include guide list generation before compilation

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/mcp/tools/installTools.ts New MCP tool implementation for fetching install guides
src/mcp/tools/installGuides.generated.ts Auto-generated constants file with available guide names
src/mcp/tools/index.ts Registers the new install tools with the MCP server
src/mcp/server.ts Adds support for plain string returns from tool handlers
scripts/fetch-install-prompts.js Build-time script to generate guide constants from GitHub API
package.json Updates build script to run guide generation
oclif.manifest.json Version bump from 6.0.0 to 6.0.1
README.md Platform-specific version display update
.gitattributes Marks generated file as linguist-generated
Comments suppressed due to low confidence (1)

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

@jonathannorris jonathannorris force-pushed the feat-fdn-566-install-devcycle-sdk-tool branch from ba818d6 to 0d493d4 Compare August 14, 2025 20:40
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@jonathannorris jonathannorris merged commit 88d6f59 into main Aug 14, 2025
8 checks passed
@jonathannorris jonathannorris deleted the feat-fdn-566-install-devcycle-sdk-tool branch August 14, 2025 21: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.

3 participants