Install Swift 2 on a fresh DW10 instance. Triggers: baseline database/files, initial MCP add-ins. Existing settings -> dw-setup-config; presales host/MCP/TLS scaffolding -> presales bundle.
Ships in dynamicweb-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
| Topic | Where |
|---|---|
Host install anatomy — machine prerequisites (.NET 10 SDK, ProjectTemplates, SQL Express), the mandatory net10.0 TargetFramework, build-time host-config patches (ImplicitDistributedTransactions, Files\System build exclusion), MSDTC, release rings, package naming after the Truvio Commerce rebrand and the AppStore-vs-csproj install boundary, install anti-patterns, and the first-run license gate + headless admin-password recovery | references/install-anatomy.md |
All PowerShell 7 (#Requires -Version 7.0); run with pwsh -NoProfile -File. These scripts
are self-contained by design — they run before a host or token exists, so they never import
the shared module.
| Script | Reads / writes | What it does |
|---|---|---|
| install-swift2.ps1 | Writes: SQL database, Files tree, Custom.Mcp payload, bootstrap manifest, DB config | Full Swift 2 install from the downloads portal |
| activate-free-trial.ps1 | Writes: a trial license on the target install | Drives the /admin/license trial flow and verifies the redirect is gone |
| bootstrap-and-attach.ps1 | Writes: MCP client config, credentials + status files | Bootstraps /admin/mcp and attaches the current agent |
| reset-mcp-bootstrap-manifest.ps1 | Writes: Files/System/mcp-bootstrap.json | Re-arms an expired bootstrap secret |
| Test-DwHostReady.ps1 | Read-only (optionally writes a report file) | The post-install readiness harness: admin/license gate, MCP route gates, handshake, tool count, data probes; exit 0/1 |
Go from "fresh DynamicWeb 10 application" to "fully working Swift 2 website" by downloading and installing the latest Swift 2 packages from the official Dynamicweb downloads portal.
If the workflow continues into MCP bootstrap, the Dynamicweb MCP server must be added to the config used by the current agent before the environment is considered ready.
If MCP attachment fails, work the automated recovery ladder first: re-run the bootstrap call, recreate the MCP configuration through the admin UI via browser automation (capturing the fresh key), update the agent config, and re-verify. Ask the user to intervene only after every automated route is exhausted, telling them exactly what to update.
The Swift 2 packages (downloaded from https://doc.dynamicweb.com/downloads/swift) include:
Files/System/AddIns/Installed/Custom.Mcp.10.0.0Files/System/mcp-bootstrap.jsonAfter install you have a complete, working e-commerce website with the MCP bootstrap handoff prepared.
winget install --id Microsoft.PowerShell --source winget (all scripts start with #Requires -Version 7.0)sqlpackage CLI tool: dotnet tool install -g microsoft.sqlpackagedoc.dynamicweb.compwsh -NoProfile -File "scripts/install-swift2.ps1"
pwsh -NoProfile -File "scripts/install-swift2.ps1" `
-TargetServer ".\SQLEXPRESS" `
-TargetDatabase "mybusiness" `
-FilesPath "C:\MyProject\wwwroot\Files"
| Parameter | Default | Description |
|---|---|---|
| TargetServer | localhost | SQL Server instance |
| TargetDatabase | swift2 | Database name to create |
| IntegratedSecurity | true | Use Windows auth |
| SqlUser / SqlPassword | empty | SQL credentials |
| FilesPath | C:\DwSolutions\Swift2\Files | Where to put the Files folder |
| CustomMcpAddInsSourcePath | bundled skill asset | Override source for the MCP add-ins payload |
| BootstrapSecretTtlMinutes | 30 | How long the bootstrap secret stays valid |
| SkipDownload | false | Skip download if files already exist |
doc.dynamicweb.com.bacpac from the database ZIPsqlpackage /Action:Import to create the databaseFormSubmit.FormSubmitReferer when the database lacks it (see "The form submit column" below)FilesPathFiles folder (images, digital assets, product assets, System) into FilesPathCustom.Mcp add-ins into Files/System/AddIns/Installed/Custom.Mcp.10.0.0Files/System/mcp-bootstrap.jsonGlobalSettings.Database.config with the database connectionLocal installs only: a hosted install is handed over already installed, so the script has no target there.
If the automated script fails (no sqlpackage, download blocked, wrong SQL Server), follow these manual steps:
Install DynamicWeb 10 application:
dotnet new install Dynamicweb.ProjectTemplates
mkdir MyProject && cd MyProject
dotnet new dw10-suite --name Dynamicweb.Host.Suite
Download Swift 2 from https://doc.dynamicweb.com/downloads/swift:
.bacpacwwwroot/Files/. The same Swift_v<version>_Files.zip is also a GitHub release asset: https://github.com/dynamicweb/Swift/releases/download/v<version>/Swift_v<version>_Files.zip (v2.3.0 onward).swift-demo-data-<version>/Files/{Images, Digital assets, Product assets, System}. Merge that inner Files folder into wwwroot/Files/; do not extract the zip into Files/Images/.Import database via SSMS "Import Data-tier Application" or:
sqlpackage /Action:Import /TargetServerName:localhost /TargetDatabaseName:swift2 /SourceFile:swift2.bacpac
Local installs only: a hosted install is handed over already installed, so there is no database to import. Then add the form submit column when it is missing (see "The form submit column" below).
Copy Custom.Mcp add-ins into Files/System/AddIns/Installed/Custom.Mcp.10.0.0
Configure database: edit GlobalSettings.Database.config in the Files folder
Start the application on .NET 10: dotnet run --framework net10.0
Install license at /admin
pwsh -NoProfile -File "scripts/activate-free-trial.ps1" `
-DynamicwebUrl "https://localhost:5001" `
-FilesPath "C:\MyProject\wwwroot\Files"
/admin no longer redirects to /admin/licenseBootstrap MCP: POST /admin/mcp/bootstrap with the secret from Files/System/mcp-bootstrap.json
Run the bootstrap-and-attach script (-DynamicwebUrl is mandatory — the host's port is
install-specific, from Dynamicweb.Host.Suite/Properties/launchSettings.json):
pwsh -NoProfile -File "scripts/bootstrap-and-attach.ps1" `
-DynamicwebUrl "https://localhost:5001" `
-FilesPath "C:\DwSolutions\Swift2\Files" `
-ConfigurationName "My Business MCP"
This bootstraps, persists credentials, writes MCP config, and validates connectivity. For agent-driven setup, this means writing the Dynamicweb MCP server into the config used by the current agent and verifying the connection before continuing.
This step is mandatory. Treat the installation as ready for agent use only once the MCP server entry exists in the active agent config.
If the script cannot attach automatically, run the degraded path below yourself — read the secret, call bootstrap, write the server entry into the agent config, and verify. Escalate to the user only when the config file cannot be edited from this session, explaining the exact entry to add.
Files/System/mcp-bootstrap.jsoncurl -X POST https://localhost:5001/admin/mcp/bootstrap \
-H "Content-Type: application/json" \
-d '{"secret":"...","configurationName":"My MCP","permissionPreset":"All"}'
Agent-specific expectation:
.codex/config.tomlPerform these steps yourself — they are one curl call plus config-file edits — and verify the entry exists and the agent can connect before continuing. If the agent's config file cannot be edited from this session, tell the user the exact entry to add and resume after verifying.
Run the readiness harness — it owns the HTTP and MCP checks and writes a PASS/FAIL report:
pwsh -NoProfile -File scripts/Test-DwHostReady.ps1 -BaseUrl "https://localhost:5001" -McpToken $env:DW_MCP_TOKEN -OutFile readiness.md
It verifies: GET /admin reachable and licensed (not redirecting to /admin/license),
GET /admin/mcp -> 401 Unauthorized, HEAD /admin/mcp/bootstrap -> 405 Method Not Allowed,
and with a token the MCP handshake, a tool count above 200, and get_areas / get_shops
returning data. Exit 0 = ready.
Two checks stay manual because the script cannot see them:
net10.0 (read the startup log) — a 404 on /admin/mcp usually
means it is notget_pages_by_area_id (returns the standard Swift 2 page structure)Forms for Editors cannot store a submit on a database whose FormSubmit table has no
FormSubmitReferer column: the page shows "An error occurred while attaching module" with
Invalid column name 'FormSubmitReferer' and nothing is saved. No new database carries the column.
Dynamicweb.Forms defines it in neither its base schema nor its updates, and the only code that adds
it runs when a submit row is read, so never on an empty table [dw 10.30.8]. A database that listed
a submit on an older version already has it.
install-swift2.ps1 and the base build's Restore-DwEditionDatabase.ps1 add it, and
Test-DwDemoBaseBuild.ps1 fails without it. On any other database run this once, before the first
submit. It changes nothing when the column is there:
IF COL_LENGTH('FormSubmit', 'FormSubmitReferer') IS NULL
ALTER TABLE FormSubmit ADD FormSubmitReferer nvarchar(1000) NULL
Local installs only: a hosted install has no SQL access, so there the host's owner runs it.
sqlpackage not founddotnet tool install -g microsoft.sqlpackage
Then restart the terminal.
Drop it first:
sqlcmd -S localhost -Q "DROP DATABASE [swift2]"
Local installs only: a hosted install has no database to drop, so an online build asks the user to reset it. Or use a different database name.
Fetch https://doc.dynamicweb.com/downloads/swift via browser automation and download the
packages from there. Ask the user to download only if the portal blocks automated access.
Use reset-mcp-bootstrap-manifest.ps1 when you only need a fresh secret and do not want to rerun the full installer.
/admin/mcp returns 404Confirm both of these before debugging anything else:
dotnet run --framework net10.0
Custom.Mcp is deployed under Files/System/AddIns/Installed/Custom.Mcp.10.0.0GET /admin/mcp returns 401 and HEAD /admin/mcp/bootstrap returns 405references/install-anatomy.md (opens in a new tab)scripts/Test-DwHostReady.ps1 (opens in a new tab)scripts/activate-free-trial.ps1 (opens in a new tab)scripts/bootstrap-and-attach.ps1 (opens in a new tab)scripts/install-swift2.ps1 (opens in a new tab)scripts/reset-mcp-bootstrap-manifest.ps1 (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/dynamicweb-developer:dw-setup-installfrom dynamicweb-developer
npx claudepluginhub dynamicweb/skills --plugin dynamicweb-developerOther plugins' skills for the same job
4 skills in this plugin
/dw-extend-mcp-toolsAdd tools to the Dynamicweb MCP project. Triggers: new MCP operation/domain, tool classes, services, models, route handlers. Existing API internals -> dw-source-explorer./dw-source-doc-lookupLook up live DW10 documentation for feature behavior and configuration. Triggers: how-to questions, exact field/setting/macro/tag/API names, unexpected behavior. C# internals -> dw-source-explorer./dw-source-explorerFind Dynamicweb API internals and extension points from NuGet package metadata, the release changelog and the public GitHub repositories. Triggers: find classes/methods, understand implementation before coding. MCP tool implementation -> dw-extend-mcp-tools.