Minseok Jung commited on
Commit
95e6253
·
1 Parent(s): 35f12d2

update docs

Browse files
docs/getting-started/quickstart.mdx CHANGED
@@ -32,7 +32,7 @@ from fastmcp import FastMCP
32
 
33
  mcp = FastMCP("My MCP Server")
34
 
35
- @mcp.tool
36
  def greet(name: str) -> str:
37
  return f"Hello, {name}!"
38
  ```
@@ -48,7 +48,7 @@ from fastmcp import FastMCP, Client
48
 
49
  mcp = FastMCP("My MCP Server")
50
 
51
- @mcp.tool
52
  def greet(name: str) -> str:
53
  return f"Hello, {name}!"
54
 
@@ -75,7 +75,7 @@ from fastmcp import FastMCP, Client
75
 
76
  mcp = FastMCP("My MCP Server")
77
 
78
- @mcp.tool
79
  def greet(name: str) -> str:
80
  return f"Hello, {name}!"
81
 
 
32
 
33
  mcp = FastMCP("My MCP Server")
34
 
35
+ @mcp.tool()
36
  def greet(name: str) -> str:
37
  return f"Hello, {name}!"
38
  ```
 
48
 
49
  mcp = FastMCP("My MCP Server")
50
 
51
+ @mcp.tool()
52
  def greet(name: str) -> str:
53
  return f"Hello, {name}!"
54
 
 
75
 
76
  mcp = FastMCP("My MCP Server")
77
 
78
+ @mcp.tool()
79
  def greet(name: str) -> str:
80
  return f"Hello, {name}!"
81