Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fastmcp/prompts/function_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def prompt(
if isinstance(name_or_fn, classmethod):
raise TypeError(
"To decorate a classmethod, use @classmethod above @prompt. "
"See https://gofastmcp.com/servers/tools#using-with-methods"
"See https://gofastmcp.com/servers/prompts#using-with-methods"
)

def create_prompt(
Expand Down
6 changes: 3 additions & 3 deletions src/fastmcp/server/providers/local_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def decorator(fn: AnyFunction) -> Resource | ResourceTemplate | AnyFunction:
f" ...\n\n"
f" obj = MyClass()\n"
f" mcp.add_resource(obj.{fn_name})\n\n"
f"See https://gofastmcp.com/servers/tools#using-with-methods"
f"See https://gofastmcp.com/servers/resources#using-with-methods"
)

if fastmcp.settings.decorator_mode == "object":
Expand Down Expand Up @@ -869,7 +869,7 @@ def my_prompt(data: str) -> list:
if isinstance(name_or_fn, classmethod):
raise TypeError(
"To decorate a classmethod, use @classmethod above @prompt. "
"See https://gofastmcp.com/servers/tools#using-with-methods"
"See https://gofastmcp.com/servers/prompts#using-with-methods"
)

def decorate_and_register(
Expand All @@ -892,7 +892,7 @@ def decorate_and_register(
f" ...\n\n"
f" obj = MyClass()\n"
f" mcp.add_prompt(obj.{fn_name})\n\n"
f"See https://gofastmcp.com/servers/tools#using-with-methods"
f"See https://gofastmcp.com/servers/prompts#using-with-methods"
)

resolved_task: bool | TaskConfig = task if task is not None else False
Expand Down
Loading