Repository navigation
feat(mcp): both servers serve the h5p-author skill over MCP, and the skill builds with their tools (#280) - #281
Merged
Merged
Conversation
…skill builds with their tools (#280) The local server and the app server (and so the Worker) serve the skill as the author package ships it, SKILL.md, LICENSE and references/, over the Skills extension (SEP-2640). The skill gains route 0: where the chat has h5p_build or h5p_play, they build and their answer is the hand-over.
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 13 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…y a missing file means no skill (#280)
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.
Closes #280.
The h5p-author skill, shared everywhere: both MCP servers now serve it, and wherever the skill sits beside their tools it builds with them.
What changes
h5p-mcp,h5p-mcp-appand so the Worker declareio.modelcontextprotocol/skills(SEP-2640, Final), answerskills/listandskills/get, and serveskill://h5p-author/:SKILL.md,LICENSEand the.mdfiles underreferences/, as the author package ships them, and nothing else of the package. It's the SDK'sSkillsExtensionover files read once at start (skillCataloginanswers.mjs). A chat without the extension sees no change: the instructions andh5p_typesstay.references/build/tools.md). Where the chat hash5p_buildorh5p_play, those tools build. The tool's answer is the hand-over: no command, no npm check, no step 4. Step 1 reads an unlisted type's fields withh5p_typeswhere it's there. Step 3's early npm check now says "unless route 0's tools build".stage.mjscopiesSKILL.mdandLICENSEbesidereferences/, andwrangler.jsoncadds them to the Text rules. LICENSE has no extension, so it's named exactly.design/mcp.mdanddesign/author.md(the rules, with the numbers below), plus a paragraph in the mcp README.The hybrid pattern
This gives the hybrid pattern in full:
npx skills add missing-elements/h5p-toolkit --skill h5p-author(.agents/skills/for Codex, Gemini CLI, Cursor, Copilot and others,.claude/skills/for Claude Code), or served by the server it's connected to;How it was tested
SDK client:
server.test.ts:skills/listgivesskill://h5p-author/SKILL.md, andreferences/build/tools.mdreads.app.test.ts: the capability is declared.skills/listis fetched raw. The resource list equalsLICENSE,SKILL.mdand every reference.md.SKILL.mdreads equal to the package's, andpackage.jsonis refused. A host'sreferencesmust haveSKILL.mdbeside it or it's rejected.Worker:
skills/listand every skill resource read equal the local server's (7/7).Skills project: 82/82, front matter included.
Haiku in Claude Code, with the skill as files beside a server's tools (the local server's
h5p_buildor the app server'sh5p_play), asked for a True/False question:npx, tools unused, 3 of 3, $0.007Two of the first five route-0 runs also ran the npm check first. After the "unless route 0's tools build" wording, none of the next four did.
Not seen in a chat yet. Claude Code 2.1.331 has an MCP skills client, but it never called
skills/list, on the 2025 protocol or 2026-07-28, on Haiku, Sonnet or Opus. It's behind an internal switch. This is checked again when a chat turns it on.After merging
npx skills update -gfor global copies.Summary by cubic
Both MCP servers now serve the h5p-author skill over MCP, and the skill builds with the servers' tools instead of running npm when those tools are present.
SKILL.md,LICENSE, andreferences/— via the Skills extension (SEP-2640); chats without the extension see no change.h5p_buildorh5p_play, those tools build and their answer is the hand-over, with no command, npm check, or step 4.SKILL.mdis said at start.npx(3/3 before, at double the cost).Written for commit dbd514c. Summary will update on new commits.