Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
10,524 in github.com/PrefectHQ/fastmcp
⨍
Functions
10,524
◇
Types & classes
1,545
↳
Endpoints
103
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:950
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:991
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1031
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1072
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1160
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1290
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1347
Method
__aexit__
The stateful proxy client will be forced disconnected when the session is exited. So we do nothing here.
fastmcp_slim/fastmcp/server/providers/proxy.py:1198
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies.py:27
Method
__aexit__
(self, exc_type, exc, tb)
tests/server/auth/providers/test_propelauth.py:311
Method
__aexit__
(self, exc_type, exc, tb)
tests/server/auth/providers/test_scalekit.py:195
Method
__aiter__
(self)
tests/client/auth/test_oauth_client.py:296
Method
__aiter__
(self)
tests/client/auth/test_oauth_client.py:348
Method
__anext__
(self)
tests/client/auth/test_oauth_client.py:351
Method
__await__
Allow 'await task' to get result.
fastmcp_slim/fastmcp/client/tasks.py:305
Method
__call__
(self, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/tools/function_tool.py:139
Method
__call__
( self, message: RequestResponder[mcp.types.ServerRequest, mcp.types.ClientResult] | m
fastmcp_slim/fastmcp/client/messages.py:22
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context: Requ
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:86
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context: Requ
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:106
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context: Any,
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:96
Method
__call__
(self, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/resources/function_resource.py:51
Method
__call__
( self, messages: str | list[str | SamplingMessage], system_prompt: str | None = None,
fastmcp_slim/fastmcp/utilities/types.py:491
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
fastmcp_slim/fastmcp/server/http.py:84
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
fastmcp_slim/fastmcp/server/http.py:242
Method
__call__
(self, scope, receive, send)
fastmcp_slim/fastmcp/server/http.py:369
Method
__call__
Execute the lifespan as an async context manager. Args: server: The FastMCP server instance. Yields: The lif
fastmcp_slim/fastmcp/server/lifespan.py:78
Method
__call__
Execute the lifespan as an async context manager. Args: server: The FastMCP server instance. Yields: The lif
fastmcp_slim/fastmcp/server/lifespan.py:123
Method
__call__
Execute both lifespans, merging their results. Args: server: The FastMCP server instance. Yields: The merged
fastmcp_slim/fastmcp/server/lifespan.py:156
Method
__call__
(self, context: MiddlewareContext[T])
fastmcp_slim/fastmcp/server/middleware/middleware.py:42
Method
__call__
Main entry point that orchestrates the pipeline.
fastmcp_slim/fastmcp/server/middleware/middleware.py:91
Method
__call__
Process ASGI scope, distinguishing missing vs invalid auth. Per RFC 6750 §3.1: - Missing auth (no Authorization header) → 401 without
fastmcp_slim/fastmcp/server/auth/middleware.py:37
Method
__call__
( self, name: str, *, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/transforms/__init__.py:39
Method
__call__
( self, uri: str, *, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/transforms/__init__.py:47
Method
__call__
( self, uri: str, *, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/transforms/__init__.py:55
Method
__call__
( self, name: str, *, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/transforms/__init__.py:63
Method
__call__
(self, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/prompts/function_prompt.py:57
Method
__call__
(self, get_catalog: GetToolCatalog)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:271
Method
__call__
(self, get_catalog: GetToolCatalog)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:341
Method
__call__
(self, get_catalog: GetToolCatalog)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:403
Method
__call__
(self, get_catalog: GetToolCatalog)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:468
Method
__call__
ignore this
tests/tools/tool/test_tool.py:112
Method
__call__
(self, x: int)
tests/tools/tool/test_callable.py:20
Method
__call__
(self, x: int)
tests/tools/tool/test_callable.py:34
Method
__call__
ignore this
tests/resources/test_resource_template.py:391
Method
__call__
(self)
tests/resources/test_function_resources.py:309
Method
__call__
(self)
tests/resources/test_function_resources.py:323
Method
__call__
Internal call doc. Args: x: From call.
tests/utilities/test_docstring_parsing.py:511
Method
__call__
(self, x: int, ctx: Context)
tests/server/test_dependencies_advanced.py:220
Method
__call__
(self, param: str, ctx: Context)
tests/server/providers/test_local_provider_resources.py:284
Method
__call__
(self, name: str, ctx: Context)
tests/server/providers/test_local_provider_prompts.py:34
Method
__call__
(self, x: int, ctx: Context)
tests/server/providers/local_provider_tools/test_context.py:130
Method
__call__
(self, x: int)
tests/server/tasks/test_sync_function_task_disabled.py:197
Method
__call__
(self)
tests/server/tasks/test_sync_function_task_disabled.py:210
Method
__call__
(self, x: int)
tests/server/tasks/test_sync_function_task_disabled.py:223
Method
__call__
(self, name: str)
tests/prompts/test_prompt.py:39
Method
__call__
Internal call doc. Args: name: From call.
tests/prompts/test_prompt.py:550
Method
__call__
(self)
tests/prompts/test_prompt.py:808
Method
__call__
(self)
tests/prompts/test_prompt.py:822
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context )
examples/sampling/text.py:28
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context )
examples/sampling/tool_use.py:30
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context )
examples/sampling/structured_output.py:29
Method
__del__
Ensure that we send a disconnection signal to the transport task if we are being garbage collected.
fastmcp_slim/fastmcp/client/transports/stdio.py:164
Method
__enter__
(self)
tests/client/auth/test_oauth_client.py:259
Method
__eq__
(self, other: object)
fastmcp_slim/fastmcp/utilities/versions.py:152
Method
__eq__
(self, other: object)
fastmcp_slim/fastmcp/utilities/components.py:189
Method
__exit__
(self, *args: object)
tests/client/auth/test_oauth_client.py:262
Function
__getattr__
(name: str)
fastmcp_slim/fastmcp/__init__.py:47
Function
__getattr__
Deprecated re-exports for backwards compatibility.
fastmcp_slim/fastmcp/tools/base.py:632
Function
__getattr__
Deprecated re-exports for backwards compatibility.
fastmcp_slim/fastmcp/resources/base.py:474
Function
__getattr__
(name: str)
fastmcp_slim/fastmcp/apps/__init__.py:37
Function
__getattr__
(name: str)
fastmcp_slim/fastmcp/server/__init__.py:12
Function
__getattr__
Lazy import for providers to avoid circular imports.
fastmcp_slim/fastmcp/server/providers/__init__.py:61
Function
__getattr__
(name: str)
fastmcp_slim/fastmcp/server/auth/__init__.py:34
Function
__getattr__
Deprecated re-exports for backwards compatibility.
fastmcp_slim/fastmcp/prompts/base.py:419
Method
__getattribute__
Dynamically create recording methods for any on_* method.
tests/server/middleware/test_middleware_nested.py:31
Method
__getattribute__
Dynamically create recording methods for any on_* method.
tests/server/middleware/test_middleware.py:30
Method
__init__
(self, *args: object, log_level: int = logging.ERROR)
fastmcp_slim/fastmcp/exceptions.py:25
Method
__init__
( self, content: list[ContentBlock] | Any | None = None, structured_content: dict[str,
fastmcp_slim/fastmcp/tools/base.py:112
Method
__init__
(self: Client[T], transport: T, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/client/client.py:197
Method
__init__
(self, client: Client)
fastmcp_slim/fastmcp/client/tasks.py:30
Method
__init__
Create a ToolTask wrapper. Args: client: The FastMCP client task_id: The task identifier tool_na
fastmcp_slim/fastmcp/client/tasks.py:333
Method
__init__
Create a PromptTask wrapper. Args: client: The FastMCP client task_id: The task identifier promp
fastmcp_slim/fastmcp/client/tasks.py:441
Method
__init__
Create a ResourceTask wrapper. Args: client: The FastMCP client task_id: The task identifier uri
fastmcp_slim/fastmcp/client/tasks.py:508
Method
__init__
( self, default_model: str, client: GoogleGenaiClient | None = None, thinking_
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:76
Method
__init__
( self, default_model: ChatModel, client: AsyncOpenAI | None = None, )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:98
Method
__init__
( self, default_model: ModelParam, client: AsyncAnthropic | None = None )
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:90
Method
__init__
(self, token: str)
fastmcp_slim/fastmcp/client/auth/bearer.py:12
Method
__init__
(self, async_key_value: AsyncKeyValue, server_url: str)
fastmcp_slim/fastmcp/client/auth/oauth.py:89
Method
__init__
(self, config: MCPConfig | dict, name_as_prefix: bool = True)
fastmcp_slim/fastmcp/client/transports/config.py:76
Method
__init__
Initialize a FastMCPTransport from a FastMCP server instance.
fastmcp_slim/fastmcp/client/transports/memory.py:28
Method
__init__
Initialize a Streamable HTTP transport. Args: url: The MCP server endpoint URL. headers: Optional headers to include
fastmcp_slim/fastmcp/client/transports/http.py:30
Method
__init__
Initialize a Python transport. Args: script_path: Path to the Python script to run args: Additional argument
fastmcp_slim/fastmcp/client/transports/stdio.py:234
Method
__init__
( self, script_path: str | Path, args: list[str] | None = None, env: dict[str,
fastmcp_slim/fastmcp/client/transports/stdio.py:287
Method
__init__
Initialize a Node transport. Args: script_path: Path to the Node.js script to run args: Additional arguments
fastmcp_slim/fastmcp/client/transports/stdio.py:316
Method
__init__
( self, command: str, args: list[str] | None = None, module: bool = False,
fastmcp_slim/fastmcp/client/transports/stdio.py:369
Method
__init__
Initialize a Uvx transport. Args: tool_name: Name of the tool to run via uvx tool_args: Arguments to pass to
fastmcp_slim/fastmcp/client/transports/stdio.py:446
Method
__init__
Initialize an Npx transport. Args: package: Name of the npm package to run args: Arguments to pass to the pa
fastmcp_slim/fastmcp/client/transports/stdio.py:511
Method
__init__
( self, url: str | AnyUrl, headers: dict[str, str] | None = None, auth: httpx.
fastmcp_slim/fastmcp/client/transports/sse.py:28
Method
__init__
(self, name)
fastmcp_slim/fastmcp/contrib/mcp_mixin/example.py:17
Method
__init__
Create ResourceContent with automatic serialization. Args: content: The content value. str and bytes pass through directly.
fastmcp_slim/fastmcp/resources/base.py:65
← previous
next →
1,601–1,700 of 10,524, ranked by callers