python-sdk
python-sdk copied to clipboard
My SDK syntax idea
Description
I have an idea to make the Tool syntax like this:
from mcp.types import Tool
@Tool(name="hello", description="Say hello back")
def hello():
return [TextContent(type="text", text="Hello")]
Why? Because it cleaner and easier to update
I hope this is approve for the feature version
Thanks!
References
No response