python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

My SDK syntax idea

Open bo2013 opened this issue 2 months ago • 0 comments

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

bo2013 avatar Nov 28 '25 11:11 bo2013