From c38e27b09736c8903ba41b100f4cf63611c1fb3f Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Mon, 11 Aug 2025 16:39:46 +0530 Subject: [PATCH] Improve example MCP server --- resources/README.md | 6 ++---- resources/echo_server.py | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/README.md b/resources/README.md index 047c220..a10285d 100644 --- a/resources/README.md +++ b/resources/README.md @@ -4,9 +4,7 @@ Use this example MCP server, if you don't already have an MCP server to test the ## Setting Up -1. Navigate to the `resources` directory - -2. Set up a Python environment: +1. Set up a Python virtual environment. ```bash python3 -m venv .venv @@ -14,7 +12,7 @@ source .venv/bin/activate pip3 install -r requirements.txt ``` -3. Start the example server: +2. Start the example server. ```bash python3 echo_server.py diff --git a/resources/echo_server.py b/resources/echo_server.py index 889bcc7..f9339c5 100644 --- a/resources/echo_server.py +++ b/resources/echo_server.py @@ -2,7 +2,6 @@ from mcp.server.fastmcp import FastMCP mcp = FastMCP("Echo") - @mcp.resource("echo://{message}") def echo_resource(message: str) -> str: """Echo a message as a resource"""