diff --git a/docs/assets/updates/release-2-7.png b/docs/assets/updates/release-2-7.png new file mode 100644 index 000000000..bdd90c6e5 Binary files /dev/null and b/docs/assets/updates/release-2-7.png differ diff --git a/docs/updates.mdx b/docs/updates.mdx index 1faf9dc91..afaac40e7 100644 --- a/docs/updates.mdx +++ b/docs/updates.mdx @@ -3,11 +3,36 @@ title: "FastMCP Updates" sidebarTitle: "Updates" icon: "sparkles" tag: "New!" +mode: "wide" --- + + +FastMCP 2.7 has been released! + +Most notably, it introduces the highly requested (and Pythonic) "naked" decorator usage: + +```python {3} +mcp = FastMCP() + +@mcp.tool +def add(a: int, b: int) -> int: + return a + b +``` + +In addition, decorators now return the objects they create, instead of the decorated function. This is an important usability enhancement. + +The bulk of the update is focused on improving the FastMCP internals, including a few breaking internal changes to private APIs. A number of functions that have clung on since 1.0 are now deprecated. + + + + + - - -