Skip to main content
Glama

svn-agent MCP

Strict SVN Model Context Protocol server for agent-safe status, diff, EOL diagnosis, precommit checks, and guarded SVN mutations.

The implementation contract lives in docs/SPEC.md. The current source release is 1.10.0; each source clone can prepare a local runtime under releases/v1.10.0, while npm installations run directly from package-root dist/.

Requirements: Node.js 24.18.0 or newer, npm 11.16.0 or newer, Git, and access to the public npm registry. Windows uses the bundled VisualSVN Apache Subversion command-line package and dos2unix payload. On macOS and Linux, svn, svnversion, svnadmin, dos2unix, unix2dos, and mac2unix must be available on PATH.

Install From npm

npm install -g svn-agent-mcp@latest
npm list -g svn-agent-mcp --depth=0

Register one MCP server named svn and let the client resolve the globally installed command from PATH:

{
  "mcpServers": {
    "svn": {
      "command": "svn-agent-mcp",
      "env": { "SVN_MCP_TOOL_PROFILE": "review" }
    }
  }
}

Restart the MCP client after changing its configuration. Call svn_help to check the connection and svn_info with an absolute working-copy path to check SVN access. For runtime diagnostics, load svn_self_check with svn_help and call it in the same session.

Related MCP server: git-mcp-server

Generic Agent Install Prompt

Give this prompt to any local coding agent:

Install or update the SVN MCP globally with: npm install -g svn-agent-mcp@latest
Verify the package with: npm list -g svn-agent-mcp --depth=0
Resolve the executable with the host shell's command lookup: Get-Command svn-agent-mcp in PowerShell, where.exe svn-agent-mcp in Windows Command Prompt, or command -v svn-agent-mcp on POSIX shells. Do not use a lookup command from another platform.
On macOS/Linux, verify svn, svnversion, svnadmin, dos2unix, unix2dos, and mac2unix are on PATH. Use the host package manager for missing prerequisites.
Register one stdio server named "svn" using the global package. Set its server environment SVN_MCP_TOOL_PROFILE=review. Merge the entry and preserve other configuration, including existing SVN_AGENT_* overrides. Keep sensitive values out of the report.
For Codex, merge [mcp_servers.svn] and set SVN_MCP_TOOL_PROFILE = "review" under [mcp_servers.svn.env]. If the user wants automatic approval for SVN tools, set default_tools_approval_mode = "approve" on that server. Change the separate top-level approval_policy to "never" only if the user explicitly wants that policy for Codex commands.
For Claude Code, inspect an existing entry with claude mcp get svn. For a new user-scoped entry, run claude mcp add --env SVN_MCP_TOOL_PROFILE=review --scope user --transport stdio svn -- svn-agent-mcp. Preserve the existing scope if updating an entry. If the user wants automatic approval for this server, merge "mcp__svn__*" into permissions.allow in their chosen Claude Code settings file.
On Windows, enable the client's hidden/no-window process option. If the npm command shim still opens a console, resolve the global module root with `npm root -g`, then use command "node" with args `["<global-module-root>\\svn-agent-mcp\\dist\\index.js"]`; the server cannot choose its parent process creation flags.
Query the registry version with: npm view svn-agent-mcp version
Restart the MCP client. In Claude Code check /mcp. Call svn_help with tool:"svn_info", then use svn_info on an absolute working-copy path when available. For other SVN tools, use svn_help with tool:"tools" to discover names, then pass the needed name to svn_help to load only that tool. For runtime diagnostics, load svn_self_check this way. Report the installed and registry versions, launcher, configured profile, and the connection checks that ran.

Source Setup From GitHub

Use a source checkout for development and contribution work, not as the normal global MCP runtime. Generic source-setup prompt:

Clone https://github.com/shrishailrana-maker/svn-agent-mcp-v1 into a stable development directory. Run npm ci --strict-allow-scripts, npm run prepare:local, and npm test. Follow the install prompt above to register the global package with the review profile in Codex or Claude Code. For development against this checkout, launch node <absolute-clone-path>/current/dist/index.js with the desired profile. Use full when checking all tool contracts.

