Skip to content

Commit 6cdb80b

Browse files
authored
Merge branch 'main' into localden/authz-updates
2 parents f052658 + 06573b6 commit 6cdb80b

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

docs/docs/develop/build-client.mdx

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ Before starting, ensure your system meets these requirements:
2424

2525
First, create a new Python project with `uv`:
2626

27-
```bash
27+
<CodeGroup>
28+
29+
```bash macOS/Linux
2830
# Create project directory
2931
uv init mcp-client
3032
cd mcp-client
@@ -33,39 +35,49 @@ cd mcp-client
3335
uv venv
3436

3537
# Activate virtual environment
36-
# On Windows:
37-
.venv\Scripts\activate
38-
# On Unix or macOS:
3938
source .venv/bin/activate
4039

4140
# Install required packages
4241
uv add mcp anthropic python-dotenv
4342

4443
# Remove boilerplate files
45-
# On Windows:
46-
del main.py
47-
# On Unix or macOS:
4844
rm main.py
4945

5046
# Create our main file
5147
touch 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

7183
Add `.env` to your `.gitignore`:

0 commit comments

Comments
 (0)