docs: Update FastMCP import paths and dependencies

This commit is contained in:
David Soria Parra
2024-12-19 15:28:03 +00:00
parent dad01945c7
commit aa3b550ec6
3 changed files with 5 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ Connections between clients and servers are established through transports like
The fastest way to build MCP servers is with FastMCP, which provides a high-level, Pythonic interface: The fastest way to build MCP servers is with FastMCP, which provides a high-level, Pythonic interface:
```python ```python
from fastmcp import FastMCP from mcp.server.fastmcp import FastMCP
mcp = FastMCP("Demo") mcp = FastMCP("Demo")
@@ -93,7 +93,7 @@ def get_greeting(name: str) -> str:
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. 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.
For more information about FastMCP, see the [FastMCP documentation](https://github.com/jlowin/fastmcp). FastMCP was originally developed by Jeremiah Lowin at [jlowin/fastmcp](https://github.com/jlowin/fastmcp). We are grateful for his contribution in developing this excellent framework that has now been integrated into MCP.
### Low-Level Implementation ### Low-Level Implementation

View File

@@ -1,8 +1,8 @@
# /// script # /// script
# dependencies = ["pydantic-ai-slim[openai]", "asyncpg", "numpy", "pgvector", "fastmcp"] # dependencies = ["pydantic-ai-slim[openai]", "asyncpg", "numpy", "pgvector"]
# /// # ///
# uv pip install 'pydantic-ai-slim[openai]' asyncpg numpy pgvector fastmcp # uv pip install 'pydantic-ai-slim[openai]' asyncpg numpy pgvector
""" """
Recursive memory system inspired by the human brain's clustering of memories. Recursive memory system inspired by the human brain's clustering of memories.

View File

@@ -1,5 +1,5 @@
# /// script # /// script
# dependencies = ["fastmcp"] # dependencies = []
# /// # ///
""" """