Skip to content

Move docstrings to description field of @mcp.tool decorator#8

Merged
czoido merged 1 commit intomainfrom
czoido/move-docstrings-to-descriptions
Oct 21, 2025
Merged

Move docstrings to description field of @mcp.tool decorator#8
czoido merged 1 commit intomainfrom
czoido/move-docstrings-to-descriptions

Conversation

@czoido
Copy link
Copy Markdown
Contributor

@czoido czoido commented Oct 21, 2025

The description field in the decorator takes preference over the docstring, defining that field invalidates the content of the docstring, so there should be only one defined: https://gofastmcp.com/servers/prompts#decorator-arguments

image

@czoido czoido merged commit 711d853 into main Oct 21, 2025
1 check passed
@czoido czoido deleted the czoido/move-docstrings-to-descriptions branch October 22, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants