From 96280b3d2cab2490084f119c8815aad66a7cf8ce Mon Sep 17 00:00:00 2001 From: Didier Durand Date: Fri, 23 Jan 2026 07:17:38 +0100 Subject: [PATCH] [Doc]: fixing spelling issues in multiple files --- docs/integrations/eunomia-authorization.mdx | 4 ++-- docs/v2/integrations/eunomia-authorization.mdx | 4 ++-- examples/atproto_mcp/README.md | 2 +- examples/sampling/structured_output.py | 2 +- examples/sampling/tool_use.py | 2 +- src/fastmcp/client/transports/config.py | 2 +- src/fastmcp/utilities/cli.py | 2 +- tests/client/client/test_client.py | 2 +- tests/tools/tool/test_callable.py | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/integrations/eunomia-authorization.mdx b/docs/integrations/eunomia-authorization.mdx index bccfbccdb..2fd2ca4a5 100644 --- a/docs/integrations/eunomia-authorization.mdx +++ b/docs/integrations/eunomia-authorization.mdx @@ -11,7 +11,7 @@ Control which tools, resources and prompts MCP clients can view and execute on y ## How it Works -Exploiting FastMCP's [Middleware][fastmcp-middleare], the Eunomia middleware intercepts all MCP requests to your server and automatically maps MCP methods to authorization checks. +Exploiting FastMCP's [Middleware][fastmcp-middleware], the Eunomia middleware intercepts all MCP requests to your server and automatically maps MCP methods to authorization checks. ### Listing Operations @@ -126,4 +126,4 @@ The middleware will now intercept all MCP requests and check them against your p [eunomia-github]: https://github.com/whataboutyou-ai/eunomia [eunomia-mcp-github]: https://github.com/whataboutyou-ai/eunomia/tree/main/pkgs/extensions/mcp -[fastmcp-middleare]: /servers/middleware +[fastmcp-middleware]: /servers/middleware diff --git a/docs/v2/integrations/eunomia-authorization.mdx b/docs/v2/integrations/eunomia-authorization.mdx index bccfbccdb..2fd2ca4a5 100644 --- a/docs/v2/integrations/eunomia-authorization.mdx +++ b/docs/v2/integrations/eunomia-authorization.mdx @@ -11,7 +11,7 @@ Control which tools, resources and prompts MCP clients can view and execute on y ## How it Works -Exploiting FastMCP's [Middleware][fastmcp-middleare], the Eunomia middleware intercepts all MCP requests to your server and automatically maps MCP methods to authorization checks. +Exploiting FastMCP's [Middleware][fastmcp-middleware], the Eunomia middleware intercepts all MCP requests to your server and automatically maps MCP methods to authorization checks. ### Listing Operations @@ -126,4 +126,4 @@ The middleware will now intercept all MCP requests and check them against your p [eunomia-github]: https://github.com/whataboutyou-ai/eunomia [eunomia-mcp-github]: https://github.com/whataboutyou-ai/eunomia/tree/main/pkgs/extensions/mcp -[fastmcp-middleare]: /servers/middleware +[fastmcp-middleware]: /servers/middleware diff --git a/examples/atproto_mcp/README.md b/examples/atproto_mcp/README.md index 5d83d97bf..83114359b 100644 --- a/examples/atproto_mcp/README.md +++ b/examples/atproto_mcp/README.md @@ -13,7 +13,7 @@ This example demonstrates a FastMCP server that provides tools and resources for ### Tools (Actions) - **post**: Create posts with rich features (text, images, quotes, replies, links, mentions) -- **create_thread**: Post multi-part threads with automatic linking +- **create_thread**: Post multipart threads with automatic linking - **search**: Search for posts by query - **follow**: Follow users by handle - **like**: Like posts by URI diff --git a/examples/sampling/structured_output.py b/examples/sampling/structured_output.py index a866d6610..fa7afe7ad 100644 --- a/examples/sampling/structured_output.py +++ b/examples/sampling/structured_output.py @@ -39,7 +39,7 @@ class LoggingAnthropicHandler(AnthropicSamplingHandler): class SentimentAnalysis(BaseModel): sentiment: str # "positive", "negative", or "neutral" confidence: float # 0.0 to 1.0 - keywords: list[str] # Key words that influenced the analysis + keywords: list[str] # Keywords that influenced the analysis explanation: str # Brief explanation of the analysis diff --git a/examples/sampling/tool_use.py b/examples/sampling/tool_use.py index e745feae8..e7869a16c 100644 --- a/examples/sampling/tool_use.py +++ b/examples/sampling/tool_use.py @@ -58,7 +58,7 @@ def get_current_time() -> str: def roll_dice(sides: int = 6) -> str: - """Roll a dice with the specified number of sides.""" + """Roll a die with the specified number of sides.""" result = random.randint(1, sides) console.print(f" [bold magenta]TOOL[/] roll_dice({sides}) = {result}") return str(result) diff --git a/src/fastmcp/client/transports/config.py b/src/fastmcp/client/transports/config.py index 084ef474d..5f303567d 100644 --- a/src/fastmcp/client/transports/config.py +++ b/src/fastmcp/client/transports/config.py @@ -29,7 +29,7 @@ class MCPConfigTransport(ClientTransport): 2. If the MCPConfig contains multiple servers, it creates a composite client by mounting all servers on a single FastMCP instance, with each server's name, by default, used as its mounting prefix. - In the multi-server case, tools are accessible with the prefix pattern `{server_name}_{tool_name}` + In the multiserver case, tools are accessible with the prefix pattern `{server_name}_{tool_name}` and resources with the pattern `protocol://{server_name}/path/to/resource`. This is particularly useful for creating clients that need to interact with multiple specialized diff --git a/src/fastmcp/utilities/cli.py b/src/fastmcp/utilities/cli.py index bacc474f7..51b6007a6 100644 --- a/src/fastmcp/utilities/cli.py +++ b/src/fastmcp/utilities/cli.py @@ -167,7 +167,7 @@ LOGO_ASCII_2 = ( "\x1b[38;2;0;120;255m█\x1b[38;2;0;117;255m▀\x1b[38;2;0;114;255m▀\x1b[39m" ).strip() -# Prints the below in a blue gradient - sylized F +# Prints the below in a blue gradient - stylized F # ▄▀▀▀ # █▀▀ # ▀ diff --git a/tests/client/client/test_client.py b/tests/client/client/test_client.py index ae9e39c8d..e96f5535b 100644 --- a/tests/client/client/test_client.py +++ b/tests/client/client/test_client.py @@ -93,7 +93,7 @@ async def test_call_tool_with_meta(): assert context.request_context is not None meta = context.request_context.meta - # Return the meta data as a dict + # Return the metadata as a dict if meta is not None: return { "has_meta": True, diff --git a/tests/tools/tool/test_callable.py b/tests/tools/tool/test_callable.py index 02228431c..cffe8ab42 100644 --- a/tests/tools/tool/test_callable.py +++ b/tests/tools/tool/test_callable.py @@ -47,7 +47,7 @@ class TestSyncToolConcurrency: Uses a threading barrier to prove concurrent execution: all calls must reach the barrier simultaneously for any to proceed. If they ran - sequentially, only one would reach the barrier and it would timeout. + sequentially, only one would reach the barrier and it would time out. """ num_calls = 3 # Barrier requires all threads to arrive before any proceed