MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

↓ 1 callersFunction_collect_providers
List API provider directories (e.g. 'github.com', 'amazonaws.com').
tests/utilities/json_schema_type/test_real_world_schemas.py:231
↓ 1 callersMethod_compose_tool_call_interceptors
Nest interceptors after middleware, with the first registration outermost.
fastmcp_slim/fastmcp/server/mixins/extensions.py:226
↓ 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:133
↓ 1 callersFunction_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:79
↓ 1 callersMethod_configured_source_id
Identify a configured trust source independently of its credentials.
fastmcp_slim/fastmcp/server/auth/auth.py:905
↓ 1 callersFunction_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:156
↓ 1 callersMethod_connect_all
(self)
fastmcp_slim/fastmcp/client/group.py:126
↓ 1 callersFunction_constant
(label: str)
tests/pbt/test_middleware.py:111
↓ 1 callersFunction_constrain_raw_string
Apply string keywords to the raw instance before `base` parses it, as JSON Schema does. Cached so a schema seen on every tool call maps to one ty
fastmcp_slim/fastmcp/utilities/json_schema_type.py:646
↓ 1 callersFunction_contains_bytes_type
Check if *tp* is or contains bytes, recursing through unions and Annotated.
fastmcp_slim/fastmcp/tools/function_parsing.py:34
↓ 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:47
↓ 1 callersMethod_context_manager
(self)
fastmcp_slim/fastmcp/client/client.py:913
↓ 1 callersFunction_convert_exclusive_bounds
Convert OpenAPI 3.0 boolean exclusive bounds to JSON Schema numeric bounds. ``{"minimum": 5, "exclusiveMinimum": true}`` becomes ``{"exclusiv
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:186
↓ 1 callersFunction_convert_input_schema
Convert a combined tool input schema to JSON Schema. readOnly properties are removed: the server sets them, so a request does not send them,
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:888
↓ 1 callersFunction_convert_schema
( schema: Mapping[str, Any] | bool, schemas: Mapping[str, Any], resolving_refs: frozenset[str], )
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1122
↓ 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:148
↓ 1 callersFunction_convert_to_single_content_block
( item: Any, )
fastmcp_slim/fastmcp/tools/base.py:653
↓ 1 callersMethod_convert_tool_choice_to_openai
Convert MCP tool_choice to OpenAI format.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:448
↓ 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:182
↓ 1 callersMethod_convert_tools_to_openai
Convert MCP tools to OpenAI tool format.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:426
↓ 1 callersMethod_cookie_joined_item
Encode a non-exploded cookie item; `,` and `=` also separate items.
fastmcp_slim/fastmcp/utilities/openapi/director.py:736
↓ 1 callersFunction_count_titles
Count the `title` keys down an array-nested schema, iteratively.
tests/utilities/test_json_schema.py:34
↓ 1 callersMethod_count_verification
Refuse a challenge POST once `host` has had its share this minute. A fixed window counted in the store; concurrent subscribes can each
fastmcp_events/fastmcp_events/webhook_delivery.py:599
↓ 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/tuple type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:972
↓ 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:312
↓ 1 callersFunction_create_enum
Create enum type from list of values.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:738
↓ 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:781
↓ 1 callersFunction_create_numeric_type
Create numeric type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:716
↓ 1 callersMethod_create_openapi_resource
Create and register an OpenAPIResource.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:344
↓ 1 callersMethod_create_openapi_template
Create and register an OpenAPIResourceTemplate.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:380
↓ 1 callersMethod_create_openapi_tool
Create and register an OpenAPITool.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:287
↓ 1 callersFunction_create_prefix_items_type
Validate positions while preserving unrestricted-list compatibility.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:854
↓ 1 callersMethod_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:293
↓ 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:326
↓ 1 callersFunction_create_pydantic_model
Create Pydantic BaseModel from object schema with additionalProperties.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1380
↓ 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:596
↓ 1 callersMethod_create_token_verifier
( self, introspection_url: str, client_id: str, client_secret: str | SecretStr
fastmcp_slim/fastmcp/server/auth/providers/propelauth.py:191
↓ 1 callersFunction_create_token_without_sub
Sign a JWT with no 'sub' claim, to exercise the missing-subject path.
tests/server/auth/test_jwt_provider.py:586
↓ 1 callersFunction_css
()
examples/apps/media_picker/media_picker_server.py:336
↓ 1 callersFunction_decode_unverified_claims
Decode a JWT payload without verifying the signature. Used only to read the `iss` claim so we can select the trusted issuer's key before perf
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:524
↓ 1 callersFunction_default_title
Derive a display title from a tool name. The MCP spec says clients should fall back to `name` for display when `title` is absent, but some cl
fastmcp_slim/fastmcp/tools/base.py:67
↓ 1 callersFunction_delegation_chain
The tool and each mounted child tool it delegates to, outermost first. A foreground call applies each mount level's result transforms as the resu
fastmcp_tasks/fastmcp_tasks/handlers.py:211
↓ 1 callersFunction_delete_stored_snapshot
Remove a task's stored snapshot, as a TTL expiry would.
tests/tasks/server/test_snapshot_encryption.py:218
↓ 1 callersMethod_deliver_one
( self, client_for: Callable[[str], httpx2.AsyncClient], registration: EventRegistrati
fastmcp_events/fastmcp_events/webhook_delivery.py:802
↓ 1 callersFunction_dereference_refs
(schema: dict[str, Any])
fastmcp_slim/fastmcp/utilities/json_schema.py:463
↓ 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_detached_request_context
Build a minimal SDK request context for internal handler invocation. Used by ``Context._paginate_list`` when no request context is active (e.g.
fastmcp_slim/fastmcp/server/context.py:1340
↓ 1 callersFunction_detail
A tool's full description and parameter list, rendered as markdown.
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:67
↓ 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 callersFunction_device_metadata
()
fastmcp_slim/fastmcp/cli/deploy/command.py:74
↓ 1 callersFunction_discover_and_import
( root: Path, files: list[Path], *, reuse_existing: bool )
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:496
↓ 1 callersMethod_discover_jwks_uri
Discover an issuer's JWKS URI via OIDC discovery. Fetches ``{issuer}/.well-known/openid-configuration`` and returns its ``jwks_uri``.
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:260
↓ 1 callersFunction_discover_scopes
(openid_configuration_url: str)
fastmcp_slim/fastmcp/server/auth/providers/descope.py:61
↓ 1 callersMethod_dispatch_component
Delegate a component request to the interior chain, covering early failures. The interior handler adapter runs the FastMCP chain itself and r
fastmcp_slim/fastmcp/server/low_level.py:206
↓ 1 callersMethod_dispatch_handler
Builds a chain of handlers for a given message and dispatch phase.
fastmcp_slim/fastmcp/server/middleware/middleware.py:160
↓ 1 callersFunction_dispatching_tool_call
()
fastmcp_slim/fastmcp/server/dependencies.py:289
↓ 1 callersFunction_docstring_text
Escape text for use inside a triple-quoted docstring literal.
fastmcp_slim/fastmcp/cli/generate.py:432
↓ 1 callersFunction_drop_property_names
Remove ``names`` from ``properties`` and ``required``, including in inline ``allOf``/``anyOf``/``oneOf`` members, which constrain the same instanc
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:407
↓ 1 callersFunction_drop_repeated_query_param
Keep only the first occurrence of `key` in a URL's query string. `replace_query_param` rewrites the first match and leaves any later ones alo
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:87
↓ 1 callersFunction_dt
(value: str | None)
scripts/rank_issues.py:248
↓ 1 callersFunction_dump
JSON for a schema value, which may hold non-JSON objects such as the `datetime.date` that YAML produces for an unquoted `2024-01-01`.
fastmcp_slim/fastmcp/server/transforms/search/base.py:245
↓ 1 callersFunction_effective_flags
(props: dict[str, Any])
tests/cli/test_generate_cli_param_collisions.py:46
↓ 1 callersFunction_elicit
(form: Form, answers: dict[str, Any])
tests/pbt/test_elicitation.py:418
↓ 1 callersFunction_elicit_request
(message: str)
tests/tasks/client/test_transparent_tasks.py:151
↓ 1 callersFunction_elicit_request
(message: str)
tests/tasks/server/test_reenter_shutdown.py:22
↓ 1 callersFunction_embedded_ipv4_addresses
Return IPv4 addresses embedded in known IPv6 transition forms.
fastmcp_slim/fastmcp/server/auth/ssrf.py:107
↓ 1 callersMethod_encode_path_scalar
Encode one scalar path item, rejecting dot segments at any encoding layer.
fastmcp_slim/fastmcp/utilities/openapi/director.py:853
↓ 1 callersMethod_end_grant_on_refresh_reuse
End the grant of a rotated refresh token that is presented again. OAuth 2.1 §4.3.1: a server that rotates refresh tokens should treat a
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1949
↓ 1 callersMethod_enforce_application_type
Reject a redirect URI that violates the client's application_type. SEP-837: the web/native distinction is enforced at registration, but a
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:267
↓ 1 callersMethod_enforce_size_limit
Ensure there is room for at least one new entry.
fastmcp_slim/fastmcp/utilities/token_cache.py:170
↓ 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:126
↓ 1 callersFunction_enter_client_context
(client: Client[Any])
fastmcp_slim/fastmcp/client/group.py:40
↓ 1 callersMethod_enter_context
Connect and return the session held by this context.
fastmcp_slim/fastmcp/client/client.py:1063
↓ 1 callersFunction_enter_server_lifespan
Enters the server's lifespan context for FastMCP servers and does nothing for the SDK's own high-level servers.
fastmcp_slim/fastmcp/client/transports/memory.py:119
↓ 1 callersMethod_entry_ttl
Seconds until the entry's own expiry, so the backend can evict it independently. The SDK gates freshness on `expires_at`, but a shared backen
fastmcp_slim/fastmcp/client/caching.py:216
↓ 1 callersFunction_error_attributes
Classify a failed request the way the client will see it. `tools/call` returns FastMCP errors, including unknown tools, as a `CallToolResult`
fastmcp_slim/fastmcp/server/middleware/usage.py:268
↓ 1 callersFunction_error_result
(message: str)
fastmcp_slim/fastmcp/experimental/client/code_mode.py:61
↓ 1 callersFunction_error_result
An ``is_error`` result for a task tool that raised, mirroring foreground. A raised tool error is a *completed* task carrying an error result, nev
fastmcp_tasks/fastmcp_tasks/input_loop.py:107
↓ 1 callersFunction_event
(fields: dict[Any, Any])
fastmcp_events/fastmcp_events/redis_log.py:217
↓ 1 callersFunction_example_id
(example: CodeExample)
tests/docs/test_upgrade_guide_examples.py:54
↓ 1 callersFunction_examples
()
tests/docs/test_upgrade_guide_examples.py:41
↓ 1 callersFunction_exclusive_bound
Value for a strict bound, or None when the schema states no strict bound. ``exclusiveMinimum``/``exclusiveMaximum`` take a number since draft-06.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:670
↓ 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:513
↓ 1 callersMethod_exempt
True if `name` is exempted under either its extracted or its URI-template spelling (hyphens normalize to underscores on extraction, so
fastmcp_slim/fastmcp/resources/security.py:119
↓ 1 callersMethod_exit_context
Exit a context entered by another task, preserving its session hold.
fastmcp_slim/fastmcp/client/client.py:1095
↓ 1 callersFunction_experimental_replacement
( roots: str | Path | Sequence[str | Path], reload: bool = False, main_file_name: str = "SKILL.md"
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:208
↓ 1 callersFunction_explicit_parameter_titles
Return the titles set with `Field(title=...)` on fn's parameters. The parameter schema cannot tell these apart from the titles Pydantic gener
fastmcp_slim/fastmcp/prompts/function_prompt.py:498
↓ 1 callersMethod_extension_runtime
( self, available: frozenset[str], *, root: FastMCP | None )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:426
↓ 1 callersMethod_extension_runtime
Carry each root's restrictions through the live provider tree.
fastmcp_slim/fastmcp/server/providers/aggregate.py:122
↓ 1 callersFunction_extension_tool_call_scope
Claim pending delegation for this dispatch, isolating independent calls.
fastmcp_slim/fastmcp/server/extensions.py:90
↓ 1 callersMethod_extensions_lifespan
Enter each registered extension's lifespan, exit them on shutdown. Extension lifespans are entered once per runtime tree, at the root. A
fastmcp_slim/fastmcp/server/mixins/lifespan.py:87
↓ 1 callersFunction_external_stacklevel
Stack level of the first caller outside the fastmcp package. Public entry points reach `infer_transport` through different wrapper depths (`C
fastmcp_slim/fastmcp/client/transports/inference.py:33
↓ 1 callersMethod_extract_bodiless_success_responses
Extract the success responses, besides the primary one, that declare no body. Such a response (e.g. a 204 next to a 201) means the operation
fastmcp_slim/fastmcp/utilities/openapi/parser.py:456
↓ 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:658
← previousnext →2,301–2,400 of 17,519, ranked by callers