Repository navigation
feat(mcp): a host's app server takes its own build page and title; the hosted Worker leaves (#299) - #300
Merged
Conversation
…e hosted Worker leaves this repository (#299)
Contributor
Author
|
@cubic-dev-ai review this pull request |
Contributor
@alekswebnet I have started the AI code review. It will take a few minutes to complete. |
Contributor
There was a problem hiding this comment.
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
…and build, the test's script escaping, the design's card and bundle lines, two apps)
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 #299.
What changes
createApp()andh5p-mcp-apptakebuildandtitle, besidesite:buildis 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.titleis the name the server gives itself in a chat. Its default is "H5P Author MCP by Missing Elements", as before.--buildand--title.redirect_domainsnames both.apps/mcp-workerleaves this repository, withdocs/mcp-worker.mdand its lines in AGENTS.md, SECURITY.md and the design files.design/mcp.mdkeeps one line on what a host passescreateApp(). 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.pnpm commentspasses.To release: h5p-mcp 0.10.0, a minor for the new options.
Summary by cubic
Adds
buildandtitleoptions 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()andh5p-mcp-appaccept the new options; the command sets them with--buildand--title. Without them, behavior is unchanged: the site's/h5p/build/and "H5P Author MCP by Missing Elements".redirect_domainsnames both.siteandbuildmust behttp:orhttps: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 runcreateApp()themselves.Written for commit 26d2492. Summary will update on new commits.