-
Notifications
You must be signed in to change notification settings - Fork 2
Fail production builds on MCPMetadata fetch errors #190
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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
failOnErroroption 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 |
20011e7 to
0ce92c9
Compare
Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
0ce92c9 to
adf6e14
Compare
Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
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.