Spaces:
Running
Running
Jeremiah Lowin commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,15 +16,19 @@ FastMCP makes building MCP servers simple and intuitive. Create tools, expose re
|
|
| 16 |
```python
|
| 17 |
from fastmcp import FastMCP
|
| 18 |
|
|
|
|
| 19 |
mcp = FastMCP("Demo 🚀")
|
| 20 |
|
|
|
|
| 21 |
@mcp.tool()
|
| 22 |
def add(a: int, b: int) -> int:
|
| 23 |
"""Add two numbers"""
|
| 24 |
return a + b
|
| 25 |
```
|
| 26 |
|
| 27 |
-
That's it!
|
|
|
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
### Key features:
|
|
|
|
| 16 |
```python
|
| 17 |
from fastmcp import FastMCP
|
| 18 |
|
| 19 |
+
|
| 20 |
mcp = FastMCP("Demo 🚀")
|
| 21 |
|
| 22 |
+
|
| 23 |
@mcp.tool()
|
| 24 |
def add(a: int, b: int) -> int:
|
| 25 |
"""Add two numbers"""
|
| 26 |
return a + b
|
| 27 |
```
|
| 28 |
|
| 29 |
+
That's it!
|
| 30 |
+
|
| 31 |
+
FastMCP handles all the complex protocol details and server management, so you can focus on building great tools. It's designed to be high-level and Pythonic - in most cases, decorating a function is all you need.
|
| 32 |
|
| 33 |
|
| 34 |
### Key features:
|