Fix container pattern regex in mcp_config_schema.json to allow colons#2384
Merged
Fix container pattern regex in mcp_config_schema.json to allow colons#2384
Conversation
- Updated pkg/parser/schemas/mcp_config_schema.json line 24 - Changed pattern from `^[a-zA-Z0-9][a-zA-Z0-9/_.-]*$` to `^[a-zA-Z0-9][a-zA-Z0-9/:_.-]*$` - Now matches patterns in included_file_schema.json and main_workflow_schema.json - Allows container images like `registry:5000/myimage`, `localhost:5000/image:tag` - All tests pass successfully Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix container pattern regex in mcp_config_schema.json
Fix container pattern regex in mcp_config_schema.json to allow colons
Oct 25, 2025
pelikhan
approved these changes
Oct 25, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a schema validation bug where the container field pattern in mcp_config_schema.json incorrectly rejected valid container image references containing colons (such as registry ports and tags), while other schema files correctly allowed them.
Key Changes:
- Updated the regex pattern for the
containerfield inmcp_config_schema.jsonto include the colon character (:) - Aligned the pattern with
included_file_schema.jsonandmain_workflow_schema.jsonfor consistency
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
Agentic Changeset Generator triggered by this pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
containerfield regex inmcp_config_schema.jsonrejected valid container images with registry ports (e.g.,registry:5000/myimage), while the same field inincluded_file_schema.jsonandmain_workflow_schema.jsonaccepted them.Changes
pkg/parser/schemas/mcp_config_schema.jsonline 24:^[a-zA-Z0-9][a-zA-Z0-9/_.-]*$❌^[a-zA-Z0-9][a-zA-Z0-9/:_.-]*$✅Impact
Enables standard container image formats with registry ports and tags:
All three schema files now use identical container patterns, resolving the inconsistency identified in #2361.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
registrydocker pull registry:5000/myimage(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.