The setup commands are:

git clone https://github.com/shrishailrana-maker/svn-agent-mcp-v1.git
cd svn-agent-mcp-v1
npm ci --strict-allow-scripts
npm run prepare:local
npm test

Then configure the MCP client to run:

node <absolute-clone-path>/current/dist/index.js

JSON Client Config Example

Add this under mcpServers:

{
  "mcpServers": {
    "svn": {
      "command": "node",
      "args": ["<absolute-clone-path>/current/dist/index.js"]
    }
  }
}

TOML Client Config Example

[mcp_servers.svn]
command = "node"
args = ["<absolute-clone-path>/current/dist/index.js"]
startup_timeout_sec = 120

Restart the MCP client after changing the config.

On Windows, process-window visibility is controlled by the MCP client that spawns the server. Clients should use a hidden/no-window process option such as Node's windowsHide:true. The server reserves stdout for newline-delimited MCP JSON-RPC and sends startup diagnostics only to stderr.

Start The MCP

For development from this working copy:

cd <path-to-svn-agent-mcp-v1>
npm install
npm run prepare:local
node ./current/dist/index.js

The source tree includes bin/ with the Windows VisualSVN Apache Subversion and dos2unix payload. Releases copy that folder to current/bin, so Windows clients do not need separate tool installations. On macOS and Linux, the server ignores those .exe files and resolves the native tools from PATH. See THIRD_PARTY_NOTICES.md, THIRD_PARTY_CHECKSUMS.txt, and third_party_licenses/ for bundled binary notices, hashes, and complete license texts.

Plug-And-Play Client Config

After npm install -g svn-agent-mcp@latest, register the MCP once. Do not set cwd or add environment variables unless an existing installation already needs an explicit override:

Generic client example:

{
  "mcpServers": {
    "svn": {
      "command": "svn-agent-mcp"
    }
  }
}

The MCP is not tied to one SVN checkout. If a tool call supplies absolute paths and omits cwd, the server finds the nearest SVN working copy for those paths. Relative paths require an explicit, absolute per-call cwd. Repository URL inputs must not embed usernames or passwords; use the native SVN credential cache.

Client registration is static: configure the MCP once, and working-copy discovery happens per tool call. The server does not rewrite client configuration at runtime.

Issues And Feature Requests

Use GitHub Issues for public bugs, feature requests, and planned work. Search existing issues before filing a new one and use the provided templates. Include the package version, operating system, Node.js version, installation method, and a minimal sanitized reproduction when relevant. Remove credentials, private repository URLs, usernames, and local absolute paths from public reports.

The completed historical project backlog was migrated as issues #1 through #31. Report security vulnerabilities through the private process in SECURITY.md, not a public issue.

Environment variables are not required when the toolchain is bundled or available on PATH. SVN_MCP_TOOL_PROFILE controls the starting tool list: review (default) advertises the edit/commit workflow plus bounded diff, cat, blame, svn_info, and svn_propset_eol_style for 14 tools total, docs starts with the 9-tool edit/commit workflow, and full starts with all 30 canonical tools. Profiles save startup tokens. Every tool remains callable and keeps its normal guards.

  • svn_help({"tool":"tools"}) lists tool names without loading their schemas.

  • svn_help({"tool":"svn_lock_status"}) returns that tool's inputs and adds it to the current session's tool list. Clients that refresh the MCP tool list can then call it without restarting. Clients that can call by name can also call it directly. For hosts with a fixed list, full still advertises everything at startup.

SVN_MCP_RESPONSE_MODE selects compact (default), receipt, structured-only, standard, or full responses. structuredContent is authoritative. Every mode except structured-only returns exactly one bounded text block by default; structured-only returns no text block. The text block is a short summary and never replaces structured data. humanText remains accepted for compatibility, but it does not change this bound. receipt is the smallest stable contract for status, snapshot, precommit, update, and commit. Use responseMode:"full" only when bounded raw SVN diagnostics and machine paths are needed.

