From 1bd96571a4ed71d68a4bdc41be4fd5c67e0dd349 Mon Sep 17 00:00:00 2001 From: Dan Bianchini Date: Sat, 7 Jun 2025 17:49:38 -0700 Subject: [PATCH] chore: fix prompt docstring --- src/fastmcp/server/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fastmcp/server/server.py b/src/fastmcp/server/server.py index 4395a7aca..d033aa1b0 100644 --- a/src/fastmcp/server/server.py +++ b/src/fastmcp/server/server.py @@ -865,7 +865,7 @@ class FastMCP(Generic[LifespanResultT]): This decorator supports multiple calling patterns: - @server.prompt (without parentheses) - - @server.prompt (with empty parentheses) + - @server.prompt() (with empty parentheses) - @server.prompt("custom_name") (with name as first argument) - @server.prompt(name="custom_name") (with name as keyword argument) - server.prompt(function, name="custom_name") (direct function call) @@ -887,7 +887,7 @@ class FastMCP(Generic[LifespanResultT]): } ] - @server.prompt + @server.prompt() def analyze_with_context(table_name: str, ctx: Context) -> list[Message]: ctx.info(f"Analyzing table {table_name}") schema = read_table_schema(table_name)