mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-19 12:04:18 +02:00
Update README.md
This commit is contained in:
parent
03cc8b104f
commit
d6e5cefe3f
1 changed files with 4 additions and 4 deletions
|
|
@ -98,6 +98,8 @@ pip install fastmcp
|
|||
Let's create a simple MCP server that exposes a calculator tool and some data:
|
||||
|
||||
```python
|
||||
# server.py
|
||||
|
||||
from fastmcp import FastMCP
|
||||
|
||||
|
||||
|
|
@ -119,14 +121,12 @@ def get_greeting(name: str) -> str:
|
|||
return f"Hello, {name}!"
|
||||
```
|
||||
|
||||
To use this server, you have two options:
|
||||
|
||||
1. Install it in [Claude Desktop](https://claude.ai/download):
|
||||
You can install this server in [Claude Desktop](https://claude.ai/download) and interact with it right away by running:
|
||||
```bash
|
||||
fastmcp install server.py
|
||||
```
|
||||
|
||||
2. Test it with the MCP Inspector:
|
||||
Alternatively, you can test it with the MCP Inspector:
|
||||
```bash
|
||||
fastmcp dev server.py
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue