Skip to content

fix(mcp): include namespaced skills in the Skills extension (#2596) - #2600

Open
kunaaaalcodes wants to merge 1 commit into
UsefulSoftwareCo:v2from
kunaaaalcodes:fix/mcp-skills-namespaced-uri
Open

kunaaaalcodes wants to merge 1 commit into
UsefulSoftwareCo:v2from
kunaaaalcodes:fix/mcp-skills-namespaced-uri

Conversation

@kunaaaalcodes

Copy link
Copy Markdown

Summary

The MCP skill catalog built every skill URI from the qualified skill name. For a namespaced skill such as acme:review, that produced:

skill://<app>/acme:review/SKILL.md

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:

skill://<app>/<namespace>/<local-name>/SKILL.md

Plain skills keep the existing form:

skill://<app>/<name>/SKILL.md

Fixes #2596.

What changed

  • Uses the bundle's optional namespace and localName, falling back to splitting name on the first colon.
  • Emits namespace/localName for namespaced skills while leaving plain skill URIs unchanged.
  • Parses both readings of the ambiguous shape skill://<app>/a/b/<file>:
    • namespaced skill a:b reading <file>
    • plain skill a reading b/<file>
  • Resolves the namespaced reading first, then the plain reading, preserving existing behavior for plain skills and nested resources.
  • Accepts skills/get when any reading points at SKILL.md.
  • Validates decoded path segments, rejecting encoded /, invalid namespaces, invalid local names, and invalid file paths.

No schema changes are required.

Validation

Check Result
oxlint on the changed file Passed
node scripts/check-no-unit-tests.ts Passed
node e2e/check-boundary.ts Passed
bun run typecheck Blocked on this Windows host: @tsc-rs/win32-x64 is unavailable
oxfmt --check Blocked by the host's Application Control policy on the native binding
Full E2E Blocked: cargo and workerd are unavailable on this host

A fallback tsc.exe --noEmit -p . run reported no errors in packages/mcp/src/implementation/skill-catalog.ts; it exits non-zero only on unrelated alchemy resolution errors under apps/hosted/cloud.

Test coverage

e2e/tests/mcp-skills-extension.spec.ts already exercises plain skills and nested-file fallback. A namespaced fixture is not constructible through the public v2 app schema because public skill bundles do not expose namespace or localName; this catalog change is forward-compatible with hosts whose bundles do.

e2e/tests/mcp-skills-extension.spec.ts

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

No deployments
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.

[bug][v2] MCP Skills extension leaves out every namespaced skill (namespace:name)

1 participant