Skip to content

Commit b0e7375

Browse files
jingyugaoihrpr
andauthored
Update src/mcp/server/fastmcp/resources/types.py
Co-authored-by: ihrpr <[email protected]>
1 parent 9fb9ce6 commit b0e7375

File tree

1 file changed

+1
-1
lines changed
  • src/mcp/server/fastmcp/resources

1 file changed

+1
-1
lines changed

src/mcp/server/fastmcp/resources/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def from_function(
8787

8888
return cls(
8989
uri=AnyUrl(uri),
90-
name=name,
90+
name=func_name,
9191
description=description or fn.__doc__ or "",
9292
mime_type=mime_type or "text/plain",
9393
fn=fn,

0 commit comments

Comments
 (0)