danb27 commited on
Commit
52aa5a1
·
unverified ·
1 Parent(s): ceacf13

chore: fix prompt docstring

Browse files
Files changed (1) hide show
  1. src/fastmcp/server/server.py +2 -2
src/fastmcp/server/server.py CHANGED
@@ -865,7 +865,7 @@ class FastMCP(Generic[LifespanResultT]):
865
 
866
  This decorator supports multiple calling patterns:
867
  - @server.prompt (without parentheses)
868
- - @server.prompt (with empty parentheses)
869
  - @server.prompt("custom_name") (with name as first argument)
870
  - @server.prompt(name="custom_name") (with name as keyword argument)
871
  - server.prompt(function, name="custom_name") (direct function call)
@@ -887,7 +887,7 @@ class FastMCP(Generic[LifespanResultT]):
887
  }
888
  ]
889
 
890
- @server.prompt
891
  def analyze_with_context(table_name: str, ctx: Context) -> list[Message]:
892
  ctx.info(f"Analyzing table {table_name}")
893
  schema = read_table_schema(table_name)
 
865
 
866
  This decorator supports multiple calling patterns:
867
  - @server.prompt (without parentheses)
868
+ - @server.prompt() (with empty parentheses)
869
  - @server.prompt("custom_name") (with name as first argument)
870
  - @server.prompt(name="custom_name") (with name as keyword argument)
871
  - server.prompt(function, name="custom_name") (direct function call)
 
887
  }
888
  ]
889
 
890
+ @server.prompt()
891
  def analyze_with_context(table_name: str, ctx: Context) -> list[Message]:
892
  ctx.info(f"Analyzing table {table_name}")
893
  schema = read_table_schema(table_name)