Files
microsoft--mcp-for-beginners/03-GettingStarted/10-advanced/code/python

Run sample

Set up virtual environment

python -m venv venv
source ./venv/bin/activate

Install dependencies

pip install "mcp[cli]"

Run code

python client.py

You should see the text:

Available tools: ['add']
Result of add tool: meta=None content=[TextContent(type='text', text='8.0', annotations=None, meta=None)] structuredContent=None isError=False