Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
10,312 in github.com/PrefectHQ/fastmcp
⨍
Functions
10,312
◇
Types & classes
1,519
↳
Endpoints
103
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:603
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:86
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
Method
__init__
( self, *, tool_name: str = "generate_prefab_ui", include_components_tool: boo
fastmcp_slim/fastmcp/apps/generative.py:73
Method
__init__
( self, name: str = "Choice", *, title: str = "Choose an Option", vari
fastmcp_slim/fastmcp/apps/choice.py:63
Method
__init__
( self, name: str = "Approval", *, title: str = "Approval Required", a
fastmcp_slim/fastmcp/apps/approval.py:79
Method
__init__
(self, name: str)
fastmcp_slim/fastmcp/apps/app.py:153
Method
__init__
( self, model: type[pydantic.BaseModel], *, name: str | None = None, t
fastmcp_slim/fastmcp/apps/form.py:122
Method
__init__
( self, name: str = "Files", *, max_file_size: int = 10 * 1024 * 1024,
fastmcp_slim/fastmcp/apps/file_upload.py:135
Method
__init__
(self)
fastmcp_slim/fastmcp/cli/apps_dev.py:65
Method
__init__
(self, version: str | None)
fastmcp_slim/fastmcp/utilities/versions.py:136
Method
__init__
( self, min_level: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] | None = N
fastmcp_slim/fastmcp/utilities/logging.py:184
Method
__init__
Initialize HeadlessOAuth with stored response tracking.
fastmcp_slim/fastmcp/utilities/tests.py:233
Method
__init__
( self, path: str | Path | None = None, data: bytes | None = None, format: str
fastmcp_slim/fastmcp/utilities/types.py:241
Method
__init__
( self, path: str | Path | None = None, data: bytes | None = None, format: str
fastmcp_slim/fastmcp/utilities/types.py:313
Method
__init__
( self, path: str | Path | None = None, data: bytes | None = None, format: str
fastmcp_slim/fastmcp/utilities/types.py:371
Method
__init__
Initialise the cache. Args: ttl_seconds: How long cached entries remain valid, in seconds. ``None`` or ``0`` disa
fastmcp_slim/fastmcp/utilities/token_cache.py:62
Method
__init__
(self, *, source: dict | FileSystemSource, **data)
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:174
Method
__init__
Initialize FileSystemSource, handling path:object syntax.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:46
Method
__init__
Initialize the parser with the OpenAPI schema and type classes.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:123
Method
__init__
Initialize with a parsed SchemaPath object.
fastmcp_slim/fastmcp/utilities/openapi/director.py:32
Method
__init__
( self, fastmcp: FastMCP, session: ServerSession | None = None, *, tas
fastmcp_slim/fastmcp/server/context.py:192
Method
__init__
( self, storage: AsyncKeyValue | None = None, max_events_per_stream: int = 100,
fastmcp_slim/fastmcp/server/event_store.py:70
Method
__init__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1152
Method
__init__
(self, claim_name: str)
fastmcp_slim/fastmcp/server/dependencies.py:1330
Method
__init__
(self, session_manager: StreamableHTTPSessionManager | None)
fastmcp_slim/fastmcp/server/http.py:35
Method
__init__
(self, app)
fastmcp_slim/fastmcp/server/http.py:94
Method
__init__
( self, name: str | None = None, instructions: str | None = None, *, v
fastmcp_slim/fastmcp/server/server.py:293
Method
__init__
Initialize a Lifespan wrapper. Args: fn: An async generator function that takes a FastMCP server and yields a dic
fastmcp_slim/fastmcp/server/lifespan.py:68
Method
__init__
Initialize with a context manager factory function.
fastmcp_slim/fastmcp/server/lifespan.py:118
Method
__init__
Initialize a composed lifespan. Args: left: The first lifespan to enter. right: The second lifespan to enter.
fastmcp_slim/fastmcp/server/lifespan.py:144
Method
__init__
(self, fastmcp: FastMCP, *args, **kwargs)
fastmcp_slim/fastmcp/server/low_level.py:40
Method
__init__
Initialize logging middleware. Args: logger: Logger instance to use. If None, creates a logger named 'fastmcp.requests'
fastmcp_slim/fastmcp/server/middleware/logging.py:167
Method
__init__
Initialize structured logging middleware. Args: logger: Logger instance to use. If None, creates a logger named 'fastmcp.structur
fastmcp_slim/fastmcp/server/middleware/logging.py:219
Method
__init__
Initialize error handling middleware. Args: logger: Logger instance for error logging. If None, uses 'fastmcp.errors'
fastmcp_slim/fastmcp/server/middleware/error_handling.py:37
Method
__init__
Initialize retry middleware. Args: max_retries: Maximum number of retry attempts base_delay: Initial delay between re
fastmcp_slim/fastmcp/server/middleware/error_handling.py:157
Method
__init__
Initialize timing middleware. Args: logger: Logger instance to use. If None, creates a logger named 'fastmcp.timing'
fastmcp_slim/fastmcp/server/middleware/timing.py:27
Method
__init__
Initialize detailed timing middleware. Args: logger: Logger instance to use. If None, creates a logger named 'fastmcp.timing.deta
fastmcp_slim/fastmcp/server/middleware/timing.py:79
Method
__init__
Initialize the response caching middleware. Args: cache_storage: The cache backend to use. If None, an in-memory cache is used.
fastmcp_slim/fastmcp/server/middleware/caching.py:208
Method
__init__
(self, message: str = "Rate limit exceeded")
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:18
Method
__init__
Initialize token bucket. Args: capacity: Maximum number of tokens in the bucket refill_rate: Tokens added per second
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:25
Method
__init__
Initialize sliding window rate limiter. Args: max_requests: Maximum requests allowed in the time window window_second
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:64
Method
__init__
Initialize rate limiting middleware. Args: max_requests_per_second: Sustained requests per second allowed burst_capac
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:113
Method
__init__
Initialize sliding window rate limiting middleware. Args: max_requests: Maximum requests allowed in the time window w
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:191
Method
__init__
(self, auth: AuthCheck | list[AuthCheck])
fastmcp_slim/fastmcp/server/middleware/authorization.py:82
Method
__init__
Initialize ping middleware. Args: interval_ms: Interval between pings in milliseconds (default: 30000) Raises:
fastmcp_slim/fastmcp/server/middleware/ping.py:27
Method
__init__
Initialize the tool injection middleware.
fastmcp_slim/fastmcp/server/middleware/tool_injection.py:27
Method
__init__
(self)
fastmcp_slim/fastmcp/server/middleware/tool_injection.py:132
Method
__init__
Initialize response limiting middleware. Args: max_size: Maximum response size in bytes. Defaults to 1MB (1,000,000).
fastmcp_slim/fastmcp/server/middleware/response_limiting.py:50
Method
__init__
Initialize wrapped provider. Args: inner: The provider to wrap. transform: The transform to apply on top of inner's r
fastmcp_slim/fastmcp/server/providers/wrapped_provider.py:36
Method
__init__
( self, root: str | Path = ".", reload: bool = False, )
fastmcp_slim/fastmcp/server/providers/filesystem.py:86
Method
__init__
(self)
fastmcp_slim/fastmcp/server/providers/base.py:75
Method
__init__
( self, server: Any, original_name: str, **kwargs: Any, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:53
Method
__init__
( self, server: Any, original_uri: str, **kwargs: Any, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:160
Method
__init__
( self, server: Any, original_name: str, **kwargs: Any, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:234
Method
__init__
( self, server: Any, original_uri_template: str, **kwargs: Any, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:336
Method
__init__
Initialize with an optional sequence of providers. Args: providers: Optional initial providers (without namespacing).
fastmcp_slim/fastmcp/server/providers/aggregate.py:71
Method
__init__
(self, proxy: FastMCPProxy)
fastmcp_slim/fastmcp/server/providers/proxy.py:80
Method
__init__
( self, client_factory: ClientFactoryT, *, _cached_content: ResourceResult | N
fastmcp_slim/fastmcp/server/providers/proxy.py:242
Method
__init__
(self, client_factory: ClientFactoryT, **kwargs: Any)
fastmcp_slim/fastmcp/server/providers/proxy.py:348
Method
__init__
(self, client_factory: ClientFactoryT, **kwargs)
fastmcp_slim/fastmcp/server/providers/proxy.py:471
Method
__init__
(self, items: Sequence[Any], timestamp: float)
fastmcp_slim/fastmcp/server/providers/proxy.py:558
← previous
next →
1,601–1,700 of 10,312, ranked by callers