From eb801141220a180774adcd065d3dc08f5e293f86 Mon Sep 17 00:00:00 2001 From: zachary62 Date: Sat, 29 Mar 2025 13:15:13 -0400 Subject: [PATCH] finish mcp tutorial --- README.md | 2 +- cookbook/pocketflow-mcp/README.md | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dd81856..8cb26cc 100644 --- a/README.md +++ b/README.md @@ -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) | ★☆☆
*Beginner* | A parallel image processing demo showing 8x speedup with multiple filters | | [Thinking](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-thinking) | ★☆☆
*Beginner* | Solve complex reasoning problems through Chain-of-Thought | | [Memory](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-chat-memory) | ★☆☆
*Beginner* | A chat bot with short-term and long-term memory | - +| [MCP](https://github.com/The-Pocket/PocketFlow/tree/main/cookbook/pocketflow-mcp) | ★☆☆
*Beginner* | Agent using Model Context Protocol for merical operations | diff --git a/cookbook/pocketflow-mcp/README.md b/cookbook/pocketflow-mcp/README.md index ca159d6..010c5d3 100644 --- a/cookbook/pocketflow-mcp/README.md +++ b/cookbook/pocketflow-mcp/README.md @@ -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 \ No newline at end of file +- [`simple_server.py`](./simple_server.py): MCP server that provides the addition tool \ No newline at end of file