[Doc]: fixing typos in multiple files (#1804)

This commit is contained in:
Didier Durand 2025-09-12 00:07:02 +02:00 committed by GitHub
commit 6ece5462db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 14 additions and 14 deletions

View file

@ -69,7 +69,7 @@ apply_transformations_to_tools(tools: dict[str, Tool], transformations: dict[str
```
Apply a list of transformations to a list of tools. Tools that do not have any transforamtions
Apply a list of transformations to a list of tools. Tools that do not have any transformations
are left unchanged.

View file

@ -256,7 +256,7 @@ composite_proxy = FastMCP.as_proxy(config, name="Composite Proxy")
When you access tools, resources, or prompts from a proxy server, they are "mirrored" from the remote server. Mirrored components cannot be modified directly since they reflect the state of the remote server. For example, you can not simply "disable" a mirrored component.
However, you can create a copy of a mirrored component and store it as a new locally-defined component. Local components always take precedence over mirored ones because the proxy server will check its own registry before it attempts to engage the remote server.
However, you can create a copy of a mirrored component and store it as a new locally-defined component. Local components always take precedence over mirrored ones because the proxy server will check its own registry before it attempts to engage the remote server.
Therefore, to enable or disable a proxy tool, resource, or prompt, you should first create a local copy and add it to your own server. Here's an example of how to do that for a tool:

View file

@ -355,7 +355,7 @@ class OAuth(OAuthClientProvider):
raise TimeoutError(f"OAuth callback timed out after {TIMEOUT} seconds")
finally:
server.should_exit = True
await asyncio.sleep(0.1) # Allow server to shutdown gracefully
await asyncio.sleep(0.1) # Allow server to shut down gracefully
tg.cancel_scope.cancel()
raise RuntimeError("OAuth callback handler could not be started")

View file

@ -454,7 +454,7 @@ class Client(Generic[ClientTransportT]):
if self._session_state.nesting_counter > 0:
return
# stop the active seesion
# stop the active session
if self._session_state.session_task is None:
return
self._session_state.stop_event.set()

View file

@ -174,7 +174,7 @@ class ComponentService:
key: The key of the prompt to enable
Returns:
The prompt that was enable
The prompt that was enabled
"""
logger.debug("Enabling prompt: %s", key)

View file

@ -16,7 +16,7 @@ Prompts:
* [enable/disable](https://gofastmcp.com/servers/prompts#disabling-prompts)
Resources:
* [enable/disabe](https://gofastmcp.com/servers/resources#disabling-resources)
* [enable/disable](https://gofastmcp.com/servers/resources#disabling-resources)
## Usage

View file

@ -449,7 +449,7 @@ class Context:
AcceptedElicitation[dict[str, Any]] | DeclinedElicitation | CancelledElicitation
): ...
"""When response_type is None, the accepted elicitaiton will contain an
"""When response_type is None, the accepted elicitation will contain an
empty dict"""
@overload
@ -459,7 +459,7 @@ class Context:
response_type: type[T],
) -> AcceptedElicitation[T] | DeclinedElicitation | CancelledElicitation: ...
"""When response_type is not None, the accepted elicitaiton will contain the
"""When response_type is not None, the accepted elicitation will contain the
response data"""
@overload
@ -469,7 +469,7 @@ class Context:
response_type: list[str],
) -> AcceptedElicitation[str] | DeclinedElicitation | CancelledElicitation: ...
"""When response_type is a list of strings, the accepted elicitaiton will
"""When response_type is a list of strings, the accepted elicitation will
contain the selected string response"""
async def elicit(

View file

@ -272,7 +272,7 @@ class Settings(BaseSettings):
If None, no automatic configuration will take place.
This setting is *always* overriden by any auth provider passed to the
This setting is *always* overridden by any auth provider passed to the
FastMCP constructor.
Note that most auth providers require additional configuration

View file

@ -934,7 +934,7 @@ def apply_transformations_to_tools(
tools: dict[str, Tool],
transformations: dict[str, ToolTransformConfig],
) -> dict[str, Tool]:
"""Apply a list of transformations to a list of tools. Tools that do not have any transforamtions
"""Apply a list of transformations to a list of tools. Tools that do not have any transformations
are left unchanged.
"""

View file

@ -26,7 +26,7 @@ logger = get_logger("cli.config")
FASTMCP_JSON_SCHEMA = "https://gofastmcp.com/public/schemas/fastmcp.json/v1.json"
# Type alias for source union (will expand with GitSource, etc in future)
# Type alias for source union (will expand with GitSource, etc. in future)
SourceType: TypeAlias = FileSystemSource
# Type alias for environment union (will expand with other environments in future)

View file

@ -357,7 +357,7 @@ class TestRateLimitingMiddlewareIntegration:
rate_limit_server.add_middleware(
SlidingWindowRateLimitingMiddleware(
max_requests=5, # Accounting for extra list_tools calls
window_minutes=1, # 1 minute window
window_minutes=1, # 1-minute window
)
)

View file

@ -610,7 +610,7 @@ async def test_canonical_multi_client_with_transforms(tmp_path: Path):
"test_1": {
"command": "python",
"args": [str(script_path)],
"tools": { # <--- Will be ignored as its not valid for a canonical MCPConfig
"tools": { # <--- Will be ignored as it's not valid for a canonical MCPConfig
"add": {
"name": "transformed_add",
"arguments": {