Jeremiah Lowin commited on
Commit
5247b28
·
unverified ·
2 Parent(s): 0c07b0abd8f31c

Merge pull request #756 from jlowin/2.7-update

Browse files
docs/assets/updates/release-2-7.png ADDED

Git LFS Details

  • SHA256: 4a8975350eb4c1129108172c203d097c55107c5d13c1de79a3a1a8607f1ff233
  • Pointer size: 132 Bytes
  • Size of remote file: 1.73 MB
docs/updates.mdx CHANGED
@@ -3,11 +3,36 @@ title: "FastMCP Updates"
3
  sidebarTitle: "Updates"
4
  icon: "sparkles"
5
  tag: "New!"
 
6
  ---
7
- <Update label="FastMCP 2.6" description="June 6, 2025">
 
 
 
 
 
 
 
8
 
 
9
 
 
 
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  <Card
12
  title="Blast Auth with FastMCP 2.6" href="https://www.jlowin.dev/blog/fastmcp-2-6"
13
  img="https://www.jlowin.dev/_image?href=%2F_astro%2Fhero.Bsu8afiw.png&w=1000&h=500&f=webp"
 
3
  sidebarTitle: "Updates"
4
  icon: "sparkles"
5
  tag: "New!"
6
+ mode: "wide"
7
  ---
8
+ <Update label="FastMCP 2.7" description="June 6, 2025">
9
+ <Card
10
+ title="FastMCP 2.7: Pare Programming" href="https://github.com/jlowin/fastmcp/releases/tag/v2.7.0"
11
+ img="assets/updates/release-2-7.png"
12
+ cta="Read the release notes"
13
+ arrow="false"
14
+ >
15
+ FastMCP 2.7 has been released!
16
 
17
+ Most notably, it introduces the highly requested (and Pythonic) "naked" decorator usage:
18
 
19
+ ```python {3}
20
+ mcp = FastMCP()
21
 
22
+ @mcp.tool
23
+ def add(a: int, b: int) -> int:
24
+ return a + b
25
+ ```
26
+
27
+ In addition, decorators now return the objects they create, instead of the decorated function. This is an important usability enhancement.
28
+
29
+ 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.
30
+ </Card>
31
+ </Update>
32
+
33
+
34
+
35
+ <Update label="FastMCP 2.6" description="June 6, 2025">
36
  <Card
37
  title="Blast Auth with FastMCP 2.6" href="https://www.jlowin.dev/blog/fastmcp-2-6"
38
  img="https://www.jlowin.dev/_image?href=%2F_astro%2Fhero.Bsu8afiw.png&w=1000&h=500&f=webp"