@missing-elements/h5p-mcp 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -58,7 +58,8 @@ The build downloads each picture, video, recording or other file your content na
58
58
  address, and refuses to download from an address on your local network: a guard against a mistaken
59
59
  or planted address, not against a hostile network. A video on YouTube, Vimeo, Panopto or Echo360 is
60
60
  not downloaded: it stays an address, which the player loads wherever it points, as H5P does
61
- anywhere. Math is drawn by the package's own copy of MathJax, which loads nothing from elsewhere.
61
+ anywhere. A YouTube or Vimeo address is sent to that site's oEmbed, to ask whether it has the
62
+ video. Math is drawn by the package's own copy of MathJax, which loads nothing from elsewhere.
62
63
  The check and the preview play the package from your computer. Your app
63
64
  sends your conversation to its model, as it does without this server.
64
65
 
package/lib/server.mjs CHANGED
@@ -217,7 +217,9 @@ export async function createServer(options = {}) {
217
217
  try {
218
218
  result = await buildPackage(source, target, { base: dirname(target), within: allowed, fetch: publicFetch, libraries: options.libraries })
219
219
  // Made new: a file or a link put at its name since the name was found free is not written through.
220
- unwritten = await writeFile(sourceFile, `${JSON.stringify(source, null, 2)}\n`, { flag: 'wx' }).then(() => undefined, (error) => error)
220
+ // As the build took it, naming the content type's version it was built with (author's #219):
221
+ // for a quiz in the quiz format, the source it was built as, which has the field for it.
222
+ unwritten = await writeFile(sourceFile, `${JSON.stringify(result.source, null, 2)}\n`, { flag: 'wx' }).then(() => undefined, (error) => error)
221
223
  } catch (error) {
222
224
  if (error instanceof SourceError) return refusal(`${error.message}\nFix each at its path and build again.${/outside the folders/.test(error.message) ? ` ${whereFiles(allowed)}` : ''}`)
223
225
  return refusal(error instanceof Error ? error.message : String(error))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@missing-elements/h5p-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "H5P Author MCP by Missing Elements: a local MCP server that builds playable H5P packages of any content type from a short source, checks them in a real player and opens them in the person's browser. No H5P server needed.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@modelcontextprotocol/server": "^2.4.0",
40
40
  "zod": "^4.6.7",
41
- "@missing-elements/h5p-author": "^0.14.0",
41
+ "@missing-elements/h5p-author": "^0.15.0",
42
42
  "@missing-elements/h5p-verify": "^1.6.1"
43
43
  },
44
44
  "devDependencies": {
@@ -52,6 +52,6 @@
52
52
  },
53
53
  "scripts": {
54
54
  "test": "pnpm --filter @missing-elements/h5p-offline-player build && pnpm --filter @missing-elements/h5p-author exec node scripts/copy-skill.mjs && vitest run",
55
- "typecheck": "tsc -p tsconfig.json"
55
+ "typecheck": "pnpm --filter @missing-elements/h5p-verify --filter @missing-elements/h5p-author run types && tsc -p tsconfig.json"
56
56
  }
57
57
  }