MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,224 in github.com/PrefectHQ/fastmcp

Functiontest_transform_fn_current_context_default_is_resolved
`ctx: Context = CurrentContext()` resolves to a Context, not the marker (#5368).
tests/tools/tool_transform/test_tool_transform.py:970
Functiontest_transform_fn_depends_is_resolved
A transform_fn's `Depends()` parameter is resolved at call time (#5368).
tests/tools/tool_transform/test_tool_transform.py:991
Functiontest_transform_fn_empty_generators
Empty generators are materialized to empty lists (#5668).
tests/tools/tool_transform/test_tool_transform.py:1163
Functiontest_transform_fn_generators_are_materialized
Generator transform_fn bodies are consumed like plain tool bodies (#5668).
tests/tools/tool_transform/test_tool_transform.py:1131
Functiontest_transform_fn_generators_with_context_injection
Generator transform_fn with context injection still materializes (#5668).
tests/tools/tool_transform/test_tool_transform.py:1195
Functiontest_transform_fn_injected_context_is_resolved
A transform_fn's `ctx: Context` is injected at call time (#5368).
tests/tools/tool_transform/test_tool_transform.py:945
Functiontest_transform_fn_reannotation_preserves_parent_validation_keywords
transform_fn re-annotations must keep parent validation when the type kind is unchanged.
tests/tools/tool_transform/test_tool_transform.py:453
Methodtest_transform_fn_result_kept_for_properties_only_schema
A transform_fn's ToolResult is returned unchanged when the explicit output schema is an object without a top-level "type": "object" key
tests/tools/tool_transform/test_schemas.py:136
Methodtest_transform_fn_result_kept_for_root_ref_schema
A transform_fn's ToolResult is returned unchanged when the explicit output schema is an object via a root-level $ref, matching is_obje
tests/tools/tool_transform/test_schemas.py:165
Functiontest_transform_fn_result_respects_serialize_by_alias
A model returned by a transform_fn honors serialize_by_alias when no schema.
tests/tools/tool_transform/test_tool_transform.py:800
Methodtest_transform_fn_returning_raw_ask_is_wrapped
A custom transform_fn that returns a raw InputRequiredResult (not a pre-wrapped InputRequiredToolResult) must still emit the ask — the
tests/server/test_mrtr_guards.py:296
Functiontest_transform_fn_sync_generator_yields_values
A sync generator transform_fn's yielded values reach the client. A generator body runs during iteration, not creation. FunctionTool materiali
tests/tools/tool_transform/test_tool_transform.py:1018
Functiontest_transform_fn_type_replaces_forwarded_parent_schema
Regression for #5369: transform_fn signatures must not inherit parent type keywords.
tests/tools/tool_transform/test_tool_transform.py:403
Functiontest_transform_fn_wrapped_result_respects_serialize_by_alias
A wrapped transform result serializes the inner model before nesting. Optional model returns get a wrap-result schema; the inner model must be
tests/tools/tool_transform/test_tool_transform.py:820
Functiontest_transform_inherits_description
Test that transformed tools inherit description when none specified.
tests/tools/tool_transform/test_metadata.py:83
Functiontest_transform_inherits_meta
Test that transformed tools inherit meta when none specified.
tests/tools/tool_transform/test_metadata.py:114
Functiontest_transform_inherits_none_description
Test that transformed tools inherit None description.
tests/tools/tool_transform/test_metadata.py:101
Functiontest_transform_inherits_none_meta
Test that transformed tools inherit None meta.
tests/tools/tool_transform/test_metadata.py:135
Functiontest_transform_inherits_none_title
Test that transformed tools inherit None title.
tests/tools/tool_transform/test_metadata.py:71
Methodtest_transform_inherits_parent_output_schema
Test that transformed tool inherits parent's output schema by default.
tests/tools/tool_transform/test_schemas.py:54
Functiontest_transform_inherits_task_config
A pure rename preserves the parent's task mode.
tests/tools/tool_transform/test_task_config.py:39
Functiontest_transform_inherits_title
Test that transformed tools inherit title when none specified.
tests/tools/tool_transform/test_metadata.py:53
Methodtest_transform_layer_description_change
Test that ToolTransform can change description.
tests/server/providers/test_local_provider.py:754
Methodtest_transform_layer_duplicate_target_name_raises_error
Test that ToolTransform with duplicate target names raises ValueError.
tests/server/providers/test_local_provider.py:799
Methodtest_transform_layer_get_tool
Test that ToolTransform.get_tool works correctly.
tests/server/providers/test_local_provider.py:727
Methodtest_transform_layer_get_tool
Test that renamed tools can be looked up by new name.
tests/server/providers/test_transforming_provider.py:159
Methodtest_transform_mixed_structured_unstructured_content
Test transformation handling of mixed content types.
tests/tools/tool_transform/test_schemas.py:303
Methodtest_transform_non_object_schema_preserves_error_result
The non-object rebuild keeps is_error and meta from the transform_fn's ToolResult.
tests/tools/tool_transform/test_schemas.py:111
Methodtest_transform_output_schema_default_vs_none
Test default (NotSet) vs explicit None behavior for output_schema in transforms.
tests/tools/tool_transform/test_schemas.py:349
Methodtest_transform_output_schema_none_runtime
Test runtime behavior with output_schema=None.
tests/tools/tool_transform/test_schemas.py:74
Methodtest_transform_output_schema_with_arg_transforms
Test that output schema works correctly with argument transformations.
tests/tools/tool_transform/test_schemas.py:331
Methodtest_transform_output_schema_with_tool_result_return
Test transform when custom function returns ToolResult directly.
tests/tools/tool_transform/test_schemas.py:373
Functiontest_transform_overrides_description
Test that transformed tools can override description.
tests/tools/tool_transform/test_metadata.py:89
Functiontest_transform_overrides_meta
Test that transformed tools can override meta.
tests/tools/tool_transform/test_metadata.py:121
Functiontest_transform_overrides_title
Test that transformed tools can override title.
tests/tools/tool_transform/test_metadata.py:59
Methodtest_transform_passthrough
Test that base Transform passes through unchanged.
tests/server/providers/test_transforming_provider.py:313
Functiontest_transform_preserves_explicit_execution_without_task_support
`execution` is threaded separately from `task_config`. `to_mcp_tool()` only derives `execution` from `task_config` when the tool has no expli
tests/tools/tool_transform/test_task_config.py:60
Methodtest_transform_preserves_wrap_marker_behavior
Test that wrap marker behavior is preserved through transformation.
tests/tools/tool_transform/test_schemas.py:275
Methodtest_transform_proxy
(self, proxy_server: FastMCP)
tests/tools/tool_transform/test_tool_transform.py:888
Methodtest_transform_refused_tool_stays_denied_under_hashed_name
(self)
tests/server/auth/test_authorization.py:1753
Functiontest_transform_sees_other_tools_during_hashed_lookup
( under_maintenance: bool, )
tests/server/test_hashed_tool_dispatch.py:284
Functiontest_transform_sets_description_to_none
Test that transformed tools can explicitly set description to None.
tests/tools/tool_transform/test_metadata.py:95
Functiontest_transform_sets_meta_to_none
Test that transformed tools can explicitly set meta to None.
tests/tools/tool_transform/test_metadata.py:128
Functiontest_transform_sets_title_to_none
Test that transformed tools can explicitly set title to None.
tests/tools/tool_transform/test_metadata.py:65
Methodtest_transform_tool_with_complex_defs_pruning
Test that tool transformation properly handles hidden params. Unused type definitions are pruned from $defs when their corresponding
tests/tools/tool_transform/test_schemas.py:479
Methodtest_transform_with_custom_function_inferred_schema
Test that custom function's output schema is inferred.
tests/tools/tool_transform/test_schemas.py:196
Methodtest_transform_with_custom_function_preserves_needed_types
Test that custom transform functions preserve necessary type definitions.
tests/tools/tool_transform/test_schemas.py:524
Methodtest_transform_with_explicit_output_schema_dict
Test that explicit output schema overrides parent.
tests/tools/tool_transform/test_schemas.py:89
Methodtest_transform_with_explicit_output_schema_none
Test that output_schema=None sets output schema to None.
tests/tools/tool_transform/test_schemas.py:68
Methodtest_transform_with_var_params
Test transform_context_annotations handles *args and **kwargs correctly.
tests/server/test_dependencies_advanced.py:83
Methodtest_transformed_guard_still_asks
(self)
tests/server/test_mrtr_guards.py:272
Functiontest_transformed_resource_configuration_is_readable
(mounted)
tests/server/providers/test_prefab_sharing.py:146
Functiontest_transformed_schema_is_served
()
tests/server/test_mcp_param_schema_cache.py:57
Functiontest_transformed_submission_accepts_an_explicit_default
Passing the defaulted argument explicitly still submits.
tests/tasks/server/test_task_transformed_tools.py:71
Functiontest_transformed_submission_accepts_omitted_default
A schema default satisfies ``required`` exactly as it does for a plain tool.
tests/tasks/server/test_task_transformed_tools.py:61
Functiontest_transformed_submission_rejects_missing_required
A call missing a required argument raises instead of creating a task.
tests/tasks/server/test_task_transformed_tools.py:41
Functiontest_transformed_submission_rejects_unknown_argument
An argument the transform does not expose raises instead of queueing.
tests/tasks/server/test_task_transformed_tools.py:51
Functiontest_transformed_tool_advertises_execution_on_wire
The wire tool must advertise task execution so clients can opt in.
tests/tools/tool_transform/test_task_config.py:49
Methodtest_transformed_tool_filtered_without_token
Transformed tools with auth should be filtered without token.
tests/server/auth/test_authorization.py:886
Functiontest_transformed_tool_filtering
Test that tool transformations add tags that affect filtering.
tests/server/test_tool_transformation.py:34
Methodtest_transformed_tool_json_schema_generation
Verify TransformedTool.model_json_schema() works without errors.
tests/test_json_schema_generation.py:51
Functiontest_transformed_tool_matches_model
(data)
tests/pbt/test_tool_transform.py:214
Methodtest_transformed_tool_preserves_auth
Transformed tools should inherit auth from parent.
tests/server/auth/test_authorization.py:863
Functiontest_transformed_tool_required_order_is_deterministic
`required` must follow property order, not set iteration order. Set iteration order varies with PYTHONHASHSEED, which broke snapshot tests of
tests/tools/tool_transform/test_tool_transform.py:51
Functiontest_transformed_tool_structured_output_without_annotation
Test that transformed tools generate structured output when original tool has no return annotation. Ref: https://github.com/PrefectHQ/fastmcp/iss
tests/server/test_tool_transformation.py:61
Methodtest_transformed_tool_visible_with_token
Transformed tools with auth should be visible with token.
tests/server/auth/test_authorization.py:905
Methodtest_transforming_single_server_wrapper_is_legacy_only
A single-server config that uses tool transforms or tag filters wraps a legacy-pinned proxy; the wrapper transport must advertise legacy-only
tests/test_mcp_config.py:158
Methodtest_transforms_client_auth_failure_to_invalid_client_401
Test that client authentication failures return invalid_client with 401.
tests/server/auth/oauth_proxy/test_tokens.py:478
Methodtest_transforms_invalid_grant_to_401
Test that invalid_grant errors return 401 per MCP spec. Per MCP spec: "Invalid or expired tokens MUST receive a HTTP 401 response." T
tests/server/auth/oauth_proxy/test_tokens.py:519
Functiontest_transient_non_json_response_recovers_without_retaining_body
( triage, monkeypatch )
tests/test_public_triage.py:273
Methodtest_transitive_dependencies_in_response_schemas
Transitive dependencies (A→B→C) must all be preserved in response schemas.
tests/utilities/openapi/test_transitive_references.py:60
Functiontest_transitive_references_use_root_context
(model: bool)
tests/utilities/json_schema_type/test_caching.py:85
Methodtest_transitive_refs_in_request_body_schemas
Transitive $refs in request body schemas must be preserved and converted.
tests/utilities/openapi/test_transitive_references.py:226
Methodtest_translate_scopes_from_idp_is_inverse_of_prefix
The new hook should be the exact inverse of _prefix_scopes_for_azure for any input the provider would have sent upstream.
tests/server/auth/providers/test_azure.py:1643
Methodtest_translates_arbitrary_challenge_scopes
(self)
tests/server/auth/providers/test_azure_scopes.py:527
Methodtest_transparent_refresh_drops_claims_when_none_extracted
If the refreshed response yields no claims, the stale copy is not served.
tests/server/auth/oauth_proxy/test_tokens.py:2034
Methodtest_transparent_refresh_on_expired_upstream
load_access_token refreshes upstream token when validation fails.
tests/server/auth/oauth_proxy/test_tokens.py:1739
Methodtest_transparent_refresh_re_extracts_upstream_claims
A transparent refresh re-extracts upstream_claims, like the refresh grant. The FastMCP JWT still embeds the claims from issuance; after the u
tests/server/auth/oauth_proxy/test_tokens.py:1991
Methodtest_transparent_refresh_triggered_by_threshold
Token within expiry threshold is treated as expired and refreshed.
tests/server/auth/oauth_proxy/test_tokens.py:2060
Methodtest_transparent_refresh_unprefixes_echoed_scopes
Transparent refresh stores client-facing scopes too. Otherwise the scope mismatch can reappear when an expired upstream token is refr
tests/server/auth/providers/test_azure.py:1594
Methodtest_transparent_refresh_updates_stored_token
After transparent refresh, the stored upstream token is updated.
tests/server/auth/oauth_proxy/test_tokens.py:1764
Methodtest_transport_default_is_stdio
(self)
tests/utilities/test_tests.py:25
Methodtest_transport_http_leaves_url_unchanged
(self)
tests/cli/test_client_commands.py:477
Methodtest_transport_in_tool_via_client
Test that transport is accessible from within a tool via Client.
tests/server/test_context.py:461
Functiontest_transport_repr_includes_server_name
()
tests/client/transports/test_memory_transport.py:17
Methodtest_transport_reset
Test that transport resets correctly.
tests/server/test_context.py:449
Methodtest_transport_returns_none_outside_server_context
Test that transport returns None when not in a server context.
tests/server/test_context.py:421
Methodtest_transport_returns_sse
Test that transport returns 'sse' when set.
tests/server/test_context.py:433
Methodtest_transport_returns_stdio
Test that transport returns 'stdio' when set.
tests/server/test_context.py:425
Methodtest_transport_returns_streamable_http
Test that transport returns 'streamable-http' when set.
tests/server/test_context.py:441
Methodtest_transport_set_manually_is_visible_in_tool
Test that manually set transport is visible from within a tool.
tests/server/test_context.py:481
Methodtest_transport_set_via_http_middleware
Test that transport is set per-request via HTTP middleware.
tests/server/test_context.py:504
Methodtest_transport_setting_can_be_changed
(self)
tests/utilities/test_tests.py:28
Methodtest_transport_sse_no_duplicate_suffix
(self)
tests/cli/test_client_commands.py:467
Methodtest_transport_sse_rewrites_url
(self)
tests/cli/test_client_commands.py:462
Methodtest_transport_sse_trailing_slash
(self)
tests/cli/test_client_commands.py:472
Methodtest_transport_summary_remote
(self)
tests/cli/test_discovery.py:85
Methodtest_transport_summary_remote_sse
(self)
tests/cli/test_discovery.py:94
Methodtest_transport_summary_stdio
(self)
tests/cli/test_discovery.py:76
Functiontest_transport_values_accepted
Test that all valid transport values are accepted.
tests/cli/test_mcp_server_config_schema.py:169
← previousnext →15,201–15,300 of 16,224, ranked by callers