Repository navigation
fix(mcp): include namespaced skills in the Skills extension (#2596) - #2600
Open
kunaaaalcodes wants to merge 1 commit into
Open
kunaaaalcodes wants to merge 1 commit into
kunaaaalcodes wants to merge 1 commit into
Conversation
Map a skill's namespace and local name to skill://<app>/<namespace>/<local-name>/SKILL.md so the Effect Skills extension accepts it. Parse both nested and plain readings, resolving the namespaced reading first while preserving plain skill URIs. Fixes UsefulSoftwareCo#2596 Release-note: Fix: namespaced skills now appear in the MCP Skills extension.
This branch has not been deployed
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.
Summary
The MCP skill catalog built every skill URI from the qualified skill name. For a namespaced skill such as
acme:review, that produced:The Effect Skills extension rejects that URI because its last path segment is not the skill's frontmatter name (
review) and does not satisfy the Agent Skills name rule.This change serves namespaced skills at:
Plain skills keep the existing form:
Fixes #2596.
What changed
namespaceandlocalName, falling back to splittingnameon the first colon.namespace/localNamefor namespaced skills while leaving plain skill URIs unchanged.skill://<app>/a/b/<file>:a:breading<file>areadingb/<file>skills/getwhen any reading points atSKILL.md./, invalid namespaces, invalid local names, and invalid file paths.No schema changes are required.
Validation
oxlinton the changed filenode scripts/check-no-unit-tests.tsnode e2e/check-boundary.tsbun run typecheck@tsc-rs/win32-x64is unavailableoxfmt --checkA fallback
tsc.exe --noEmit -p .run reported no errors inpackages/mcp/src/implementation/skill-catalog.ts; it exits non-zero only on unrelatedalchemyresolution errors underapps/hosted/cloud.Test coverage
e2e/tests/mcp-skills-extension.spec.tsalready exercises plain skills and nested-file fallback. A namespaced fixture is not constructible through the publicv2app schema because public skill bundles do not exposenamespaceorlocalName; this catalog change is forward-compatible with hosts whose bundles do.