Feedback

Chat Icon

Practical MCP with FastMCP & LangChain

Engineering the Agentic Experience

Using FastMCP Advanced Features (Puppy Guide MCP)
40%

Preparing the Development Environment

We will follow the same process as in the previous chapter to set up our development environment. We will create a new project and install the necessary dependencies. These are the commands we will run in the terminal:

# Create a new directory for our project and navigate into it
mkdir -p $HOME/workspace/puppy_guide/server
cd $HOME/workspace/puppy_guide/server

# Initialize a new UV project with Python 3.12
uv init --bare --python=3.12

# Install the FastMCP library
uv add "fastmcp==3.0.2"

Let's also create a fastmcp.json file in the root of our project with the following content:

cat > fastmcp.json << EOF
{
  "\$schema": "https://gofastmcp.com/public/schemas/fastmcp.json/v1.json",
  "source": {
    "path": "main.py",

Practical MCP with FastMCP & LangChain

Engineering the Agentic Experience

Enroll now to unlock current content and receive all future updates for free. Your purchase supports the author and fuels the creation of more exciting content. Act fast, as the price will rise as the course nears completion!