Skip to content

fix: add run.sh launcher to handle venv path breakage on repo move - #138

Open
miles-on-nightshift wants to merge 1 commit into
datafund:mainfrom
miles-on-nightshift:fix/131-launcher-script-venv-path-breakage
Open

fix: add run.sh launcher to handle venv path breakage on repo move#138
miles-on-nightshift wants to merge 1 commit into
datafund:mainfrom
miles-on-nightshift:fix/131-launcher-script-venv-path-breakage

Conversation

@miles-on-nightshift

Copy link
Copy Markdown
Contributor

Closes #131

What

Adds run.sh at the repo root — a thin launcher that auto-detects a broken venv (caused by moving/renaming the repo directory) and recreates it before starting the MCP server.

Why

Python venvs embed absolute paths in shebang lines. Moving or renaming the repo makes every venv/bin/ script fail. Claude Desktop shows "Server started and connected" then immediately disconnects — the actual error (bad interpreter) is buried in stderr and hard to diagnose.

Changes

  • run.sh — 10-line launcher with self-healing venv logic
  • README.md — macOS/Linux "From Source" config updated to use run.sh instead of venv/bin/python directly; on-chain provenance config also updated
  • Windows config left as-is (run.sh not applicable on Windows)

Test plan

  1. Clone repo fresh → ./run.sh → server starts normally
  2. Move repo to new path → ./run.sh → venv recreated automatically, server starts
  3. Claude Desktop config using run.sh: connect/disconnect cycle gone after repo move

Venv shebangs embed absolute paths — moving or renaming the repo
directory silently breaks the server (Claude Desktop reports "connected"
then immediately disconnects).

run.sh detects a broken venv and auto-recreates it before launching,
so users no longer need to manually rebuild after relocation.

README "From Source" config updated to point at run.sh instead of
the raw venv python path. Windows config unchanged (run.sh not applicable).

Closes datafund#131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add launcher script to handle venv path breakage on repo move

1 participant