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