If a call returns neither usable text nor a structured result, classify it as a harness or transport drop. Disclose SVN MCP empty, preserve the same explicit path scope, and use bounded native svn fallback steps for that operation. Retry the MCP later and prefer it again when it returns a usable response; do not use the fallback to bypass a guard refusal. Non-guard failures retain bounded path-sanitized stdout/stderr diagnostics outside full mode; compact guard refusals return only a typed guard code, one-line reason, and affected-path count. Other development/test escape hatches are SVN_AGENT_BIN_DIR, SVN_AGENT_SVN_PATH, SVN_AGENT_DOS2UNIX_DIR, SVN_AGENT_TIMEOUT_MS, SVN_AGENT_MAX_DIFF_LINES, SVN_MCP_HASH_CONCURRENCY, and SVN_MCP_MAX_HASH_BYTES. Hashing defaults to four concurrent files and a 1 GiB aggregate explicit scope; narrow the path scope before raising either bound.

High-volume reads are bounded by default. Log messages and changed paths are capped and opt-in where appropriate. Diff collection defaults to 200 lines, compact excerpts are capped at 3,000 characters, compact logs are capped at 24 KiB, and compact diff results retain transport headroom below a 32 KiB JSON-RPC record. maxChars and maxFiles are upper requests: the response may return less with independent nextCursor and nextFileCursor values. Large file/property/status/EOL collections expose explicit continuation cursors. Buffered SVN commands fail with a scoped diagnostic above 20 MB. Streamed diff lines are capped at 1 MiB each, and per-file diff summaries are capped at 20,000 entries; either truncation is reported. Public path arrays accept at most 500 entries, and individual filesystem paths are capped at 4,096 characters. Compact mode changes response size only; path containment, mutation guards, EOL checks, mixed-revision checks, and commit verification run unchanged.

Use svn_diff diffMode:"counts" for totals only or "hunk-headings" for one meaningful line per file plus omitted-hunk counts. A returned operationId binds later cursor pages to the same bounded process-local evidence, so continuation does not rerun SVN against a changing working copy. Evidence expires after 10 minutes and is limited to 2 MiB per operation, 32 operations, and 16 MiB total. svn_log messageContains performs a bounded server-side scan; changedPathsSummary:true returns per-revision action counts and top-level directories without listing every path. Large updates can use maxItems, taskPaths, and targetOverlapOnly to keep unrelated paths out of the receipt while making complete conflict evidence available through bounded conflictCursor pages. Runner-level line/output truncation is carried into the operation evidence, so a final retained page cannot be mistaken for the complete source diff.

Normal responses use working-copy-relative paths. High-use tools accept a validated fields array; the allowed names are published once under globalResponseControls.fieldProjections in docs/MCP_API.json so the live MCP does not repeat those lists in every tool schema. Invalid fields are rejected before any SVN process starts. Focused docs and review profiles advertise only compact, receipt, and structured-only; known callers may still explicitly request standard/full diagnostics, but switching to the full profile is clearer for diagnostic work.

High-volume controls are likewise published once under globalResponseControls.advancedInputs in docs/MCP_API.json, rather than repeated in every live tool schema. They include afterCursor for status/snapshot polling, diff file/operationId, bounded log filtering and summaries, and update paging/overlap controls. Snapshot tokens are opaque, working-copy and query bound, process-local, and expire after 15 minutes. Repeating the same status or snapshot with afterCursor returns a minimal NO_CHANGE receipt; changed or safety-relevant state returns the current bounded result and a replacement token. For multi-client editing, svn_snapshot captureBaseline:true on explicit files returns a separate pre-edit baseline token. Pass it to svn_update baselineToken to receive path-level local-edit, remote-touch, conflict, and same-path-collision evidence. Directory baselines are refused because directory metadata cannot prove which descendant changed. Conflict lists use independent pages of at most 100 paths; conflictCount, conflictsTruncated, and nextConflictCursor make omitted pages explicit without inflating every status or update response.

