@missing-elements/h5p-mcp 0.2.0 → 0.3.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
@@ -1,7 +1,7 @@
1
1
  # H5P Author MCP by Missing Elements
2
2
 
3
3
  `@missing-elements/h5p-mcp` lets an AI app make H5P content on your computer: quizzes, fill in the
4
- blanks, flash cards, presentations, interactive books, branching scenarios and the rest of the 53
4
+ blanks, flash cards, presentations, interactive books, branching scenarios and the rest of the
5
5
  content types the H5P hub serves. It writes a playable `.h5p` that carries its libraries, checks
6
6
  that it plays in a real H5P player, and opens it in your browser. It reads a `.h5p` you have back
7
7
  into its source too, to change it and build it again. No H5P site, server or account.
@@ -44,7 +44,8 @@ gets a number, and it says which.
44
44
 
45
45
  - `h5p_types`: the content types, and how to write a source for one.
46
46
  - `h5p_build`: a package from a source, its source beside it as `.source.json`. A source with
47
- problems is refused, each problem named. It checks the package and says what it holds.
47
+ problems is refused, each problem named. It checks the package, says what it holds, and which
48
+ H5P core a site needs to take it.
48
49
  - `h5p_preview`: opens a package in your browser, in the real player, served from your computer
49
50
  until its tab is closed.
50
51
  - `h5p_read`: a package back into its source, with its pictures and other files, in a new folder
package/lib/server.mjs CHANGED
@@ -4,7 +4,7 @@ import { basename, dirname, join, resolve } from 'node:path'
4
4
  import { fileURLToPath } from 'node:url'
5
5
  import { McpServer } from '@modelcontextprotocol/server'
6
6
  import { z } from 'zod'
7
- import { SourceError, buildPackage, contentTypes, inside, openPack, publicFetch, readPackage, schemaOf, sourceSchema, sourceType } from '@missing-elements/h5p-author'
7
+ import { SourceError, buildPackage, contentTypes, coreApiLine, inside, openPack, publicFetch, readPackage, schemaOf, sourceSchema, sourceType } from '@missing-elements/h5p-author'
8
8
  import { VerifyError, openBrowser, previewPackage, summarize, verifyPackage } from '@missing-elements/h5p-verify'
9
9
  import { defaultFolders, fileStem, rootFolders } from './folders.mjs'
10
10
 
@@ -228,6 +228,7 @@ export async function createServer(options = {}) {
228
228
  const media = result.media.length ? `, ${result.media.length} media file${result.media.length === 1 ? '' : 's'}` : ''
229
229
  const lines = [
230
230
  `Built ${target} (${sized((await stat(target)).size)}): ${result.manifest.mainLibrary}, ${result.libraries.length} libraries${install}${media}.`,
231
+ coreApiLine(result.coreApi),
231
232
  unwritten
232
233
  ? `Its source was not written beside it: ${unwritten.message}`
233
234
  : `Its source is beside it, ${basename(sourceFile)}: https://missing-elements.github.io/h5p/build/ opens it under "Or open a file", to change and build again.`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@missing-elements/h5p-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.3.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,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@modelcontextprotocol/server": "^2.4.0",
40
40
  "zod": "^4.6.7",
41
- "@missing-elements/h5p-author": "^0.13.0",
42
- "@missing-elements/h5p-verify": "^1.6.0"
41
+ "@missing-elements/h5p-author": "^0.14.0",
42
+ "@missing-elements/h5p-verify": "^1.6.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@modelcontextprotocol/client": "^2.4.0",