diff --git a/mcp-vs-api-calls/README.md b/mcp-vs-api/README.md similarity index 93% rename from mcp-vs-api-calls/README.md rename to mcp-vs-api/README.md index 7fc000e502..d4f61a37a3 100644 --- a/mcp-vs-api-calls/README.md +++ b/mcp-vs-api/README.md @@ -1,6 +1,6 @@ # MCP vs API Calls: Which Should You Use for Python LLM Apps? -This folder contains the sample code for the Real Python tutorial [MCP vs API Calls: Which Should You Use for Python LLM Apps?](https://realpython.com/mcp-vs-api-calls/). +This folder contains the sample code for the Real Python tutorial [MCP vs API Calls: Which Should You Use for Python LLM Apps?](https://realpython.com/mcp-vs-api/). ## Files @@ -16,7 +16,7 @@ Create a virtual environment and install the dependencies: ```console $ python -m venv tools-venv $ source tools-venv/bin/activate -(tools-venv) $ python -m pip install anthropic "mcp>=2,<3" +(tools-venv) $ python -m pip install "anthropic>=1,<2" "mcp>=2,<3" ``` The examples use the Anthropic client, which requires an API key. Create a key in the [Anthropic Console](https://console.anthropic.com/), scope it to a single workspace, and export it: diff --git a/mcp-vs-api-calls/client.py b/mcp-vs-api/client.py similarity index 100% rename from mcp-vs-api-calls/client.py rename to mcp-vs-api/client.py diff --git a/mcp-vs-api-calls/client_api.py b/mcp-vs-api/client_api.py similarity index 100% rename from mcp-vs-api-calls/client_api.py rename to mcp-vs-api/client_api.py diff --git a/mcp-vs-api-calls/server.py b/mcp-vs-api/server.py similarity index 100% rename from mcp-vs-api-calls/server.py rename to mcp-vs-api/server.py diff --git a/mcp-vs-api-calls/tool.py b/mcp-vs-api/tool.py similarity index 100% rename from mcp-vs-api-calls/tool.py rename to mcp-vs-api/tool.py diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000000..a5bc51476b --- /dev/null +++ b/uv.lock @@ -0,0 +1,3 @@ +version = 1 +revision = 3 +requires-python = ">=3.14"