svn_commit refuses existing directory targets by default because its deliberate --depth empty behavior commits only the directory node and excludes changed descendants. Prefer explicit file paths. Set expandDescendants:true to expand a named directory to its currently changed descendants, guard every result, and return the exact expanded scope. Set allowDirectoryTargets:true only when intentionally committing a directory property or another directory-node-only change. svn_precommit accepts the same scope controls so its readiness verdict matches the later commit. A READY precommit also returns a short-lived precommitToken bound to exact path status, base revisions, content hashes, repository policy, diff identity, and observed remote revision. Passing that token to svn_commit makes the commit refuse if the verified state changed in between.

Commit messages for svn_commit and svn_import require a subject, a blank second line, and at least one - verification bullet. A svn_commit scope with more than 8 paths requires riskAck:true; exactly 8 paths does not trigger this path-count signal. Other risk signals keep their existing G6 behavior.

For routine changes, use the default svn_commit operation with exact changed file paths. It runs precommit and safe EOL checks and includes scheduled-added parent folders. To add a folder first, review its contents and pass allowRecursive:true to svn_add. Pass an absolute cwd for relative targets, or use absolute target paths. For a broad tracked-change review, set includeUnversioned:false on svn_status in compact or receipt mode.

If your MCP client defers tool discovery, load the svn_commit schema before calling it. svn_help(tool:"svn_commit") also describes the pinned safe workflow. It needs exact file paths, a revision, and an expectedRemoteHead; both accept 123 or "123". Omit operationId and the server generates one and returns it. Supply your own UUID when an identical retry must survive a lost reply. If a commit refusal has nextAction.useOriginalArguments:true, review the suggested scope or risk acknowledgement, then copy the original call, remove the listed omitArguments, and apply the suggested inputs.

Release workflows can pin svn_update with an exact revision; it still requires explicit paths or updateAll:true and always postpones conflicts. Add expectedRemoteHead with a numeric revision to refuse if repository HEAD moved since the caller's probe. Use svn_precommit requireUniformRevision:true when a release handoff must not proceed from a mixed-revision working copy. Ordinary precommit work does not warn about mixed revisions.

Parallel agents can create a valid mixed-revision working copy. A commit receipt may report working_copy_mixed:true in full mode while the commit remains valid. baseRevision:null means no single base revision describes every committed path; use baseRevisionRange for the useful range. Treat mixed state as evidence, not failure by itself. Check the separate out-of-date and conflict diagnostics before deciding whether to stop. Compact OUT_OF_DATE refusals identify bounded outOfDatePaths, outOfDatePathCount, and outOfDatePathsTruncated fields. They retain workingCopyMixed and revisionRange when both conditions are present.

An exact-file svn_update reports scopeKind:"exact-file" and scopeComplete:false because it does not prove that sibling repository additions were fetched. omittedRepositoryAdditions lists bounded missing siblings, and recommendedAction:"update-containing-directory" points to the directory-complete follow-up. Directory and working-copy updates report their own scopeKind and can report scopeComplete:true when the selected scope is complete. If bounded SVN metadata cannot classify every target, the result uses scopeKind:"unknown" and scopeComplete:false. scopeCheckUnavailableReason explains the failure, and recommendedAction:"inspect-target-metadata" directs the next check. Omitted-addition counts are not authoritative for an unknown scope.

svn_commit keeps postStatusClean for compatibility, but it applies only to the committed path scope. Read postStatusScope:"committed-paths" and postStatusPaths to identify that scope. trackedClean reports whether tracked changes remain, while untrackedCount reports unknown scratch paths separately. The legacy workingCopyClean field remains the strict whole-working-copy check. Do not infer whole-working-copy cleanliness from postStatusClean.

