finish mcp tutorial
This commit is contained in:
parent
d359ce486a
commit
eb80114122
|
|
@ -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 |
|
| [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 |
|
| [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 |
|
| [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>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,11 @@ This project shows how to build an agent that performs addition using PocketFlow
|
||||||
|
|
||||||
## How It Works
|
## How It Works
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart LR
|
||||||
|
tools[GetToolsNode] -->|decide| decide[DecideToolNode]
|
||||||
|
decide -->|execute| execute[ExecuteToolNode]
|
||||||
|
```
|
||||||
|
|
||||||
The agent uses PocketFlow to create a workflow where:
|
The agent uses PocketFlow to create a workflow where:
|
||||||
1. It takes user input about numbers
|
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
|
- [`main.py`](./main.py): Implementation of the addition agent using PocketFlow
|
||||||
- [`utils.py`](./utils.py): Helper functions for API calls and MCP integration
|
- [`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_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
|
|
||||||
Loading…
Reference in New Issue