From c1d0973695f165d5fdde96c7eb13b1ac3b5dd938 Mon Sep 17 00:00:00 2001 From: Zach Yannes Date: Thu, 15 Oct 2026 18:08:31 -0400 Subject: [PATCH] feat(mandoline-mcp): install Mandoline skill after binary Ensure the agent gets the Mandoline skill on workspace start once the binary is available. Co-authored-by: Cursor --- modules/mandoline-mcp/README.md | 2 +- modules/mandoline-mcp/main.tftest.hcl | 4 ++++ modules/mandoline-mcp/scripts/install.sh.tpl | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/mandoline-mcp/README.md b/modules/mandoline-mcp/README.md index 7bcbe4b..d2fed2a 100644 --- a/modules/mandoline-mcp/README.md +++ b/modules/mandoline-mcp/README.md @@ -52,7 +52,7 @@ The installer targets Linux x86_64 (`amd64`) only. For `latest`, it resolves the newest non-draft, non-prerelease with `gh release list`, then runs `gh release download` for `mandoline-linux-x86_64.tar.gz`. It extracts the archive in a temporary directory, installs `/usr/local/bin/mandoline`, and removes -the temporary files. +the temporary files. Once the binary is available, it runs `mandoline install-skill`. Pin an exact semantic version such as `0.15.0` to download the matching `v0.15.0` release tag and reinstall when that pin changes. Changing the diff --git a/modules/mandoline-mcp/main.tftest.hcl b/modules/mandoline-mcp/main.tftest.hcl index 965c7c5..962399a 100644 --- a/modules/mandoline-mcp/main.tftest.hcl +++ b/modules/mandoline-mcp/main.tftest.hcl @@ -29,6 +29,10 @@ run "defaults" { condition = strcontains(coder_script.mandoline_mcp.script, "install_dir=\"/usr/local/bin\"") && strcontains(coder_script.mandoline_mcp.script, "mktemp -d") error_message = "The installer must install into /usr/local/bin and stage downloads with mktemp -d." } + assert { + condition = strcontains(coder_script.mandoline_mcp.script, "\"$install_dir/mandoline\" install-skill") + error_message = "After installing the binary, the installer must run mandoline install-skill." + } } run "pinned_version" { diff --git a/modules/mandoline-mcp/scripts/install.sh.tpl b/modules/mandoline-mcp/scripts/install.sh.tpl index 40fd546..b1b0bfa 100644 --- a/modules/mandoline-mcp/scripts/install.sh.tpl +++ b/modules/mandoline-mcp/scripts/install.sh.tpl @@ -60,4 +60,9 @@ if [ ! -x "$install_dir/mandoline" ] || [ "$(cat "$version_file" 2>/dev/null || fi [ -x "$install_dir/mandoline" ] || fail 'Mandoline installation finished without an executable binary.' + +echo "Installing Mandoline skill…" +"$install_dir/mandoline" install-skill \ + || fail 'Could not install the Mandoline skill.' + echo "Mandoline MCP installed ($release); use \`mandoline mcp\`."