From ca9f58fa095ff45288e2027a86ef4b77852bd576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20S=C3=A9veno?= Date: Tue, 20 May 2025 14:52:29 +0200 Subject: [PATCH] Add user input tool --- mcp.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mcp.go b/mcp.go index de220cc..de60791 100644 --- a/mcp.go +++ b/mcp.go @@ -174,6 +174,11 @@ func (s *MCPServer) ListTools() []mcp.Tool { Description: "Used to indicate that the task is over.", InputSchema: mcp.NewSchemaObject(mcp.Properties{}), }, + { + Name: "user_input", + Description: "Waits for the user to give further instructions.", + InputSchema: mcp.NewSchemaObject(mcp.Properties{}), + }, } } @@ -216,6 +221,8 @@ func (s *MCPServer) CallTool(ctx context.Context, conn *MCPConn, req mcp.ToolsCa return args.Text, nil case "over": return "The task is over.", nil + case "user_input": + return "Waiting for user input.", nil } // no tool found