Installation
Install
Section titled “Install”curl -fsSL https://raw.githubusercontent.com/buYoung/mcp/main/apps/codemap-search/install.sh | shCustom install directory or version:
curl -fsSL https://raw.githubusercontent.com/buYoung/mcp/main/apps/codemap-search/install.sh | INSTALL_DIR=/usr/local/bin shcurl -fsSL https://raw.githubusercontent.com/buYoung/mcp/main/apps/codemap-search/install.sh | sh -s -- --version 0.14.2| Option / Env var | Description |
|---|---|
--install-dir / INSTALL_DIR |
Install path (default ~/.local/bin) |
--version / CODEMAP_VERSION |
Version or tag to install (e.g. 0.14.2; default latest) |
--no-modify-path / CODEMAP_NO_MODIFY_PATH=1 |
Skip adding the install path to your shell profile |
CODEMAP_LINUX_LIBC |
Use gnu on Linux x86_64 (default musl) |
--print-target |
Print detected target and URLs without downloading |
Run in PowerShell or Command Prompt (cmd.exe):
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/buYoung/mcp/main/apps/codemap-search/install.ps1 | iex"Custom install directory or version:
powershell -ExecutionPolicy ByPass -c "$env:INSTALL_DIR='C:\Tools\bin'; irm https://raw.githubusercontent.com/buYoung/mcp/main/apps/codemap-search/install.ps1 | iex"powershell -ExecutionPolicy ByPass -c "$env:CODEMAP_VERSION='0.14.2'; irm https://raw.githubusercontent.com/buYoung/mcp/main/apps/codemap-search/install.ps1 | iex"| Option / Env var | Description |
|---|---|
-InstallDir / --install-dir / INSTALL_DIR |
Install path (default $HOME\.local\bin) |
-Version / --version / CODEMAP_VERSION |
Version or tag to install (e.g. 0.14.2; default latest) |
-NoModifyPath / --no-modify-path / CODEMAP_NO_MODIFY_PATH=1 |
Skip adding the install path to User Path |
-PrintTarget / --print-target |
Print detected target and URLs without downloading |
Install from crates.io:
cargo install codemap-searchOr build from a local checkout (run from the repository root):
cargo install --path apps/codemap-searchVerify
Section titled “Verify”Open a new terminal and check the installed version:
codemap-search --versionIf the command is not found, see Troubleshooting. Otherwise, continue to MCP Client Setup.
Troubleshooting
Section titled “Troubleshooting”If your terminal reports codemap-search: command not found, add the install directory (~/.local/bin, or ~/.cargo/bin when installed via Cargo) to your shell profile or Windows User Path:
# zsh (macOS / Linux)echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
# bash (Linux / macOS)echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc# Windows PowerShell (open a new terminal afterward)$p = [Environment]::GetEnvironmentVariable("Path", "User")[Environment]::SetEnvironmentVariable("Path", "$HOME\.local\bin;$p", "User")Release archives
Section titled “Release archives”You can also download prebuilt archives directly from GitHub Releases:
| System | Architecture / libc | Archive |
|---|---|---|
| Linux | x86_64 (musl) |
codemap-search-x86_64-unknown-linux-musl.tar.gz |
| Linux | x86_64 (gnu) |
codemap-search-x86_64-unknown-linux-gnu.tar.gz |
| Linux | arm64 (musl) |
codemap-search-aarch64-unknown-linux-musl.tar.gz |
| macOS | Apple Silicon | codemap-search-aarch64-apple-darwin.tar.gz |
| macOS | Intel | codemap-search-x86_64-apple-darwin.tar.gz |
| Windows | x86_64 |
codemap-search-x86_64-pc-windows-msvc.zip |
| Windows | arm64 |
codemap-search-aarch64-pc-windows-msvc.zip |