Split the monolithic syncthing_mcp.py into a proper src/syncthing_mcp/ package with focused modules: client, models, registry, server, and tool submodules (system, folders, devices, config, instances). New tools: browse_folder, file_info, folder_need (file-level queries), override_folder, revert_folder (conflict resolution), check_upgrade (system management). Bumps tool count from 30 to 36. Adds comprehensive test suite (96 tests) using pytest + respx for HTTP mocking, covering client methods, registry logic, model validation, and all tool functions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
521 B
Bash
Executable File
24 lines
521 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SERVER_NAME="syncthing-mcp"
|
|
DEST="$HOME/.local/share/mcp-servers/$SERVER_NAME"
|
|
|
|
# Clean deploy — wipe previous, copy fresh
|
|
mkdir -p "$DEST"
|
|
rsync -a --delete \
|
|
--exclude '.git' \
|
|
--exclude '.venv' \
|
|
--exclude '__pycache__' \
|
|
--exclude '*.pyc' \
|
|
--exclude '.DS_Store' \
|
|
--exclude 'tests' \
|
|
. "$DEST/"
|
|
|
|
# Install/update deps in the runtime location
|
|
cd "$DEST"
|
|
uv sync --quiet
|
|
|
|
echo "Deployed $SERVER_NAME to $DEST"
|
|
echo " Restart Claude Desktop to pick up changes."
|