MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,524 in github.com/PrefectHQ/fastmcp

↓ 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 callersFunction_embedded_ipv4_addresses
Return IPv4 addresses embedded in known IPv6 transition forms.
fastmcp_slim/fastmcp/server/auth/ssrf.py:73
↓ 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_execute
Validate arguments and execute the tool body. Argument validation runs first and raises a bare ``pydantic.ValidationError`` on bad in
fastmcp_slim/fastmcp/tools/function_tool.py:436
↓ 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 callersFunction_extract_scopes
(data: Mapping[str, Any])
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:29
↓ 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:1370
↓ 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 callersMethod_fetch_whoami
( self, client: httpx.AsyncClient, token: str )
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:157
↓ 1 callersFunction_filter_properties_by_access
Remove readOnly and/or writeOnly properties from schema.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:293
↓ 1 callersFunction_final_response
Build a final_response tool-use reply.
tests/client/test_sampling_result_types.py:555
↓ 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:74
↓ 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_origin_host
(host: str)
fastmcp_slim/fastmcp/server/http.py:182
↓ 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:924
↓ 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:749
↓ 1 callersFunction_geocode
Geocode an address using OpenStreetMap Nominatim (free, no key).
examples/apps/map/map_server.py:33
↓ 1 callersFunction_get
(d: dict[str, Any], snake: str, camel: str)
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:101
↓ 1 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:252
↓ 1 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:351
↓ 1 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:466
↓ 1 callersMethod_get_client
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:914
↓ 1 callersMethod_get_client_identifier
Get client identifier for rate limiting.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:223
↓ 1 callersMethod_get_component_identity
Get the identity (type, name/uri) for a component. Returns: A tuple of (component_type, logical_name) where logical_name is
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:113
↓ 1 callersMethod_get_expanded_path
Expand environment variables and user home in path.
fastmcp_slim/fastmcp/utilities/types.py:260
↓ 1 callersFunction_get_fastmcp_app_name
Read the FastMCPApp name from a tool's metadata, if present.
fastmcp_slim/fastmcp/tools/base.py:579
↓ 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:426
↓ 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:683
↓ 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 callersFunction_get_result
Extract the value from a CallToolResult (structured or text).
examples/search/client_regex.py:23
↓ 1 callersFunction_get_result
Extract the value from a CallToolResult (structured or text).
examples/search/client_bm25.py:23
↓ 1 callersFunction_get_result
Extract the value from a CallToolResult (structured or text).
examples/code_mode/client.py:26
↓ 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:700
↓ 1 callersFunction_get_tool_resolver
Get the Prefab peer-reference resolver bound to an app name.
fastmcp_slim/fastmcp/tools/base.py:557
↓ 1 callersMethod_get_verification_key
Get the verification key for the token.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:317
↓ 1 callersMethod_get_verification_token
Get the token string to pass to the token verifier. Returns the upstream access token by default. Subclasses can override to verify a
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1670
↓ 1 callersFunction_handle_prompt
Handle a prompt get within an open client session.
fastmcp_slim/fastmcp/cli/client.py:579
↓ 1 callersFunction_handle_resource
Handle a resource read within an open client session.
fastmcp_slim/fastmcp/cli/client.py:541
↓ 1 callersMethod_handle_status_notification
Process incoming notifications/tasks/status (internal). Called by Client when a notification is received for this task. Updates cache
fastmcp_slim/fastmcp/client/tasks.py:120
↓ 1 callersMethod_handle_task_status_notification
Route task status notification to appropriate Task object. Called when notifications/tasks/status is received from server. Updates Ta
fastmcp_slim/fastmcp/client/client.py:776
↓ 1 callersFunction_handle_tool_call
Handle a tool call within an open client session.
fastmcp_slim/fastmcp/cli/client.py:492
↓ 1 callersFunction_has_cycle
(node: str)
fastmcp_slim/fastmcp/utilities/json_schema.py:42
↓ 1 callersFunction_has_dot_segments
Return True if a URI path contains `.` or `..` segments. Browsers collapse dot-segments when resolving a 302 Location per RFC 3986 §5.2.4. Al
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:118
↓ 1 callersMethod_has_freshness_headers
Return True when response includes cache freshness directives.
fastmcp_slim/fastmcp/server/auth/cimd.py:277
↓ 1 callersFunction_has_prefab_return_type
Check if a FunctionTool's return type annotation is a prefab type.
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:66
↓ 1 callersFunction_has_ui_resource
Return True if the tool has a UI resourceUri in its metadata.
fastmcp_slim/fastmcp/cli/apps_dev.py:931
↓ 1 callersFunction_has_unsupported_critical_headers
(header: dict[str, Any])
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:51
↓ 1 callersFunction_head_matches_pinned
Return True when CLONE_DIR is already checked out at the pinned commit.
tests/utilities/json_schema_type/test_real_world_schemas.py:188
↓ 1 callersFunction_host_matches
(host: str, allowed_hosts: Sequence[str])
fastmcp_slim/fastmcp/server/http.py:153
↓ 1 callersMethod_import_module
Import a Python module from a file path. Args: file_path: Path to the Python file Returns: The imported modu
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:83
↓ 1 callersMethod_interpolate_env_vars
Interpolate environment variables in a string. Replaces ${VAR_NAME} with the value of VAR_NAME from the environment. If the variable
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:112
↓ 1 callersFunction_invoke_serializer
Call a serializer and await the result if it returns a coroutine.
fastmcp_slim/fastmcp/server/transforms/search/base.py:70
↓ 1 callersFunction_is_fastmcp_server
(transport: object)
fastmcp_slim/fastmcp/client/transports/inference.py:161
↓ 1 callersFunction_is_loopback_host
Check if a host is a loopback address. Per RFC 8252 §7.3, loopback addresses include localhost, 127.0.0.1, and ::1.
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:80
↓ 1 callersFunction_is_loopback_host
(host: str | None)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:142
↓ 1 callersFunction_is_openapi_directory_clone
Check whether *path* looks like a clone of the openapi-directory repo.
tests/utilities/json_schema_type/test_real_world_schemas.py:109
↓ 1 callersFunction_is_package_dir
Check if a directory is a Python package (has __init__.py).
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:69
↓ 1 callersFunction_is_prefab_type
Check if *tp* is or contains a prefab type, recursing through unions and Annotated.
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:56
↓ 1 callersFunction_is_rate_limit_error
Check if an exception indicates a rate limit error from GitHub API. Args: excinfo: The exception info from pytest report: Optiona
tests/integration_tests/conftest.py:6
← previousnext →1,001–1,100 of 10,524, ranked by callers