Skip to content

fix: honour dryRun on MCP exportSkills sync action - #96

Open
vinilana wants to merge 1 commit into
mainfrom
cursor/fix-sync-dry-run-dcdb
Open

vinilana wants to merge 1 commit into
mainfrom
cursor/fix-sync-dry-run-dcdb

Conversation

@vinilana

Copy link
Copy Markdown
Owner

Summary

MCP sync calls with action: exportSkills and dryRun: true were ignoring the flag and writing skill export trees (for example under .claude/, .codex/, .gemini/, .windsurf/, and .github/skills/), matching the behaviour reported in #90.

This change forwards dryRun from HarnessSyncActionService into SkillExportService, returns dryRun in the action result, and updates skill export dry-run handling to compute a preview count without creating directories or files.

Testing

  • npm run build
  • npm test -- --runInBand

Fixes #90

Open in Web Open in Cursor 

Pass dryRun through HarnessSyncActionService exportSkills and preview
would-be skill exports in SkillExportService without touching disk.
Add regression tests for harness and MCP surfaces.

Co-authored-by: Vinicius Lana <viniciuslanadev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sync export with dryRun: true writes files (102 files created by a preview call)

2 participants