From fa0b89e7331292c36516092a2ae6ed0b082ca568 Mon Sep 17 00:00:00 2001 From: Didier Durand Date: Fri, 9 May 2025 17:23:33 +0200 Subject: [PATCH] Fixing various text typos --- docs/getting-started/installation.mdx | 2 +- docs/getting-started/quickstart.mdx | 4 ++-- src/fastmcp/server/proxy.py | 2 +- src/fastmcp/server/server.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/getting-started/installation.mdx b/docs/getting-started/installation.mdx index f4965260c..556631cd0 100644 --- a/docs/getting-started/installation.mdx +++ b/docs/getting-started/installation.mdx @@ -81,7 +81,7 @@ pytest ### Pre-Commit Hooks -FastMCP uses pre-commit to manage code quality, including formatting, linting, and type-safety. All PR's must pass the pre-commit hooks, which are run as a part of the CI process. To install the pre-commit hooks, run: +FastMCP uses pre-commit to manage code quality, including formatting, linting, and type-safety. All PRs must pass the pre-commit hooks, which are run as a part of the CI process. To install the pre-commit hooks, run: ```bash uv run pre-commit install diff --git a/docs/getting-started/quickstart.mdx b/docs/getting-started/quickstart.mdx index e9fe33a0d..1425edd72 100644 --- a/docs/getting-started/quickstart.mdx +++ b/docs/getting-started/quickstart.mdx @@ -89,7 +89,7 @@ This lets us run the server with `python my_server.py`, using the default `stdio Why do we need the `if __name__ == "__main__":` block? -Within the FastMCP ecosystem, this line may be unecessary. However, including it ensures that your FastMCP server runs for all users and clients in a consistent way and is therefore recommended as best practice. +Within the FastMCP ecosystem, this line may be unnecessary. However, including it ensures that your FastMCP server runs for all users and clients in a consistent way and is therefore recommended as best practice. ### Interacting with the Python server @@ -124,5 +124,5 @@ fastmcp run my_server.py:mcp Note that FastMCP *does not* require the `__main__` block in the server file, and will ignore it if it is present. Instead, it looks for the server object provided in the CLI command (here, `mcp`). If no server object is provided, `fastmcp run` will automatically search for servers called "mcp", "app", or "server" in the file. -We pointed our client at the server file, which is recognized as a Python MCP server and executed with `python my_server.py` by default. This exceutes the `__main__` block of the server file. There are other ways to run the server, which are described in the [server configuration](/servers/fastmcp#running-the-server) guide. +We pointed our client at the server file, which is recognized as a Python MCP server and executed with `python my_server.py` by default. This executes the `__main__` block of the server file. There are other ways to run the server, which are described in the [server configuration](/servers/fastmcp#running-the-server) guide. diff --git a/src/fastmcp/server/proxy.py b/src/fastmcp/server/proxy.py index da895a180..3ac7e6e7d 100644 --- a/src/fastmcp/server/proxy.py +++ b/src/fastmcp/server/proxy.py @@ -124,7 +124,7 @@ class ProxyTemplate(ResourceTemplate): params: dict[str, Any], context: Context | None = None, ) -> ProxyResource: - # dont use the provided uri, because it may not be the same as the + # don't use the provided uri, because it may not be the same as the # uri_template on the remote server. # quote params to ensure they are valid for the uri_template parameterized_uri = self.uri_template.format( diff --git a/src/fastmcp/server/server.py b/src/fastmcp/server/server.py index 0d7c60ef8..748a53f39 100644 --- a/src/fastmcp/server/server.py +++ b/src/fastmcp/server/server.py @@ -892,7 +892,7 @@ class FastMCP(Generic[LifespanResultT]): future changes to the imported server will not be reflected in the importing server. Server-level configurations and lifespans are not imported. - When an server is mounted: - The tools are imported with prefixed names + When a server is mounted: - The tools are imported with prefixed names using the tool_separator Example: If server has a tool named "get_weather", it will be available as "weatherget_weather"