svn_commit operation:"prepare" performs a pinned update of explicit intended paths with conflicts postponed, checks an optional expected remote HEAD, refuses any path touched outside that scope, and then runs the normal guarded precommit checks. It never commits. Its compact receipt reports the resulting revision, conflicts, updated paths, and exact final commit scope. Keeping preparation as a mode of the existing commit workflow avoids loading another tool schema.

svn_commit operation:"safe" performs the guarded sequence in one durable call: pinned scoped update, baseline collision refusal, automatic verified EOL repair when precommit requests it, precommit binding, commit, pinned update to the committed revision, and a final clean scoped snapshot. It requires an explicit numeric revision, expectedRemoteHead, pre-edit baselineToken when an earlier edit-session baseline is available, valid commit message, explicit paths, and UUID operationId. Without a token it captures the current explicit-file state before update, keeping the common workflow to one call. Its normal response is a compact receipt. Use operation:"detail" with the returned detailOperationId and cursor to page bounded stage evidence only when an audit needs it. This adds no advertised tool schema; the full profile advertises 30 canonical tools. The focused docs and review profiles include svn_help so agents can load one tool's extended rules on demand.

Scheduled-added files are not valid svn update operands, so safe mode omits only those files from the pinned update while still verifying the expected repository HEAD. They remain in the exact precommit and commit scope.

Mutation retries can include a UUID operationId on svn_update, svn_commit (including prepare and safe mode), eol_fix_verified, svn_resolve, svn_lock, svn_unlock, and svn_needs_lock. The server binds that ID to normalized inputs and stores a bounded receipt outside the working copy. An identical retry replays the prior result after a client timeout or MCP restart; a concurrent or changed request with the same ID is refused. The receipt is local to one machine, not a distributed lock between machines. SVN_MCP_OPERATION_DIR can relocate the store when an operator needs a different profile-data location. The resolved store path is refused when it sits inside any SVN working copy. Terminal receipts and orphan lock/temp files are pruned within fixed count, byte, age, and record-size limits; retained unfinished or unreadable records are never deleted to make room, so new operations fail closed when those records exhaust capacity.

Repository locks

Use svn_lock and svn_unlock for repository locks shared by working copies on different machines. svn_lock requires a non-empty comment. When no label is supplied, the server derives one from SVN_MCP_WORKSTATION_LABEL or the local machine hostname, normalized to [A-Za-z0-9._-] and limited to 64 characters. The server stores the bounded comment as [svn-agent-mcp workstation=<label>] <comment>. svn_lock_status compares local and repository svn info --xml state and returns only a boolean for local token possession. It never returns a lock token. Normal unlock refuses a mismatched working-copy token; stealing a lock requires force:true, forceAck:true, and a UUID operationId. svn_needs_lock sets svn:needs-lock=* or removes it from regular versioned files; removal requires riskAck:true.

Lock status reports held-elsewhere, orphaned-token, and stale-candidate diagnostics. A stale candidate is a lock older than seven days. All lock and property mutations keep the normal working-copy containment, never-commit, durable-receipt, and --readonly guards.

svn_snapshot provides a single inspection call. Load it with svn_help if it is not listed yet. Its compact response includes the working-copy root, repository URL/root, changed and conflict counts, and remote HEAD. Pass includeLockState:true when the agent needs a bounded lock summary; the extra repository probe is opt-in.

The server also publishes MCP workflow prompts for inspection, safe update, safe commit, EOL repair, lock/edit/unlock, and failed-commit diagnosis. They reduce repeated agent instructions without adding another tool call.

Host approval settings

The package leaves host configuration to the user. In Codex, merge these settings into your existing config.toml to select review and automatically approve the SVN server's tools.

[mcp_servers.svn]
command = "svn-agent-mcp"
default_tools_approval_mode = "approve"

[mcp_servers.svn.env]
SVN_MCP_TOOL_PROFILE = "review"

Every registered SVN tool advertises annotations.destructiveHint = false. The MCP approval default applies to this server. Codex's optional top-level approval_policy = "never" applies more broadly to command approval prompts. Per-tool overrides and host policy can still apply. Codex configuration reference

