Stage 2: Install dependencies

Introduction

In this stage, you will install required dependencies with uv - a fast Python dependency manager that simplifies package installation and running servers.

The steps

1

Install uv

Run the following command from a terminal window:

curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
2

Restart terminal

Quit and restart the terminal, then run the following command to check your uv version:

uv --version

You should see a version number - for example:

If the uv installation hasn't worked after completing the above steps, try installing it manually.

Installing uv manually

If you have completed the steps above, but uv fails to install, follow the steps below from a terminal window.

1

Change into the required folder

In a terminal window, run the following command:

cd ~/patchworks-mcp
2

Create & activate a virtual environment

Run the following command:

uv venv && source .venv/bin/activate
3

Install dependencies

Run the following command:

uv pip install "mcp[cli]>=0.1.0" "pydantic>=2.7" "python-dotenv>=1.0" "requests>=2.32"

Last updated

Was this helpful?