Repository navigation
Conversation
1.13.0 is the newest 1.x release the workspace's seven-day maturity gate will install, and the first line that serves src/skills. The build now depends on the matching @xmcp-dev/compiler. The bundler hook merges xmcp's rspack 2 aliases instead of replacing them, points Zod at the hoisted workspace copy, and keeps the stdio entry silent on stderr.
Vendors the MCP-driven skill from dotCMS/agent-toolkit and publishes it through the MCP Skills extension. A drift check pins that commit. The smoke test checks the skills capability, the manifest, and that every resources/read matches the published SHA-256 and size.
|
Claude finished @nicobytes's task in 1m 30s —— View job ReviewReviewed the diff against New IssuesNo new issues found. Resolved
Notes (non-blocking)
This is a draft spike; the two manual acceptance criteria (single-field and whole-instance dry run against a live instance) are still open and are the real risk surface — the smoke test covers the served bytes and protocol shape, not agent behavior, as Kevin noted. The code in the diff is clean. |
The diff-scoped strict gate rejects capabilities as a dotted property because the JSON-RPC result type carries an index signature. Co-authored-by: Nicolas Molina Monroy <hi@nicobytes.com>
The copy of dot-ui-vtl-migration under src/skills/ is the one that ships. The build no longer downloads the four files from dotCMS/agent-toolkit to compare them, so it does not depend on GitHub for the skill and an unchanged skill can no longer fail a build. - Remove scripts/check-skill-drift.mjs, scripts/skill-upstream.json and the build step that ran them. - Add a smoke test that fails if the build gains a step beyond the tools guard, xmcp build and the two copies, or if a build script names agent-toolkit or raw.githubusercontent.com. - Assert that skills/list returns exactly one skill. - Update CLAUDE.md and README.md, which described a vendored copy. Refs #38760 Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
Spec-Kit artifacts for serving the dot-ui-vtl-migration skill from the dotCMS MCP server: the spec, the plan with its research, data model, contract and quickstart, and the task list with the gate record of the approvals and mutation checks run so far. The two manual checks in Claude Code are still open in tasks.md. Refs #38760 Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
KevinDavilaDotCMS
left a comment
There was a problem hiding this comment.
Draft status and manual checks. #38760 asks to keep this as a draft, and the two manual acceptance criteria (single field, whole-instance dry run in Claude Code) are still open. Those are the real risk surface here, since the smoke test covers the served bytes, not agent behavior. Could this go back to draft until both transcripts are attached?
🤖 Claude (Claude Code)
Evals. The skill files are model-facing behavior, and there's no eval task for them in apps/ai-evals/tasks/. The harness today can't run one as-is: apps/ai-evals/src/tools.ts defines its own search/execute tools through the AI SDK and never connects to the MCP server, so it cannot load MCP-served skills or read skill:// resources. Suggest a follow-up that (a) lets the harness load a skill (from the built server, or by injecting SKILL.md + references) and (b) adds a single-field task: paste a legacy Dojo field, assert the reply has the #if( $structures.isNewEditModeEnabled() ) / #else structure with the original untouched, and that no script ran. Please link that follow-up here.
🤖 Claude (Claude Code)
|
Follow-up for the evals: #38829. It covers letting the harness load a skill and a single-field task for |
…step The snippet sliced the preloaded contentTypes global, which holds only the first 200 types, so on a larger instance the custom fields of the rest never reached the scan. It now pages /api/v1/contenttype itself and stops on a short page. Refs: #38760 Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
…ild commands The guard compared the build command list against four exact commands, so any unrelated build change failed a test about fetching the skill. It now checks that no command names agent-toolkit or raw.githubusercontent.com, the same match already applied to scripts/. Refs: #38760 Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
|
@KevinDavilaDotCMS thanks for the review. Summary of where each point stands:
|
Proposed Changes
Serves the
dot-ui-vtl-migrationskill from@dotcms/mcp-serverthrough the MCP Skills extension (io.modelcontextprotocol/skills), after upgradingxmcpfrom 0.6.4 to 1.13.0. The seven existing tools are unchanged. This is a draft spike for #38760. It is not published to npm, andvtl_migration.pyis not ported to TypeScript.Commits, so the upgrade can be reviewed on its own:
chore(mcp-server): upgrade xmcp from 0.6.4 to 1.13.0feat(mcp-server): serve the dot-ui-vtl-migration skillfix(mcp-server): read initialize capabilities with bracket access(strict typecheck gate)refactor(mcp-server): ship the VTL skill without an upstream drift checkdocs(spec): add spec, plan and tasks for the MCP skills spike(specs/38760-mcp-serve-vtl-skill/)xmcp breaking changes adapted
1.13.0 is the newest 1.x the workspace's seven-day maturity gate (
minimumReleaseAge: 10080) will install. 1.13.4 (26 Nov 2026) is the registry latest and is still inside that window. 1.13.0 (20 Nov 2026) is the first release at or after 1.10.0 that clears it, and 1.10.0 is the first release that servessrc/skills/.Adapted from the xmcp upgrade notes and the 1.13.0 compiler:
@xmcp-dev/compiler@1.13.0is a dev dependency. Since 0.8.0 thexmcppackage is the runtime and the compiler is separate;xmcp buildresolves it from the project.engines.nodeon the published package is>=22.12.0. Rspack 2 (1.10.2) requires Node 22.12 to build. CI already usescore-web/.nvmrc(v22.22.3).bundlerhook receives an Rspack 2 config whoseresolve.aliasalready containszod,node:builtins, and the.xmcpruntime shims. Replacing that map drops them. The hook now appends ours.zodis aliased to the workspace-root install, because pnpm does not createapps/mcp-server/node_modules/zodand xmcp only auto-aliases Zod when that path exists.@dotcms/ai/*aliases stay. xmcp readspathsonly from this app'stsconfig.json, which extends the base config and does not repeat them.<toolsPath>/**/*.{ts,tsx}with no exclude (confirmed in the 1.13 compiler). A file with no default export is skipped only after the module is evaluated, soscripts/check-tools-dir.mjsstill rejects a spec undersrc/tools/. The comment now says that.stdio.jswith a shebang, emitted todist/apps/mcp-server/. xmcp 1.x also runs dotenv on startup and writesinjected env (0) from .envto stderr even when the file is missing. That line is protocol noise on stdio. The shebang banner now setsDOTENV_CONFIG_QUIET=truewhen the caller has not set it, so the shipped server stays silent. A second BannerPlugin cannot be appended: rspack prepends it and the shebang leaves line 1.ts-checker-rspack-plugin@1.8.0(a compiler dependency) requireschokidar@^4.0.3. 4.0.3 (18 Dec 2024) is the only release in that range and has no npm provenance attestation, while 4.0.0, 4.0.1 and 5.0.0 do. It is listed intrustPolicyExcludewith that reason. It is not a takeover.paths.resourcesstaysfalse(no resource modules).paths.skillsis./src/skills. The skills extension registers each file as a resource and declares theresourcescapability itself.Source of truth
The copy inside the MCP server is the one that ships. It is not fetched from, or compared against, any other repository.
The files under
core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/(SKILL.md,reference/,scripts/vtl_migration.py) are committed here and reviewed like any other file. The point of the spike is that configuring the server is enough, so the server must not need another repository to know what its own skill contains. A change to the skill is an edit to those files.An earlier revision of this PR pinned
dotCMS/agent-toolkitand ran a drift check on every build. That was removed in5cf513342f: it made an uncached build depend onraw.githubusercontent.com, and because it ran inside the cachedbuildtarget it did not notice upstream moving ahead anyway. A smoke test now fails if a build step or build script reaches foragent-toolkitagain. It is a tripwire on the build's command list and onscripts/, not proof of network isolation: the build still reads the dotCMS OpenAPI description throughsdk-ai:generate-spec, which is unrelated to the skill.The content was taken once from the MCP-driven version in
dotCMS/agent-toolkit(merged PR dotCMS/agent-toolkit#1) and adapted to be served:nameisdot-ui-vtl-migration. xmcp and the Agent Skills spec require the name to equal the directory, and the issue requires the URIskill://dot-ui-vtl-migration/SKILL.md.reference/migration-guide.mdand a comment inscripts/vtl_migration.pyno longer cite files in the dotCMS core checkout. The logic is unchanged.The core checkout's
.claude/skills/dot-ui-vtl-migrationwas not used. That copy shells out touvand calls REST withDOTCMS_TOKEN/BASE_URL. The three copies (that folder, the agent-toolkit plugin, and this one) can now differ; aligning them is out of scope for the spike.Acceptance criteria
xmcpis 1.13.0 (>= 1.10.0).pnpm nx build mcp-server,pnpm nx lint mcp-serverandpnpm nx test mcp-serverpass. See commands below.src/smoke/server-boot.spec.tsstill lists exactly the seven tools:download_assets,execute,page_create,page_place_content,page_verify,search,upload_assets. The build log reportsRegistered 7 tools, 1 skill.capabilities.extensions["io.modelcontextprotocol/skills"]andcapabilities.resourcesoninitialize(protocol2025-06-18).skills/listreturns exactly one skill,skill://dot-ui-vtl-migration/SKILL.md, and its description matches the servedSKILL.md. The manifest includesscripts/vtl_migration.pyand the two reference files, and nothing else. The smoke test asserts this.resources/readon every manifest URI returns bytes whose SHA-256 and size match the manifest. The smoke test asserts this.uv(as a word),DOTCMS_TOKEN,BASE_URL, REST basic auth (Authorization: Basic/HTTPBasicAuth), or a core-local path (.claude/skills,core-web/,dotCMS/src,dotCMS/core,migrate_custom_fields,apps/mcp-server/).Commands and results
From
core-web, on this branch:pnpm nx test mcp-serverdepends onbuild, and the smoke test bootsdist/apps/mcp-server/stdio.jsover stdio.CI
On
b1d0b5b1f5, run 46071778948 failedPR Test / Frontend Unit Testsin the strict typecheck gate (TS4111oninitialize.result.capabilities).Finalize / Final Statusfailed only because that job failed. Fixed in26e6563852.On
26e6563852,PR Test / Frontend Unit TestsandFinalize / Final Statussucceed. Two Claude jobs fail before they review the diff, both withWorkflow initiated by non-human actor: cursor (type: Bot). Add bot to allowed_bots list or use '*' to allow all bots.That is the action refusing a bot-opened PR, not a finding about this change.Manual verification (for reviewer)
These two checks are for Nicolas, against a real dotCMS instance. Do not also install
.claude/skills/dot-ui-vtl-migrationor the agent-toolkit plugin in that Claude Code session, or the skill can come from disk instead of the server.Build and point Claude Code at the local bundle:
cd core-web pnpm nx build mcp-server{ "mcpServers": { "dotcms": { "command": "node", "args": ["<repo>/core-web/dist/apps/mcp-server/stdio.js"], "env": { "DOTCMS_URL": "http://localhost:8080", "AUTH_TOKEN": "<jwt from the instance>" } } } }Restart Claude Code so it reconnects. The skill should show up as coming from the
dotcmsMCP server, nameddot-ui-vtl-migration.Single field. Paste one legacy Dojo/Dijit custom-field template and ask for the migration. Expect one inline reply: migrated code inside
#if( $structures.isNewEditModeEnabled() ), the original untouched inside#else. Expect nopython3and novtl_migration.py.Whole instance, dry run. Ask to dry-run a migration of every legacy custom field on the connected instance. Expect Claude Code to ask for approval before it runs
python3onscripts/vtl_migration.py(the script ispython3and the standard library only). Expect every instance read (contentTypes, field bodies,/dA/files) to go through the MCP tools (execute,download_assets, and the others), not through REST,uv,DOTCMS_TOKEN, orBASE_URL. Nothing should be written to the instance: the skill's own step 6 ispython3 scripts/vtl_migration.py check --dry-run. Please paste both transcripts on this PR and note which step failed, if any.Known limitations
.claude/skillsfolder or the agent-toolkit plugin. That is deliberate for the spike.download_assetscan fetch a/dA/file by path, whetherexecutecan publish multipart, and whether the preloadedcontentTypeslist is complete.vtl_migration.pyis still Python. Porting it to a server-side tool is a follow-up.paths.promptsstays off. Tasks, elicitation and file uploads are not in this change.stdio.jsdoes not.Checklist
src/smoke/server-boot.spec.ts(stdio boot, seven tools, exactly one skill and its manifest, digest/size, forbidden markers, no upstream fetch in the build)uv,DOTCMS_TOKEN,BASE_URL, REST basic auth and core-local paths. No secrets are added.Additional Info
Refs #38760
Related: #38007, #36078, #37699, #37768, dotCMS/agent-toolkit#1.