Test against fastmcp (#6666)

This commit is contained in:
Jack Amadeo
2026-01-23 16:11:32 -05:00
committed by GitHub
parent bb82c062b1
commit 1bf952e813
15 changed files with 105 additions and 222 deletions
+14
View File
@@ -0,0 +1,14 @@
from typing import Annotated
from fastmcp import FastMCP
mcp = FastMCP("mymcp")
@mcp.tool
def divide(
dividend: Annotated[float, "Dividend/numerator of the division."],
divisor: Annotated[float, "Divisor/denominator of the division."],
) -> Annotated[float, "Result of the division."]:
"""Divide two numbers and return the result."""
return dividend / divisor