Files

14 lines
341 B
Python

from mcp.server import FastMCP
import inspect
# Check FastMCP API
print("FastMCP methods with 'tool':")
for name in dir(FastMCP):
if 'tool' in name.lower():
print(f" {name}")
# Check if it has a tool decorator
if hasattr(FastMCP, 'tool'):
print("\nFastMCP.tool is a decorator!")
print(inspect.signature(FastMCP.tool))