feat: auto-generate mcp.json inputs from collection definition#324
Open
lanzamelissa-sketch wants to merge 1 commit into
Open
feat: auto-generate mcp.json inputs from collection definition#324lanzamelissa-sketch wants to merge 1 commit into
lanzamelissa-sketch wants to merge 1 commit into
Conversation
cc38f7a to
5636b6a
Compare
Contributor
|
Thank you @lanzamelissa-sketch for the PR and proposal ❤️ , we are looking at this !! |
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.
Description
Add support for automatic inputs generation in mcp.json when a collection defines MCP servers. Collections can now declare mcp.inputs in their .collection.yml to specify secrets and configurable values (e.g., tokens, usernames, passwords). These inputs are automatically merged into VS Code's mcp.json on install and cleaned up on uninstall.
Type of Change
Related Issues
Closes #298 (#298)
Fixes #
Relates to #
Changes Made
Testing
Test Coverage
Manual Testing Steps
git clone https://github.com/lanzamelissa-sketch/ai-primitives-hub.git
cd ai-primitives-hub
git checkout feat/mcp-inputs-auto-generation
npm install && npm run compile
{
"promptregistry.sources": [{
"id": "test-local",
"name": "Test Local",
"url": "C:\path\to\your\repo",
"type": "local-awesome-copilot",
"config": { "collectionsPath": "collections" }
}]
}
4. Open the AI Primitives Hub marketplace, find the collection and install it
5. Install a second collection that shares an input with the same id
6. Uninstall the first collection
Tested On
macOS
Windows
Linux
VS Code Stable
VS Code Insiders
Screenshots
Checklist
Documentation
Additional Notes
Reviewer Guidelines
Please pay special attention to:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache License 2.0.