From ae9f856ad0d4d8178cf9f78a0e98e9821ee40da8 Mon Sep 17 00:00:00 2001 From: Arnold Szederjesi Date: Wed, 24 Sep 2025 10:38:51 +0300 Subject: [PATCH] Update README.md - adjust to new function name - add require Logger to be able to log --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8732417..bf29c86 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ defmodule MyApp.MCPServer do version: "1.0.0", capabilities: [:tools] + require Logger + @impl true # this callback will be called when the # MCP initialize lifecycle completes @@ -48,7 +50,7 @@ defmodule MyApp.MCPServer do end @impl true - def handle_tool("echo", %{text: text}, frame) do + def handle_tool_call("echo", %{text: text}, frame) do Logger.info("This tool was called #{frame.assigns.counter + 1}") {:reply, text, assign(frame, counter: frame.assigns.counter + 1)} end