For Claude Code, add a new user-scoped server with:

claude mcp add --env SVN_MCP_TOOL_PROFILE=review --scope user --transport stdio svn -- svn-agent-mcp

For an existing registration, check claude mcp get svn and update it in its existing scope. If the Windows host has trouble launching the npm shim, use node and the global package's absolute dist/index.js path as the command and argument after --. Confirm the connection with /mcp. Claude Code MCP setup

To automatically approve this server's tools in Claude Code, merge this rule into ~/.claude/settings.json for your account or .claude/settings.local.json for one project. The rule also covers additional SVN tools if you later switch this server to full.

{
  "permissions": {
    "allow": ["mcp__svn__*"]
  }
}

Claude Code MCP permission rules

Repositories can make EOL handling automatic for new files:

{
  "normalizeEol": "crlf",
  "eolExclude": ["**/*.patch", "**/*.diff"]
}

With this in .svn-mcp-policy.json, svn_add normalizes and verifies new text files in the same call, skips binaries and excluded byte-exact fixtures, and refuses before scheduling if verification fails. eol_fix_verified also accepts a bounded explicit paths batch for tracked-file repairs. svn_diff and svn_blame ignore EOL-only churn by default; use showEolChanges:true only for EOL diagnostics.

Verified EOL recovery

For a standalone repair or diagnostic, use this sequence for a tracked file with LF, mixed line endings, or BOM damage:

  1. Call eol_check on the explicit path and record kind, has_bom, and mismatch.

  2. Call eol_fix_verified on each failing path when you need an explicit repair receipt. It applies the repository target, removes the BOM by default, hashes canonical LF/no-BOM content, and preserves concurrent edits or guarded paths.

  3. Call svn_diff with ignoreEol:true. An empty content diff or eolOnly:true proves that the repair changed line endings only. Remaining additions, removals, or property changes need review.

For example, an LF file with a BOM reports kind:"lf", has_bom:true in eol_check; after eol_fix_verified, after.has_bom:false and pure_eol_churn:true provide repair evidence. The final svn_diff({"paths":["src/example.cs"],"ignoreEol":true}) call proves byte/content intent without dumping an unbounded diff.

svn_precommit, svn_commit, svn_prepare_commit, and svn_commit operation:"safe" default to autoFixEol:"safe". For each explicit failing text file, the server snapshots the current working bytes, normalizes a temporary copy, and proves the two are identical after canonicalizing line endings only. Intended content and property changes remain visible in the normal SVN diff and do not block EOL repair. The current encoding, BOM, and final-newline presence must be preserved. Set autoFixEol:"off" only for a diagnostic-only check. Mixed profiles containing lone CR bytes fail with EOL_LONE_CR_CHANGED, preventing raw CR inside strings or embedded content from being rewritten. Genuine CR-only classic-Mac files use mac2unix before conversion to the declared target.

Newly added text files use the same working-snapshot proof without requiring BASE. Safe mode uses an explicit svn:eol-style or .svn-mcp-policy.json normalizeEol target, verifies valid UTF-8 and normalized-content identity, preserves any current BOM, applies only that explicit file, and issues the precommit token in the same call. An explicit file property takes precedence over repository policy; the implementation never infers EOL policy from neighboring files. Added files can be normalized alongside ordinary modifications in the same explicit scope, including calls from a subdirectory.

Compact commit receipts omit per-file hashes; request fields:["contentHashes"] or responseMode:"full" when needed. Token-bound commits include diffStat from the validated precommit diff: total added/removed lines and up to 25 paths / 4 KiB of file entries. Larger scopes report filesTruncated:true; full output includes all available entries. Statistics describe the checked content diff, ignoring EOL, and complete:false means counts are partial.

Precommit returns a copy-ready svn_diff nextAction when captured diff evidence has another page. Permanently capped evidence reports diffEvidenceCapped:true without a retry loop. NUL keeps the historical binary refusal. Other C0/DEL controls remain text and are reported as advisories with hexadecimal value, byte offset, line, and 1-based byte column. Compact repair evidence includes autoEolRepairs with target and content/BOM/final-newline checks, plus autoEolRemainingFailures when any explicit path still needs attention.

