Skip to content

feat(mcp): a host's app server takes its own build page and title; the hosted Worker leaves (#299) - #300

Merged
alekswebnet merged 2 commits into
mainfrom
feat/mcp-app-options
Nov 27, 2026
Merged

alekswebnet merged 2 commits into
mainfrom
feat/mcp-app-options

Conversation

@alekswebnet

@alekswebnet alekswebnet commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #299.

What changes

  • createApp() and h5p-mcp-app take build and title, beside site:
    • build is the build page's address. A chat with no card is sent there, and the card may open it as well as the site, so a play page on one site can link to a build page on another. Its default is the site's /h5p/build/, as before.
    • title is the name the server gives itself in a chat. Its default is "H5P Author MCP by Missing Elements", as before.
    • The command takes them as --build and --title.
  • The card opens a link of the site or of the build page's origin, and no other. Its policy's redirect_domains names both.
  • apps/mcp-worker leaves this repository, with docs/mcp-worker.md and its lines in AGENTS.md, SECURITY.md and the design files. design/mcp.md keeps one line on what a host passes createApp(). The lockfile loses wrangler and the Workers runtime.

Nothing changes for a host that passes neither option: the same site, build page and name.

Tested

  • tests/app.test.ts: a host's site, build page and title reach the server's name, its / answer, the card and its policy, and the no-card answer.
  • tests/card.test.ts: the card opens the site's and the build page's links for the page, and not a third site's or a non-address. This fails without the change.
  • mcp: typecheck, 48 tests. Every package typechecks; pnpm comments passes.

To release: h5p-mcp 0.10.0, a minor for the new options.


Summary by cubic

Adds build and title options to the MCP app server so a host can send people to its own build page and name itself in a chat, and removes the hosted Cloudflare Worker from this repository.

New Features

  • createApp() and h5p-mcp-app accept the new options; the command sets them with --build and --title. Without them, behavior is unchanged: the site's /h5p/build/ and "H5P Author MCP by Missing Elements".
  • The card now opens a link of the site or of the build page's origin, and no other; its policy's redirect_domains names both.
  • site and build must be http: or https: addresses; another scheme is refused with an error.

Refactors

  • apps/mcp-worker, its docs, and the lockfile's wrangler and Workers runtime leave the repository. Hosts run createApp() themselves.

Written for commit 26d2492. Summary will update on new commits.

View guided diff Turn on auto-fix

@alekswebnet

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this pull request

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this pull request

@alekswebnet I have started the AI code review. It will take a few minutes to complete.

Comment thread packages/mcp/tests/card.test.ts Fixed

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 24 files

You’re at about 91% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread packages/mcp/lib/app.mjs Resolved
Comment thread design/mcp.md Resolved
Comment thread design/mcp.md Resolved
Comment thread AGENTS.md Resolved
Comment thread packages/mcp/tests/app.test.ts Resolved
…and build, the test's script escaping, the design's card and bundle lines, two apps)
@alekswebnet
alekswebnet merged commit f71ce2b into main Nov 27, 2026
13 checks passed
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.

h5p-mcp: a host's app server takes its own build page and name, and the hosted Worker leaves this repository

2 participants