svn-agent MCP
Enables secure SVN version control operations via MCP, including status, diff, precommit checks, and guarded mutations, with a bundled Windows runtime.
README
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. Version 1.0.0 is the first public open-source release and can prepare a self-contained local runtime bundle under releases/v1.0.0.
Requirements: Windows, Node.js 20 or newer, Git, and access to the public npm registry. The bundled SlikSVN and dos2unix runtime payload is Windows-only.
Quick Start
git clone https://github.com/shrishailrana-maker/svn-agent-mcp-v1.git
cd svn-agent-mcp-v1
npm install
npm run prepare:local
npm test
Agent Setup From GitHub
Tell an agent:
Get the SVN MCP from https://github.com/shrishailrana-maker/svn-agent-mcp-v1, clone it to C:\MCP\svn-agent-mcp-v1, run npm install, run npm run prepare:local, then configure the MCP command as node C:\MCP\svn-agent-mcp-v1\current\dist\index.js.
The setup commands are:
git clone https://github.com/shrishailrana-maker/svn-agent-mcp-v1.git C:\MCP\svn-agent-mcp-v1
cd C:\MCP\svn-agent-mcp-v1
npm install
npm run prepare:local
Then configure the MCP client to run:
node C:\MCP\svn-agent-mcp-v1\current\dist\index.js
Claude Desktop Config Example
Add this under mcpServers:
{
"mcpServers": {
"svn": {
"command": "node",
"args": ["C:\\MCP\\svn-agent-mcp-v1\\current\\dist\\index.js"]
}
}
}
Codex Config Example
[mcp_servers.svn]
command = "node"
args = ["C:\\MCP\\svn-agent-mcp-v1\\current\\dist\\index.js"]
startup_timeout_sec = 120
Restart the MCP client after changing the config.
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 full SlikSVN bin payload plus the full dos2unix bin payload. Releases copy that folder to current/bin, so normal Windows clients do not need to locate or install svn, svnversion, svnadmin, dos2unix, unix2dos, or their required DLLs. See THIRD_PARTY_NOTICES.md and THIRD_PARTY_CHECKSUMS.txt for bundled binary notices and SHA256 hashes.
Plug-And-Play Client Config
Register the MCP once globally. Do not set cwd and do not set environment variables:
Generic client example:
{
"mcpServers": {
"svn": {
"command": "node",
"args": ["C:\\MCP\\svn-agent-mcp-v1\\current\\dist\\index.js"]
}
}
}
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 explicit per-call cwd.
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.
Environment variables are not required for normal use. They are development/test escape hatches only: SVN_AGENT_BIN_DIR, SVN_AGENT_SVN_PATH, SVN_AGENT_DOS2UNIX_DIR, SVN_AGENT_TIMEOUT_MS, and SVN_AGENT_MAX_DIFF_LINES.
Commands
| Command | Description |
|---|---|
npm run dev |
Run the TypeScript entry point during development |
npm run typecheck |
Check TypeScript without emitting build output |
npm run build |
Compile src/ into dist/ |
npm test |
Run the Jest test suite |
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 MCP package, current release pointer, bundled binaries, and release scripts. Use svn_diagnose on a working-copy path when SVN itself is acting strange; it checks local status, remote status, HEAD info, latest log reachability, and returns actionable notes for authentication, network, lock, and working-copy database failures.
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_NOTICES.md |
Notices for bundled binary payloads |
docs/ |
Spec, 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。