mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-25 23:14:17 +02:00
Add gemini tutorial
This commit is contained in:
parent
3e62b2d671
commit
fc4c7ef6a2
6 changed files with 116 additions and 5 deletions
|
|
@ -12,7 +12,10 @@ auth = BearerAuthProvider(
|
|||
audience="dice-server",
|
||||
)
|
||||
|
||||
mcp = FastMCP(name="Dice Roller", auth=auth)
|
||||
mcp = FastMCP(
|
||||
name="Dice Roller",
|
||||
# auth=auth,
|
||||
)
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
|
|
@ -23,4 +26,5 @@ def roll_dice(n_dice: int) -> list[int]:
|
|||
|
||||
if __name__ == "__main__":
|
||||
print(f"\n---\n\n🔑 Dice Roller access token:\n\n{access_token}\n\n---\n")
|
||||
mcp.run(transport="sse", port=8000)
|
||||
# mcp.run(transport="sse", port=8000)
|
||||
mcp.run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue