Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
11,669 in github.com/PrefectHQ/fastmcp
⨍
Functions
11,669
◇
Types & classes
1,774
↳
Endpoints
123
↓ 1 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies_advanced.py:24
↓ 1 callers
Method
__init__
( self, content: list[ContentBlock] | Any | None = None, structured_content: dict[str,
fastmcp_slim/fastmcp/tools/base.py:104
↓ 1 callers
Method
__init__
Initialize OAuth client provider for an MCP server. Args: mcp_url: Full URL to the MCP endpoint (e.g. "http://host/mcp/s
fastmcp_slim/fastmcp/client/auth/oauth.py:212
↓ 1 callers
Method
__init__
(self, session_manager: StreamableHTTPSessionManager | None)
fastmcp_slim/fastmcp/server/http.py:83
↓ 1 callers
Method
__init__
Initialize AWS Cognito OAuth provider. Args: user_pool_id: Your Cognito User Pool ID (e.g., "eu-central-1_XXXXXXXXX")
fastmcp_slim/fastmcp/server/auth/providers/aws.py:125
↓ 1 callers
Method
__init__
Initialize GitHub OAuth provider. Args: client_id: GitHub OAuth app client ID (e.g., "Ov23li...") client_secret: GitH
fastmcp_slim/fastmcp/server/auth/providers/github.py:207
↓ 1 callers
Method
__init__
Initialize Auth0 OAuth provider. Args: config_url: Auth0 config URL client_id: Auth0 application client id
fastmcp_slim/fastmcp/server/auth/providers/auth0.py:85
↓ 1 callers
Method
__init__
Initialize Azure OAuth provider. Args: client_id: Azure application (client) ID from your App registration client_sec
fastmcp_slim/fastmcp/server/auth/providers/azure.py:99
↓ 1 callers
Method
__init__
Initialize Clerk OAuth provider. Args: domain: Clerk instance domain (e.g., "saving-primate-16.clerk.accounts.dev").
fastmcp_slim/fastmcp/server/auth/providers/clerk.py:274
↓ 1 callers
Method
__init__
Initialize Google OAuth provider. Args: client_id: Google OAuth client ID (e.g., "123456789.apps.googleusercontent.com")
fastmcp_slim/fastmcp/server/auth/providers/google.py:233
↓ 1 callers
Method
__init__
Initialize a JWTVerifier configured to validate JWTs using either a static key or a JWKS endpoint. Parameters: public_ke
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:214
↓ 1 callers
Method
__init__
Initialize Discord OAuth provider. Args: client_id: Discord OAuth client ID (e.g., "123456789") client_secret: Discor
fastmcp_slim/fastmcp/server/auth/providers/discord.py:194
↓ 1 callers
Method
__init__
Initialize Hugging Face OAuth provider. Args: client_id: Hugging Face OAuth app client ID. Public apps and CIMD c
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:178
↓ 1 callers
Method
__init__
(self, k1: float = 1.5, b: float = 0.75)
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:26
↓ 1 callers
Method
__init__
( self, *, search_fn: SearchFn | None = None, name: str = "search", de
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:253
↓ 1 callers
Method
__init__
(self, tools: Sequence[Tool])
tests/server/test_providers.py:72
↓ 1 callers
Method
__init__
(self, app: ASGIApp, header_name: str, header_value: str)
tests/server/http/test_http_middleware.py:22
↓ 1 callers
Method
__init__
(self, required_scopes: list[str])
tests/server/auth/test_enhanced_error_responses.py:29
↓ 1 callers
Function
_aggregate_by
(rows: list[dict], key: str)
examples/apps/explorer/explorer_server.py:321
↓ 1 callers
Method
_allow_same_origin_fallback
(self, scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:300
↓ 1 callers
Method
_allowed_hosts_for_scope
(self, scope: Scope)
fastmcp_slim/fastmcp/server/http.py:310
↓ 1 callers
Function
_answer_input_requests
Answer a task's outstanding input requests, then deliver via `tasks/update`. Each request is surfaced by a server-minted key and carries a serial
fastmcp_tasks/fastmcp_tasks/client.py:173
↓ 1 callers
Method
_apply_client_auth
Attach client credentials per the configured auth method (RFC 6749 §2.3).
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:67
↓ 1 callers
Function
_apply_meta_override
Apply a transform's ``meta=`` override, preserving framework namespaces. An override replaces the caller-facing meta wholesale, which is what use
fastmcp_slim/fastmcp/tools/tool_transform.py:254
↓ 1 callers
Method
_apply_shared_context
Re-establish app-scoped SharedContext ContextVars for this request. The SDK v2 dispatcher runs handlers in the message sender's context, so
fastmcp_slim/fastmcp/server/low_level.py:302
↓ 1 callers
Method
_apply_single_transform
Apply transformation to a single parameter. This method handles the transformation of a single argument according to the specified tr
fastmcp_slim/fastmcp/tools/tool_transform.py:802
↓ 1 callers
Function
_apply_value_metadata
Override title/description on the wrapped ``value`` property in-place.
fastmcp_slim/fastmcp/server/elicitation.py:203
↓ 1 callers
Function
_as_input_required
Return the `InputRequiredResult` a guard leg produced, or None. A tool body may return the bare `InputRequiredResult` or the `InputRequiredTo
fastmcp_tasks/fastmcp_tasks/input_loop.py:49
↓ 1 callers
Function
_ask_dinner_prefs
Return the input request that pauses the task until the client answers.
examples/task_elicitation.py:50
↓ 1 callers
Method
_assert_options
(self)
tests/utilities/httpx2_mock.py:207
↓ 1 callers
Function
_assertion_granted_scopes
Scopes granted by an ID-JAG, from its `scope` or `scp` claim.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:176
↓ 1 callers
Function
_assertion_scopes
Extract the scopes an ID-JAG grants, from `scope` or `scp`.
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:509
↓ 1 callers
Method
_backend
(seen: dict[str, dict])
tests/server/telemetry/test_provider_tracing.py:146
↓ 1 callers
Function
_backend_sample
Issue a handshake-era `sampling/createMessage` from a backend server.
tests/server/providers/proxy/test_proxy_client.py:73
↓ 1 callers
Method
_bind
Bind this provider to a specific MCP server URL. Called automatically when ``mcp_url`` is provided to ``__init__``, or by the transpo
fastmcp_slim/fastmcp/client/auth/client_credentials.py:357
↓ 1 callers
Method
_bind
Bind this extension to its FastMCP instance (called by `add_extension`). A weak reference avoids a reference cycle between the server and its
fastmcp_slim/fastmcp/server/extensions.py:139
↓ 1 callers
Method
_bind_restoring_handlers
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:1581
↓ 1 callers
Function
_body
()
fastmcp_slim/fastmcp/cli/apps_dev.py:1754
↓ 1 callers
Function
_build_actions_section
Render category filter, quantity adjustment, and delete controls.
examples/apps/inventory/inventory_server.py:285
↓ 1 callers
Function
_build_add_form
Render the add-item form using Form.from_model().
examples/apps/inventory/inventory_server.py:266
↓ 1 callers
Function
_build_csp
Build CSP from the generative renderer's declared requirements.
fastmcp_slim/fastmcp/apps/generative.py:44
↓ 1 callers
Method
_build_execute_description
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:566
↓ 1 callers
Function
_build_facets
Build facets for rich text formatting, including auto-detected URLs.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:92
↓ 1 callers
Function
_build_fetch_targets
Build the ordered connection attempts for a validated URL. An empty ``resolved_ips`` means proxy mode (see :func:`validate_url`): a single un
fastmcp_slim/fastmcp/server/auth/ssrf.py:243
↓ 1 callers
Function
_build_inventory_table
Render the main DataTable with all current items.
examples/apps/inventory/inventory_server.py:224
↓ 1 callers
Function
_build_map_html
( locations: list[dict], zoom: int, )
examples/apps/map/map_server.py:53
↓ 1 callers
Function
_build_picker_html
Build Prefab picker page: dropdown selector with per-tool forms.
fastmcp_slim/fastmcp/cli/apps_dev.py:1034
↓ 1 callers
Function
_build_quote_embed
Build quote embed.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:208
↓ 1 callers
Function
_build_quote_with_images_embed
Build quote embed with images.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:223
↓ 1 callers
Function
_build_reply_ref
Build reply reference.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:184
↓ 1 callers
Function
_build_request_card
Build a card for a single request inside a ForEach context.
examples/apps/approvals/approvals_server.py:217
↓ 1 callers
Function
_build_routes
Build all component management routes.
fastmcp_slim/fastmcp/contrib/component_manager/component_manager.py:50
↓ 1 callers
Function
_build_search_section
Render the search form with ForEach results.
examples/apps/inventory/inventory_server.py:241
↓ 1 callers
Function
_build_server_span_attrs
( method: str, server_name: str, component_type: str, component_key: str, resource_uri: st
fastmcp_slim/fastmcp/server/telemetry.py:125
↓ 1 callers
Function
_build_test_server
Create a minimal FastMCP server for integration tests.
tests/cli/test_client_commands.py:398
↓ 1 callers
Function
_build_test_server
Create a minimal FastMCP server for integration tests.
tests/cli/test_generate_cli.py:548
↓ 1 callers
Method
_build_url
Build URL by substituting path parameters in the template. Args: path_template: OpenAPI path template (e.g., "/users/{id
fastmcp_slim/fastmcp/utilities/openapi/director.py:347
↓ 1 callers
Function
_cache_namespace
Namespace cached tokens by both client identity and requested scopes. Two providers that differ in either their ``client_id`` or their requested
fastmcp_slim/fastmcp/client/auth/client_credentials.py:64
↓ 1 callers
Function
_cacheable_result_models
Allowlist of `{class name: model}` for every cacheable result type. Derived from `MONOLITH_RESULTS` (the SDK's per-method result registry) so it
fastmcp_slim/fastmcp/client/caching.py:59
↓ 1 callers
Function
_call_result_to_dict
Serialize a ``CallToolResult`` to a JSON-safe dict.
fastmcp_slim/fastmcp/cli/client.py:463
↓ 1 callers
Method
_capture_shared_context
Snapshot the live ``SharedContext`` ContextVar values. The SDK v2 dispatcher runs each request handler in the *message sender's* cont
fastmcp_slim/fastmcp/server/mixins/lifespan.py:149
↓ 1 callers
Method
_chat_completion_to_result_with_tools
Convert OpenAI response to CreateMessageResultWithTools.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:452
↓ 1 callers
Function
_check_fastmcp_imports
Return list of broken fastmcp import descriptions.
tests/docs/test_doc_examples.py:64
↓ 1 callers
Function
_check_removed_kwargs
Raise helpful TypeErrors for kwargs FastMCP no longer accepts.
fastmcp_slim/fastmcp/server/server.py:187
↓ 1 callers
Function
_check_syntax
Return error description if syntax is invalid, else None.
tests/docs/test_doc_examples.py:54
↓ 1 callers
Method
_check_version_mixing
Check that versioned and unversioned components aren't mixed. LocalProvider enforces a simple rule: for any given name/URI, all regis
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:134
↓ 1 callers
Function
_clamp_logger
Clamp the logger to a minimum and maximum level. If min_level is provided, messages logged at a lower level than `min_level` will have their leve
fastmcp_slim/fastmcp/utilities/logging.py:221
↓ 1 callers
Method
_clear_consent_binding_cookie
Remove a specific consent binding entry after successful callback.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:255
↓ 1 callers
Function
_clear_signature_caches
Clear signature-related caches for a function. Called after modifying a function's signature to ensure downstream code sees the updated signa
fastmcp_slim/fastmcp/server/dependencies.py:426
↓ 1 callers
Function
_coerce_version
Coerce version to string, accepting int, float, or str. Raises TypeError for non-scalar types (list, dict, set, etc.). Raises ValueError if v
fastmcp_slim/fastmcp/utilities/components.py:48
↓ 1 callers
Function
_collect_providers
List API provider directories (e.g. 'github.com', 'amazonaws.com').
tests/utilities/json_schema_type/test_real_world_schemas.py:226
↓ 1 callers
Function
_collect_refs
(obj: Any, source: str)
fastmcp_slim/fastmcp/utilities/json_schema.py:57
↓ 1 callers
Method
_compose_tool_call_interceptors
Nest every extension's `tools/call` interceptor around ``call_next``. Composes at the innermost point of the tool-call dispatch — after the
fastmcp_slim/fastmcp/server/server.py:646
↓ 1 callers
Function
_compute_module_name
Compute the dotted module name for a file within a package. Args: file_path: Path to the Python file. package_root: Root director
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:103
↓ 1 callers
Function
_configured_proxy_url
Return the proxy URL to route proxy-trust fetches through, if any is set. Reads ``HTTPS_PROXY``/``https_proxy`` first, falling back to ``ALL_PROX
fastmcp_slim/fastmcp/server/auth/ssrf.py:76
↓ 1 callers
Function
_conformant_discover_only
Hold ``session.send_discover`` to the same wire schema every later reply must meet. ``negotiate_auto`` accepts a probe that parses as the version
fastmcp_slim/fastmcp/client/client.py:140
↓ 1 callers
Function
_contains_bytes_type
Check if *tp* is or contains bytes, recursing through unions and Annotated.
fastmcp_slim/fastmcp/tools/function_parsing.py:39
↓ 1 callers
Function
_contains_prefab_type
Check if *tp* is or contains a prefab type, recursing through unions and Annotated.
fastmcp_slim/fastmcp/tools/function_parsing.py:49
↓ 1 callers
Method
_context_manager
(self)
fastmcp_slim/fastmcp/client/client.py:797
↓ 1 callers
Method
_convert_string_arguments
Convert string arguments to expected types based on function signature.
fastmcp_slim/fastmcp/prompts/function_prompt.py:254
↓ 1 callers
Method
_convert_to_parameter_location
Convert string parameter location to our ParameterLocation type.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:147
↓ 1 callers
Function
_convert_to_single_content_block
( item: Any, )
fastmcp_slim/fastmcp/tools/base.py:478
↓ 1 callers
Method
_convert_tool_choice_to_openai
Convert MCP tool_choice to OpenAI format.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:438
↓ 1 callers
Function
_convert_tool_to_google_genai
Convert an MCP Tool to Google GenAI format. We prune ``title`` fields from the schema because Gemini 2.5 Flash produces ``MALFORMED_FUNCTION_
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:148
↓ 1 callers
Method
_convert_tools_to_openai
Convert MCP tools to OpenAI tool format.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:416
↓ 1 callers
Function
_count_titles
Count the `title` keys down an array-nested schema, iteratively.
tests/utilities/test_json_schema.py:31
↓ 1 callers
Method
_create_after_message
( self, context: MiddlewareContext[Any], start_time: float, )
fastmcp_slim/fastmcp/server/middleware/logging.py:105
↓ 1 callers
Function
_create_array_type
Create list/set type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:351
↓ 1 callers
Method
_create_enhanced_error_response
Create enhanced error response with content negotiation. Args: request: The original request client_id: The unregiste
fastmcp_slim/fastmcp/server/auth/handlers/authorize.py:281
↓ 1 callers
Function
_create_enum
Create enum type from list of values.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:340
↓ 1 callers
Method
_create_error_message
( self, context: MiddlewareContext[Any], start_time: float, error: Exception,
fastmcp_slim/fastmcp/server/middleware/logging.py:89
↓ 1 callers
Method
_create_forwarding_transform
Create schema and forwarding function that encapsulates all transformation logic. This method builds a new JSON schema for the transformed to
fastmcp_slim/fastmcp/tools/tool_transform.py:662
↓ 1 callers
Function
_create_numeric_type
Create numeric type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:318
↓ 1 callers
Method
_create_openapi_resource
Create and register an OpenAPIResource.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:281
↓ 1 callers
Method
_create_openapi_template
Create and register an OpenAPIResourceTemplate.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:316
↓ 1 callers
Method
_create_openapi_tool
Create and register an OpenAPITool.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:229
↓ 1 callers
Method
_create_protected_resource_route
Build a protected resource metadata route that discovers scopes lazily. Mirrors ``create_protected_resource_routes`` (RFC 9728) but resolves
fastmcp_slim/fastmcp/server/auth/providers/descope.py:235
↓ 1 callers
Method
_create_proxy
Create underlying transport, proxy client, and proxy server for a single backend. The ProxyClient is connected via the AsyncExitStack *before
fastmcp_slim/fastmcp/client/transports/config.py:199
↓ 1 callers
Function
_create_pydantic_model
Create Pydantic BaseModel from object schema with additionalProperties.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:587
↓ 1 callers
Function
_create_roots_callback_from_fn
( fn: Callable[[RequestContext[ClientSession, LifespanContextT]], RootsList] | Callable[[RequestContex
fastmcp_slim/fastmcp/client/roots.py:59
← previous
next →
1,201–1,300 of 11,669, ranked by callers