mirror of
https://github.com/VitexSoftware/mcprack-client.git
synced 2026-10-03 21:37:48 +00:00
Shared library for mcprack MCP client config sync utilities
Use unlabelled agents, mount the git mirror into the build container so worktree checkouts resolve, limit the matrix to debian:trixie, and keep an empty installOrder. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| debian | ||
| mcprack_client | ||
| tests | ||
| .gitignore | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
mcprack-client
Shared Python library for mcprack MCP client configuration sync tools.
Used by:
mcprack-sync-claude— Claude Desktop / Claude Codemcprack-sync-cursor— Cursor IDEmcprack-sync-vscode— VS Code Copilot
What it does
- Loads
MCPRACK_URL+MCPRACK_TOKENfrom process env,~/.config/mcprack/client.env, or/etc/mcprack/client.env - Fetches
/api/v1/me/config/<client>from a mcprack instance - Merges the remote server map into an existing local JSON config while preserving unrelated keys and local-only servers
- Tracks previously managed server names under
~/.local/state/mcprack-sync/
Stdlib only — no third-party Python dependencies.
Settings file
# ~/.config/mcprack/client.env
MCPRACK_URL=https://mcprack.example.com
MCPRACK_TOKEN=mcr_...
Create a personal API token in the mcprack web UI (user menu → API tokens).
Development
python3 -m venv .venv && . .venv/bin/activate
pip install -e '.[dev]' 2>/dev/null || pip install -e .
pip install pytest
pytest
License
MIT