Skip to content

Spike: serve the dot-ui-vtl-migration skill from the dotCMS MCP server via the MCP Skills extension #38760

Backlog

Description

@nicobytes

Context

The MCP Skills extension (io.modelcontextprotocol/skills, beta) lets a server publish skills, including their scripts, next to its tools. Clients discover them on connect, with no folders to copy and no plugin to install (announcement, spec).

The server only distributes the files. Any bundled script runs on the client, and the spec requires explicit per-skill user approval before code that came over MCP runs ("No implicit local execution").

Today @dotcms/mcp-server (core-web/apps/mcp-server) serves only tools (xmcp.config.ts sets prompts: false, resources: false). Users get the skill by copying .claude/skills/dot-ui-vtl-migration by hand (docs) or through the agent-toolkit plugin (dotCMS/agent-toolkit#1).

Goal

Prove that configuring the dotCMS MCP server is enough for a client to get the VTL migration skill and use it. Keep the result as a draft.

Approach

  • Upgrade xmcp from 0.6.4 to 1.10.0 or later, the first version that serves src/skills/ through the extension.
  • Add core-web/apps/mcp-server/src/skills/dot-ui-vtl-migration/ using the MCP-driven content from agent-toolkit: SKILL.md, reference/, and scripts/vtl_migration.py. All instance I/O goes through the MCP tools. The script needs only python3 and the standard library, with no uv, token or network access.
  • Record in the PR the decision on the source of truth: build-time copy or vendored copy with a drift check.

Out of scope

  • Porting vtl_migration.py to a server-side tool, so that no client needs Python (follow-up issue).
  • Other skills, Tasks, Elicitation and File Uploads.
  • Changes to the migration logic, or removing the skill from .claude/ or agent-toolkit.
  • Publishing to npm.

Acceptance Criteria

  • xmcp is at 1.10.0 or later. pnpm nx build mcp-server, pnpm nx lint mcp-server and pnpm nx test mcp-server pass.
  • src/smoke/server-boot.spec.ts still lists exactly the 7 current tools.
  • The built server declares capabilities.extensions["io.modelcontextprotocol/skills"] and resources.
  • skills/list returns skill://dot-ui-vtl-migration/SKILL.md, and its manifest includes scripts/vtl_migration.py. The smoke test asserts this.
  • resources/read on every manifest URI returns bytes whose SHA-256 and size match the manifest. The smoke test asserts this.
  • No served file references uv, DOTCMS_TOKEN, BASE_URL, REST basic auth or core-local paths (checked by a test or lint).
  • Manual check, single field, in Claude Code connected to the local build and a dotCMS instance: the skill shows up as coming from the server, and a pasted legacy field comes back as inline #if( $structures.isNewEditModeEnabled() ) / #else output with no script run.
  • Manual check, whole instance, in Claude Code: a dry run asks for approval before running vtl_migration.py, runs it with python3, and does every instance read through the MCP tools. The PR records the result and which steps failed, if any.

How to verify

Run the smoke test on the built bundle (stdio), then do both manual runs and attach their transcripts to the PR.

Risks / blast radius

  • A major xmcp upgrade (0.x to 1.x) can change tool discovery, the generated stdio.js entry point, the rspack bundler hook and its aliases, and scripts/check-tools-dir.mjs. That affects everyone running @dotcms/mcp-server.
  • The whole-instance flow only works in clients that can run code and have python3. Clients without code execution, such as Claude Desktop or ChatGPT, get the single-field mode only.
  • The MCP half of the agent-toolkit flow has never run against a live instance (stated in Add the dot-ui-vtl-migration skill, driven by the dotCMS MCP agent-toolkit#1).
  • A third copy of the skill would drift unless the source-of-truth decision prevents it.

Related

#38007, #36078, #37699, #37768, dotCMS/agent-toolkit#1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions