@@ -24,7 +24,9 @@ Before starting, ensure your system meets these requirements:
2424
2525First, create a new Python project with ` uv ` :
2626
27- ``` bash
27+ <CodeGroup >
28+
29+ ``` bash macOS/Linux
2830# Create project directory
2931uv init mcp-client
3032cd mcp-client
@@ -33,39 +35,49 @@ cd mcp-client
3335uv venv
3436
3537# Activate virtual environment
36- # On Windows:
37- .venv\S cripts\a ctivate
38- # On Unix or macOS:
3938source .venv/bin/activate
4039
4140# Install required packages
4241uv add mcp anthropic python-dotenv
4342
4443# Remove boilerplate files
45- # On Windows:
46- del main.py
47- # On Unix or macOS:
4844rm main.py
4945
5046# Create our main file
5147touch client.py
5248```
5349
54- ## Setting Up Your API Key
50+ ``` powershell Windows
51+ # Create project directory
52+ uv init mcp-client
53+ cd mcp-client
5554
56- You'll need an Anthropic API key from the [ Anthropic Console] ( https://console.anthropic.com/settings/keys ) .
55+ # Create virtual environment
56+ uv venv
5757
58- Create a ` .env ` file to store it:
58+ # Activate virtual environment
59+ .venv\Scripts\activate
5960
60- ``` bash
61- # Create .env file
62- touch .env
61+ # Install required packages
62+ uv add mcp anthropic python-dotenv
63+
64+ # Remove boilerplate files
65+ del main.py
66+
67+ # Create our main file
68+ new-item client.py
6369```
6470
65- Add your key to the ` .env ` file:
71+ </CodeGroup >
72+
73+ ## Setting Up Your API Key
74+
75+ You'll need an Anthropic API key from the [ Anthropic Console] ( https://console.anthropic.com/settings/keys ) .
76+
77+ Create a ` .env ` file to store it:
6678
6779``` bash
68- ANTHROPIC_API_KEY=< your key here>
80+ echo " ANTHROPIC_API_KEY=<your key here>" > .env
6981```
7082
7183Add ` .env ` to your ` .gitignore ` :
0 commit comments