Agents do not need to discover these workflows in this README first. The advertised tool descriptions state the normal defaults, and exceptional results provide a copy-ready nextAction. Advanced fields remain out of focused schemas where possible so discovery does not increase the token cost of every session. See ADR-015. The full profile advertises every runtime-supported advanced input. Focused profiles keep those fields out of their always-loaded schemas, while svn_help lists the exact names from the same capability registry. EOL help also identifies the real dos2unix/unix2dos converters and the SVN_AGENT_DOS2UNIX_DIR, bundled-runtime, then PATH lookup order.

Commands

Command

Description

npm run dev

Run the TypeScript entry point during development

npm run check:runtime

Verify the minimum Node.js and npm versions

npm run typecheck

Check TypeScript without emitting build output

npm run build

Compile src/ into dist/

npm run generate:api-contract

Generate docs/MCP_API.json from the registered MCP tools

npm run check:api-contract

Fail when the generated MCP API contract is stale

npm test

Run the Jest test suite

npm run test:package

Pack, install, and self-check the real npm artifact in isolation

npm run benchmark:responses

Compare compact MCP, full MCP, and equivalent raw SVN output sizes

npm run check:response-budgets

Fail when representative compact responses or schemas exceed token budgets

npm run prepare:local

Build and prepare the local current runtime

npm run release:prepare

Copy dist/ and bin/ into releases/v<version> and repoint current

npm run clean

Remove root dist/ with the Node clean script

Operator Diagnostics

Use svn_self_check to verify the package and runtime, or svn_diagnose for working-copy, repository, and authentication problems. Load either tool by name with svn_help if it is not listed yet.

Use svn_snapshot for a one-call status and revision summary. Exact ignored descendants are reported with their covering ignored ancestor instead of disappearing behind SVN's W155010 warning. svn_log and svn_diff accept exact or ranged revision selectors; multi-entry log envelopes report an explicit revision range and entry count. Bounded svn_cat and svn_blame calls support historical file inspection without raw SVN output. Mutations include dry-run-first svn_delete, canonical svn_resolve, and svn_path_change with an explicit move, rename, or copy action. Legacy aliases remain callable by name for compatibility and stay out of discovery.

For SVN property work, use svn_propget and guarded svn_propset instead of raw svn propget/svn propset. svn_propset_eol_style remains the safer shortcut for svn:eol-style normalization.

Changelog

Release history is maintained in CHANGELOG.md.

Layout

Path

Purpose

src/

MCP server implementation

src/parse/

SVN XML/text parsers

src/tools/

MCP tool families

tests/

Unit and temp-repository integration tests

.svn-mcp-policy.json

Repo-local guard exceptions for this MCP's intentional runtime payloads

bin/

Versioned Windows SVN and EOL converter runtime binaries

third_party_licenses/

License and notice texts shipped with the bundled runtime

THIRD_PARTY_NOTICES.md

Notices for bundled binary payloads

docs/

Spec, generated MCP API contract, local rules, and decisions

releases/

Generated versioned runtime release payloads, ignored by Git

Usage Model

Register one global MCP server and use explicit paths or per-call cwd values when working across SVN checkouts. The server does not assume a product name, project name, or fixed working copy.

Available Tools

23 tools
eol_checkA

Inspect EOL kind, BOM, and svn:eol-style for explicit files.

Inputs: paths (required), cwd.

eol_fix_verifiedC

Convert one file's EOL with unix2dos/dos2unix inferred from svn:eol-style, then verify the ignored-EOL diff.

Inputs: path (required), cwd, dryRun, target, +2 more.

svn_addC

Guarded svn add for explicit files, adding needed parent directories, or explicitly recursive directories.

Inputs: paths (required), cwd, allowRecursive.

svn_cleanupC

