MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Method__getattribute__
Dynamically create recording methods for any on_* method.
tests/server/middleware/test_middleware_nested.py:33
Method__getattribute__
Dynamically create recording methods for any on_* method.
tests/server/middleware/test_middleware.py:31
Method__init__
(self, *args: object, log_level: int = logging.ERROR)
fastmcp_slim/fastmcp/exceptions.py:41
Method__init__
( self, required_scopes: list[str], *, message: str | None = None, )
fastmcp_slim/fastmcp/exceptions.py:104
Method__init__
(self, input_required: mcp_types.InputRequiredResult)
fastmcp_slim/fastmcp/tools/base.py:217
Method__init__
(self: Client[T], transport: T, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/client/client.py:366
Method__init__
( self, storage: AsyncKeyValue | None = None, *, collection: str = DEFAULT_CAC
fastmcp_slim/fastmcp/client/caching.py:120
Method__init__
(self, clients: Mapping[str, Client[Any]])
fastmcp_slim/fastmcp/client/group.py:46
Method__init__
( self, default_model: str, client: GoogleGenaiClient | None = None, thinking_
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:80
Method__init__
( self, default_model: ChatModel, client: AsyncOpenAI | None = None, )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:99
Method__init__
( self, default_model: ModelParam, client: AsyncAnthropic | None = None )
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:92
Method__init__
(self, token: str)
fastmcp_slim/fastmcp/client/auth/bearer.py:12
Method__init__
( self, async_key_value: AsyncKeyValue, server_url: str, cache_namespace: str
fastmcp_slim/fastmcp/client/auth/oauth.py:95
Method__init__
Initialize a client_credentials OAuth provider. Args: mcp_url: Full URL to the MCP endpoint (e.g. "https://host/mcp").
fastmcp_slim/fastmcp/client/auth/client_credentials.py:191
Method__init__
(self, config: MCPConfig | dict, name_as_prefix: bool = True)
fastmcp_slim/fastmcp/client/transports/config.py:82
Method__init__
Initialize a FastMCPTransport from a FastMCP server instance.
fastmcp_slim/fastmcp/client/transports/memory.py:47
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:34
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:299
Method__init__
( self, script_path: str | Path, args: list[str] | None = None, env: dict[str,
fastmcp_slim/fastmcp/client/transports/stdio.py:352
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:381
Method__init__
( self, command: str, args: list[str] | None = None, module: bool = False,
fastmcp_slim/fastmcp/client/transports/stdio.py:434
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:511
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:576
Method__init__
( self, url: str | AnyUrl, headers: dict[str, str] | None = None, auth: httpx2
fastmcp_slim/fastmcp/client/transports/sse.py:40
Method__init__
(self, name)
fastmcp_slim/fastmcp/contrib/mcp_mixin/example.py:17
Method__init__
( self, app: ASGIApp, server: FastMCP, required_scopes: list[str] | None )
fastmcp_slim/fastmcp/contrib/component_manager/component_manager.py:62
Method__init__
Create ResourceContent with automatic serialization. Args: content: The content value. str and bytes pass through directly.
fastmcp_slim/fastmcp/resources/base.py:60
Method__init__
(self, input_required: mcp_types.InputRequiredResult)
fastmcp_slim/fastmcp/resources/base.py:233
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:158
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:82
Method__init__
(self, app: ASGIApp, *, host: str, port: int, token: str)
fastmcp_slim/fastmcp/cli/apps_dev_security.py:50
Method__init__
(self, state_directory: Path | None = None)
fastmcp_slim/fastmcp/cli/deploy/credentials.py:60
Method__init__
(self, state_directory: Path | None = None)
fastmcp_slim/fastmcp/cli/deploy/configuration.py:33
Method__init__
(self, message: str, *, status_code: int | None = None)
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:48
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:194
Method__init__
Initialize HeadlessOAuth with stored response tracking.
fastmcp_slim/fastmcp/utilities/tests.py:472
Method__init__
(self, max_entries: int, max_weight: int)
fastmcp_slim/fastmcp/utilities/json_schema_type.py:169
Method__init__
( self, chunks: MemoryObjectReceiveStream[bytes], client_disconnected: anyio.Event,
fastmcp_slim/fastmcp/utilities/asgi_transport.py:54
Method__init__
(self, app: ASGIApp, *, cancel_on_close: bool = True)
fastmcp_slim/fastmcp/utilities/asgi_transport.py:106
Method__init__
( self, path: str | Path | None = None, data: bytes | None = None, format: str
fastmcp_slim/fastmcp/utilities/types.py:271
Method__init__
( self, path: str | Path | None = None, data: bytes | None = None, format: str
fastmcp_slim/fastmcp/utilities/types.py:349
Method__init__
( self, path: str | Path | None = None, data: bytes | None = None, format: str
fastmcp_slim/fastmcp/utilities/types.py:410
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, scopes: tuple[str, ...])
fastmcp_slim/fastmcp/utilities/authorization.py:73
Method__init__
(self, tag: str, scopes: list[str])
fastmcp_slim/fastmcp/utilities/authorization.py:90
Method__init__
( self, roles: tuple[str, ...], extract: Callable[[dict[str, Any]], Iterable[str]],
fastmcp_slim/fastmcp/utilities/authorization.py:115
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:124
Method__init__
Initialize with a parsed SchemaPath object.
fastmcp_slim/fastmcp/utilities/openapi/director.py:77
Method__init__
( self, fastmcp: FastMCP, session: ServerSession | None = None, *, tas
fastmcp_slim/fastmcp/server/context.py:198
Method__init__
( self, storage: AsyncKeyValue | None = None, max_events_per_stream: int = 100,
fastmcp_slim/fastmcp/server/event_store.py:82
Method__init__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1216
Method__init__
(self, claim_name: str)
fastmcp_slim/fastmcp/server/dependencies.py:1394
Method__init__
( self, message: str = ( "Injected `session: UserSession` requires an authenticate
fastmcp_slim/fastmcp/server/sessions.py:114
Method__init__
(self, message: str = "Invalid or unknown session.")
fastmcp_slim/fastmcp/server/sessions.py:135
Method__init__
(self)
fastmcp_slim/fastmcp/server/sessions.py:525
Method__init__
( self, app: Any, event_store: EventStore | None = None, json_response: bool =
fastmcp_slim/fastmcp/server/http.py:46
Method__init__
( self, app: ASGIApp, allowed_hosts: Sequence[str] | None = None, allowed_orig
fastmcp_slim/fastmcp/server/http.py:230
Method__init__
(self, app)
fastmcp_slim/fastmcp/server/http.py:395
Method__init__
( self, name: str | None = None, instructions: str | None = None, *, v
fastmcp_slim/fastmcp/server/server.py:320
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:122
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:148
Method__init__
(self, event_store: EventStore, session_id: str)
fastmcp_slim/fastmcp/server/session_scoped_event_store.py:22
Method__init__
(self, fastmcp: FastMCP)
fastmcp_slim/fastmcp/server/low_level.py:178
Method__init__
(self, fastmcp: FastMCP, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/server/low_level.py:456
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:36
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:146
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:268
Method__init__
(self, message: str = "Rate limit exceeded")
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:21
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:28
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:67
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:116
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:225
Method__init__
(self, auth: AuthCheck | list[AuthCheck])
fastmcp_slim/fastmcp/server/middleware/authorization.py:113
Method__init__
Initialize ping middleware. Args: interval_ms: Interval between pings in milliseconds (default: 30000) Raises:
fastmcp_slim/fastmcp/server/middleware/ping.py:29
Method__init__
Initialize the tool injection middleware.
fastmcp_slim/fastmcp/server/middleware/tool_injection.py:30
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:51
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:38
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:95
Method__init__
( self, server: Any, original_name: str, **kwargs: Any, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:49
Method__init__
( self, server: Any, original_uri: str, **kwargs: Any, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:140
Method__init__
( self, server: Any, original_name: str, **kwargs: Any, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:202
Method__init__
( self, server: Any, original_uri_template: str, **kwargs: Any, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:278
Method__init__
Initialize with an optional sequence of providers. Args: providers: Optional initial providers (without namespacing).
fastmcp_slim/fastmcp/server/providers/aggregate.py:81
Method__init__
(self, proxy: FastMCPProxy)
fastmcp_slim/fastmcp/server/providers/proxy.py:272
Method__init__
( self, client_factory: ClientFactoryT, *, _cached_content: ResourceResult | N
fastmcp_slim/fastmcp/server/providers/proxy.py:487
Method__init__
(self, client_factory: ClientFactoryT, **kwargs: Any)
fastmcp_slim/fastmcp/server/providers/proxy.py:597
← previousnext →2,601–2,700 of 13,374, ranked by callers