finish mcp tutorial

This commit is contained in:
zachary62 2025-03-29 13:15:13 -04:00
parent d359ce486a
commit eb80114122
2 changed files with 7 additions and 3 deletions

View File

@ -80,7 +80,7 @@ From there, it's easy to implement popular design patterns like ([Multi-](https:
| [Parallel Flow](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-parallel-batch-flow) | ★☆☆ <br> *Beginner* | A parallel image processing demo showing 8x speedup with multiple filters |
| [Thinking](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-thinking) | ★☆☆ <br> *Beginner* | Solve complex reasoning problems through Chain-of-Thought |
| [Memory](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-chat-memory) | ★☆☆ <br> *Beginner* | A chat bot with short-term and long-term memory |
| [MCP](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-mcp) | ★☆☆ <br> *Beginner* | Agent using Model Context Protocol for merical operations |
</div>

View File

@ -37,6 +37,11 @@ This project shows how to build an agent that performs addition using PocketFlow
## How It Works
```mermaid
flowchart LR
tools[GetToolsNode] -->|decide| decide[DecideToolNode]
decide -->|execute| execute[ExecuteToolNode]
```
The agent uses PocketFlow to create a workflow where:
1. It takes user input about numbers
@ -47,5 +52,4 @@ The agent uses PocketFlow to create a workflow where:
- [`main.py`](./main.py): Implementation of the addition agent using PocketFlow
- [`utils.py`](./utils.py): Helper functions for API calls and MCP integration
- [`simple_server.py`](./simple_server.py): MCP server that provides the addition tool
- [`simple_client.py`](./simple_client.py): Example client that connects to the MCP server
- [`simple_server.py`](./simple_server.py): MCP server that provides the addition tool