Skip to content

Conversation

@danbarr
Copy link
Collaborator

@danbarr danbarr commented Sep 18, 2025

Implement a mechanism to fail production builds if the MCPMetadata fetch fails and add a verification step for the thv installation.

Also reverts the temporary pinning to v0.2.17. The early exit was removed for informational commands in v0.3.3.

Copilot AI review requested due to automatic review settings September 18, 2025 01:53
@vercel
Copy link

vercel bot commented Sep 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-website Ready Ready Preview Comment Sep 18, 2025 1:31pm

Copy link
Contributor

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 implements a mechanism to fail production builds when MCPMetadata fetch operations encounter errors, enhancing build reliability in production environments. It also adds verification to ensure the ToolHive CLI installation is working correctly.

Key changes:

  • Added failOnError option to the MCP metadata plugin that throws errors in production/CI environments instead of falling back to error messages
  • Enhanced the ToolHive installation script with post-installation verification
  • Configured production builds to enable strict error handling for MCP metadata fetching

Reviewed Changes

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

File Description
plugins/mcp-metadata-plugin/src/types.ts Added failOnError boolean option to plugin configuration interface
plugins/mcp-metadata-plugin/src/index.ts Implemented error throwing logic when failOnError is enabled, replacing graceful fallback behavior
docusaurus.config.ts Configured plugin to enable failOnError in production and CI environments
scripts/install-thv.sh Added post-installation verification by running thv version command with error handling

Signed-off-by: Dan Barr <[email protected]>
@danbarr danbarr merged commit 2a7eb96 into main Sep 18, 2025
6 checks passed
@danbarr danbarr deleted the harden-mcpmeta-builds branch September 18, 2025 14:16
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.

3 participants