MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,312 in github.com/PrefectHQ/fastmcp

↓ 1 callersMethod_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 callersFunction_call_result_to_dict
Serialize a ``CallToolResult`` to a JSON-safe dict.
fastmcp_slim/fastmcp/cli/client.py:463
↓ 1 callersMethod_call_tool_as_task
Call a tool for background execution (SEP-1686). Returns a ToolTask object that handles both background and immediate execution. If t
fastmcp_slim/fastmcp/client/mixins/tools.py:316
↓ 1 callersMethod_chat_completion_to_result_with_tools
Convert OpenAI response to CreateMessageResultWithTools.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:451
↓ 1 callersFunction_check_fastmcp_imports
Return list of broken fastmcp import descriptions.
tests/docs/test_doc_examples.py:64
↓ 1 callersFunction_check_removed_kwargs
Raise helpful TypeErrors for kwargs removed in v3.
fastmcp_slim/fastmcp/server/server.py:140
↓ 1 callersFunction_check_syntax
Return error description if syntax is invalid, else None.
tests/docs/test_doc_examples.py:54
↓ 1 callersMethod_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 callersFunction_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 callersMethod_clear_consent_binding_cookie
Remove a specific consent binding entry after successful callback.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:242
↓ 1 callersFunction_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:305
↓ 1 callersFunction_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:52
↓ 1 callersFunction_collect_providers
List API provider directories (e.g. 'github.com', 'amazonaws.com').
tests/utilities/json_schema_type/test_real_world_schemas.py:226
↓ 1 callersFunction_collect_refs
(obj: Any, source: str)
fastmcp_slim/fastmcp/utilities/json_schema.py:24
↓ 1 callersFunction_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:102
↓ 1 callersFunction_contains_bytes_type
Check if *tp* is or contains bytes, recursing through unions and Annotated.
fastmcp_slim/fastmcp/tools/function_parsing.py:39
↓ 1 callersFunction_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 callersMethod_context_manager
(self)
fastmcp_slim/fastmcp/client/client.py:467
↓ 1 callersMethod_convert_string_arguments
Convert string arguments to expected types based on function signature.
fastmcp_slim/fastmcp/prompts/function_prompt.py:277
↓ 1 callersMethod_convert_to_parameter_location
Convert string parameter location to our ParameterLocation type.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:146
↓ 1 callersMethod_convert_tool_choice_to_openai
Convert MCP tool_choice to OpenAI format.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:437
↓ 1 callersFunction_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:144
↓ 1 callersMethod_convert_tools_to_openai
Convert MCP tools to OpenAI tool format.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:415
↓ 1 callersMethod_create_after_message
( self, context: MiddlewareContext[Any], start_time: float, )
fastmcp_slim/fastmcp/server/middleware/logging.py:105
↓ 1 callersFunction_create_array_type
Create list/set type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:351
↓ 1 callersMethod_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:245
↓ 1 callersFunction_create_enum
Create enum type from list of values.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:340
↓ 1 callersMethod_create_error_message
( self, context: MiddlewareContext[Any], start_time: float, error: Exception,
fastmcp_slim/fastmcp/server/middleware/logging.py:89
↓ 1 callersMethod_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:616
↓ 1 callersMethod_create_openapi_resource
Create and register an OpenAPIResource.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:281
↓ 1 callersMethod_create_openapi_template
Create and register an OpenAPIResourceTemplate.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:316
↓ 1 callersMethod_create_openapi_tool
Create and register an OpenAPITool.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:229
↓ 1 callersMethod_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:146
↓ 1 callersFunction_create_pydantic_model
Create Pydantic BaseModel from object schema with additionalProperties.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:569
↓ 1 callersFunction_create_roots_callback_from_fn
( fn: Callable[[RequestContext[ClientSession, LifespanContextT]], RootsList] | Callable[[RequestContex
fastmcp_slim/fastmcp/client/roots.py:58
↓ 1 callersFunction_create_roots_callback_from_roots
( roots: RootsList, )
fastmcp_slim/fastmcp/client/roots.py:45
↓ 1 callersFunction_create_string_type
Create string type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:267
↓ 1 callersMethod_create_token_verifier
( self, introspection_url: str, client_id: str, client_secret: str | SecretStr
fastmcp_slim/fastmcp/server/auth/providers/propelauth.py:202
↓ 1 callersFunction_default_discovery_tools
()
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:493
↓ 1 callersFunction_defs_have_cycles
Check whether any definitions in ``$defs`` form a reference cycle. A cycle means a definition directly or transitively references itself (e.g
fastmcp_slim/fastmcp/utilities/json_schema.py:10
↓ 1 callersFunction_dereference_resource_template
Return a copy of the template with dereferenced schemas.
fastmcp_slim/fastmcp/server/middleware/dereference.py:58
↓ 1 callersFunction_dereference_tool
Return a copy of the tool with dereferenced schemas.
fastmcp_slim/fastmcp/server/middleware/dereference.py:44
↓ 1 callersFunction_determine_route_type
Determine the FastMCP component type based on the route and mappings.
fastmcp_slim/fastmcp/server/providers/openapi/routing.py:86
↓ 1 callersMethod_dispatch_handler
Builds a chain of handlers for a given message.
fastmcp_slim/fastmcp/server/middleware/middleware.py:103
↓ 1 callersMethod_docket_lifespan
Manage Docket instance and Worker for background task execution. Docket is process-level, not server-level: only the first server in a
fastmcp_slim/fastmcp/server/mixins/lifespan.py:59
↓ 1 callersMethod_docket_lifespan_root
Root-only Docket lifecycle. See _docket_lifespan for the dispatch.
fastmcp_slim/fastmcp/server/mixins/lifespan.py:91
↓ 1 callersMethod_elicit_for_task
Send an elicitation request from a background task (SEP-1686). This method handles elicitation when running in a Docket worker context,
fastmcp_slim/fastmcp/server/context.py:1205
↓ 1 callersMethod_enforce_size_limit
Ensure there is room for at least one new entry.
fastmcp_slim/fastmcp/utilities/token_cache.py:166
↓ 1 callersFunction_ensure_repo
Clone the openapi-directory repo if not already present at the pinned commit. Safe under pytest-xdist: a file lock serializes the rmtree/reclone
tests/utilities/json_schema_type/test_real_world_schemas.py:121
↓ 1 callersFunction_enter_server_lifespan
Enters the server's lifespan context for FastMCP servers and does nothing for FastMCP 1 servers.
fastmcp_slim/fastmcp/client/transports/memory.py:96
↓ 1 callersMethod_extract_input_schema_dependencies
Extract only the schema definitions needed for input (parameters and request body). Args: parameters: Route parameters
fastmcp_slim/fastmcp/utilities/openapi/parser.py:586
↓ 1 callersMethod_extract_output_schema_dependencies
Extract only the schema definitions needed for outputs (responses). Args: responses: Route responses all_sch
fastmcp_slim/fastmcp/utilities/openapi/parser.py:622
↓ 1 callersMethod_extract_parameters
Extract and resolve parameters from operation and path item.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:240
↓ 1 callersMethod_extract_public_key_from_jwks
Extract public key from inline JWKS. Args: token: JWT token to extract kid from jwks: JWKS document containing keys
fastmcp_slim/fastmcp/server/auth/cimd.py:631
↓ 1 callersMethod_extract_request_body
Extract and resolve request body information.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:339
↓ 1 callersMethod_extract_responses
Extract and resolve response information. Only includes the primary success response for MCP tools.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:437
↓ 1 callersFunction_extract_schemas
Pull all schema definitions out of an OpenAPI spec.
tests/utilities/json_schema_type/test_real_world_schemas.py:212
↓ 1 callersMethod_extract_scopes
Extract scopes from introspection response. RFC 7662 allows scopes to be returned as either: - A space-separated string in t
fastmcp_slim/fastmcp/server/auth/providers/introspection.py:156
↓ 1 callersFunction_fetch_app_bridge_bundle
Async wrapper around _fetch_app_bridge_bundle_sync.
fastmcp_slim/fastmcp/cli/apps_dev.py:1357
↓ 1 callersMethod_fetch_jwks
Fetch JWKS data, using SSRF-safe or standard fetch based on config.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:394
↓ 1 callersFunction_filter_properties_by_access
Remove readOnly and/or writeOnly properties from schema.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:289
↓ 1 callersFunction_find_mdx_examples
Find Python code examples in .mdx files. pytest-examples only supports ``.md``; we call its internal ``_extract_code_chunks`` directly so ``.
tests/docs/test_doc_examples.py:32
↓ 1 callersFunction_find_package_root
Find the root of the package containing this file. Walks up the directory tree until we find a directory without __init__.py, but never above
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:73
↓ 1 callersMethod_find_server_object
Find the server object in the module. Args: module: The imported Python module file_path: Path to the file (for error
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:109
↓ 1 callersMethod_find_tool
Find a tool by name from a pre-fetched list.
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:577
↓ 1 callersFunction_format_callback_host_for_url
(host: str)
fastmcp_slim/fastmcp/client/auth/oauth.py:43
↓ 1 callersFunction_format_params
Format inputSchema properties as a compact signature.
examples/search/client_regex.py:33
↓ 1 callersFunction_format_params
Format inputSchema properties as a compact signature.
examples/search/client_bm25.py:33
↓ 1 callersFunction_format_params
Format inputSchema properties as a compact signature.
examples/code_mode/client.py:36
↓ 1 callersFunction_format_prompt_result
Format PromptResult for tool output. Returns JSON with the messages array. Preserves embedded resources as structured JSON objects.
fastmcp_slim/fastmcp/server/transforms/prompts_as_tools.py:149
↓ 1 callersFunction_format_result
Format ResourceResult for tool output. Single text content is returned as-is. Single binary content is base64-encoded. Multiple contents are
fastmcp_slim/fastmcp/server/transforms/resources_as_tools.py:156
↓ 1 callersFunction_format_schema_for_help
Format a JSON schema for display in help text.
fastmcp_slim/fastmcp/cli/generate.py:107
↓ 1 callersFunction_format_uptime
()
examples/apps/system_monitor/system_monitor_server.py:93
↓ 1 callersMethod_function_has_kwargs
Check if function accepts **kwargs. This determines whether a custom function can accept arbitrary keyword arguments, which affects h
fastmcp_slim/fastmcp/tools/tool_transform.py:911
↓ 1 callersMethod_generate_default_name
Generate a default name from the route.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:192
↓ 1 callersMethod_generate_manifest
Generate JSON manifest for the skill.
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:58
↓ 1 callersMethod_generate_pkce_pair
Generate PKCE code verifier and challenge pair. Returns: Tuple of (code_verifier, code_challenge) using S256 method
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:746
↓ 1 callersFunction_geocode
Geocode an address using OpenStreetMap Nominatim (free, no key).
examples/apps/map/map_server.py:33
↓ 1 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:253
↓ 1 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:352
↓ 1 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:475
↓ 1 callersMethod_get_client
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:923
↓ 1 callersMethod_get_client_identifier
Get client identifier for rate limiting.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:213
↓ 1 callersMethod_get_expanded_path
Expand environment variables and user home in path.
fastmcp_slim/fastmcp/utilities/types.py:260
↓ 1 callersFunction_get_free_port
()
tests/conformance/test_conformance.py:23
↓ 1 callersFunction_get_from_type_handler
Get the appropriate type handler for the schema.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:423
↓ 1 callersMethod_get_mime_type
Get MIME type from format or guess from file extension.
fastmcp_slim/fastmcp/utilities/types.py:264
↓ 1 callersMethod_get_mime_type
Get MIME type from format or guess from file extension.
fastmcp_slim/fastmcp/utilities/types.py:331
↓ 1 callersMethod_get_mime_type
Get MIME type from format or guess from file extension.
fastmcp_slim/fastmcp/utilities/types.py:391
↓ 1 callersFunction_get_parent_trace_context
Get parent trace context from request meta for distributed tracing.
fastmcp_slim/fastmcp/server/telemetry.py:45
↓ 1 callersMethod_get_primary_success_response
Get the primary success response for an MCP tool. We only need one success response.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:414
↓ 1 callersMethod_get_prompt
(self, name: str, version: Any = None)
fastmcp_slim/fastmcp/apps/app.py:414
↓ 1 callersMethod_get_prompt
Get a specific prompt by name. Default implementation filters _list_prompts() and picks the highest version matching the spec.
fastmcp_slim/fastmcp/server/providers/base.py:463
↓ 1 callersMethod_get_prompt_as_task
Get a prompt for background execution (SEP-1686). Returns a PromptTask object that handles both background and immediate execution.
fastmcp_slim/fastmcp/client/mixins/prompts.py:255
↓ 1 callersMethod_get_resource
(self, uri: str, version: Any = None)
fastmcp_slim/fastmcp/apps/app.py:402
↓ 1 callersMethod_get_resource
Get a specific resource by URI. Default implementation filters _list_resources() and returns highest version matching the spec.
fastmcp_slim/fastmcp/server/providers/base.py:401
↓ 1 callersMethod_get_resource
( self, uri: str, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/providers/proxy.py:692
↓ 1 callersMethod_get_resource_template
Get a resource template that matches the given URI. Default implementation lists all templates, finds those whose pattern matches the
fastmcp_slim/fastmcp/server/providers/base.py:432
↓ 1 callersMethod_get_sandbox
Lazily create the Pyodide sandbox.
fastmcp_slim/fastmcp/apps/generative.py:91
↓ 1 callersMethod_get_tool
Get a tool by name via aggregation from providers. Extends AggregateProvider._get_tool() with component-level auth checks. Args:
fastmcp_slim/fastmcp/server/server.py:672
← previousnext →1,001–1,100 of 10,312, ranked by callers