Run svn cleanup without destructive cleanup flags.

Inputs: cwd, path.

svn_commitC

Guarded svn commit using a temp -F message file and explicit paths.

Inputs: paths (required), message (required), cwd, riskAck.

svn_copyC

Guarded working-copy svn copy with parent directory creation.

Inputs: src (required), dest (required), cwd.

svn_diagnoseA

Read-only working-copy diagnostics for local status, remote status, HEAD info, and latest log reachability.

Inputs: cwd, paths.

svn_diffB

Run scoped svn diff; ignore-EOL is enabled by default with internal diff and returns per-file counts.

Inputs: paths (required), cwd, ignoreEol, lineLimit.

svn_exportC

Run explicit svn export.

Inputs: src (required), dest (required), cwd, revision.

svn_importC

Run svn import with a temp -F message file.

Inputs: src (required), url (required), message (required), cwd.

svn_infoA

Run svn info and detect mixed-revision working-copy state.

Inputs: cwd, paths.

svn_logC

Run svn log and return structured log entries.

Inputs: cwd, limit, paths, verbose.

svn_moveC

Guarded working-copy svn move with parent directory creation.

Inputs: src (required), dest (required), cwd.

svn_precommitC

Composite read-only precommit check: status, ignore-EOL diff, EOL check, guard dry-run, and mixed-revision warning.

Inputs: paths (required), cwd, lineLimit.

svn_propgetB

Read one working-copy property from explicit paths.

Inputs: name (required), paths (required), cwd.

svn_propsetC

Guarded working-copy svn propset for explicit paths.

Inputs: name (required), paths (required), value (required), cwd, +1 more.

svn_propset_eol_styleA

Set svn:eol-style only for explicit files whose property is missing or mismatched.

Inputs: paths (required), cwd, style.

svn_renameC

Alias for guarded working-copy svn move/rename with parent directory creation.

Inputs: src (required), dest (required), cwd.

svn_resolvedC

Resolve one conflicted path with an explicit accept mode.

Inputs: path (required), accept (required), cwd.

svn_revertB

Preview or perform guarded svn revert for explicit paths.

Inputs: paths (required), cwd, dryRun, allowRecursive.

svn_self_checkB

Report MCP release pointer, bundled runtime payload counts, startup probe, and packaging script health.

Inputs: cwd.

svn_statusB

Run scoped svn status and return structured changed paths and conflicts.

Inputs: cwd, paths, hideNoise, includeIgnored.

svn_updateC

Guarded svn update with --accept postpone.

Inputs: cwd, paths, updateAll.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes (e.g., svn_add vs svn_commit). However, svn_move and svn_rename are aliases for the same operation, causing redundancy. Additionally, eol_check and eol_fix_verified overlap in scope, but descriptions clarify their difference.

    Naming Consistency3/5

    The majority of tools follow a consistent svn_{verb} pattern. However, two EOL-related tools use an eol_ prefix instead of svn_eol_, and svn_self_check does not follow the verb pattern. This inconsistency may confuse an agent.

    Tool Count5/5

    23 tools is an appropriate number for a Subversion client agent. It covers a wide range of operations without being overwhelming or too sparse. Each tool seems necessary for distinct SVN tasks.

    Completeness3/5

    The tool set covers many core SVN operations, but notable gaps exist: svn_delete, svn_merge, svn_switch, and svn_blame are missing. For a comprehensive SVN workflow, these operations are important. The precommit check and EOL handling are nice additions, but the gaps reduce completeness.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      A complete Model Context Protocol server for Subversion (SVN) integration, designed to allow AI agents to efficiently manage SVN repositories.
      14
      503 npm
      24
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A local MCP server that provides a safe, explicit set of Git operations for version control tasks like status, diff, branching, staging, committing, fetching, merging, and pushing.
      13
      5 npm
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      Enables secure, policy-controlled operations on local git repositories through MCP, including bounded reads, context-checked patches, allowlisted tasks, and guarded git operations.
      10
      -