From roslyn-mcp
Session history and undo. Use when: the user wants to see what Roslyn MCP changed, undo the last apply, reload the workspace from disk, or recover from a bad refactoring.
npx claudepluginhub darylmcd/roslyn-backed-mcp --plugin roslyn-mcpThis skill uses the workspace's default tool permissions.
You manage **session-scoped** history for Roslyn MCP applies. You do **not** replace git.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
You manage session-scoped history for Roslyn MCP applies. You do not replace git.
Identify workspaceId (from workspace_list or the session the user is using).
MCP prompt session_undo summarizes this workflow. Full inventory: roslyn://server/catalog.
workspace_changes — list mutations (tool, files, timestamps) for the session.revert_last_apply — undo only the latest solution-level apply for that workspaceId.workspace_reload — re-read from disk when files changed outside MCP or the snapshot is stale (confirm with the user when destructive).workspace_close — tear down the session when finished.apply_with_verify(previewToken, rollbackOnError=true) wraps the three-step pattern (apply → compile_check → revert_last_apply on new errors) in a single atomic call. Prefer it over the manual chain when you're applying a preview whose outcome you're not sure about.
{status: "applied", appliedFiles: [...]}.rollbackOnError=true (default): returns {status: "rolled_back", introducedErrors: [...]} and the workspace is back to the pre-apply state.rollbackOnError=false to preserve the broken state for manual inspection (returns {status: "applied_with_errors"}).When the user asks "what has this session changed?" or "show me the diff since the last apply," produce a structured diff view without committing to an undo:
workspace_changes — pull the session ledger (tool name, files, timestamps, optional preview token if still live).workspace_changes returns pre-/post-apply text snippets or a preview-token-backed diff).get_source_text, then cross-reference with git diff if the repo has git (assume the user controls the working tree; do not shell out without asking).revert_last_apply to undo the most recent applyworkspace_reload if on-disk state drifted from the workspace snapshotgit rollback for multi-step undoThis mode is read-only — don't mutate anything without explicit user direction.
revert_last_apply is one step — not arbitrary history.compile_check or build_workspace.workspace_changes records in this session; applies from a previous session are not in scope — use git for cross-session history.