MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

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
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
Methodtest_traversal_read_gets_clean_not_found
A traversal attempt over the wire surfaces a non-leaky error. `resource://..` survives `AnyUrl` normalisation (the `..` sits in the a
tests/resources/test_resource_security.py:340
Methodtest_traversal_rejected_by_default
(self, server: FastMCP, uri: str)
tests/resources/test_resource_security.py:215
Methodtest_traversal_segments_rejected
(self)
tests/server/auth/test_redirect_validation.py:508
Methodtest_trivial_noop
Temporary probe: does merely adding a 7th test destabilize the run?
tests/server/middleware/test_message_visibility.py:434
Methodtest_true_property_schema_accepts_any_value
A property with schema `true` should accept any value.
tests/utilities/json_schema_type/test_json_schema_type.py:119
Functiontest_truncated_collection_fails_without_publishing
(backlog, tmp_path, monkeypatch)
tests/test_backlog_status.py:112
Functiontest_truncated_metadata_fails_visibly
( monkeypatch: pytest.MonkeyPatch, connection: str )
tests/scripts/test_release_contributor_credit.py:162
Functiontest_truncated_pr_commit_metadata_fails_visibly
( monkeypatch: pytest.MonkeyPatch, nested: bool )
tests/scripts/test_release_contributor_credit.py:269
Methodtest_truncation_does_not_break_output_schema_tools
Truncating a tool with outputSchema must not cause client validation errors. Regression test for #4926: an end-to-end client rejects truncate
tests/server/middleware/test_response_limiting.py:172
Methodtest_truncation_preserves_is_error
Truncating an error result keeps it an error.
tests/server/middleware/test_response_limiting.py:53
Methodtest_tspicer_reported_case_profile_with_nested_refs
Test the specific case reported by tspicer with Profile->countryCode->AccountInfo.
tests/utilities/openapi/test_transitive_references.py:175
Functiontest_ttl_returned_after_completion
ttlMs is present in tasks/get after the task completes.
tests/tasks/server/test_task_ttl.py:55
Functiontest_ttl_returned_while_working
ttlMs is present in the create result and in tasks/get while working.
tests/tasks/server/test_task_ttl.py:44
Methodtest_ttl_used_when_no_token_expiry
(self)
tests/utilities/test_token_cache.py:151
Methodtest_ttl_uses_max_when_refresh_shorter_than_access
TTL should use access token expiry when refresh is shorter. This is the xsreality case: Keycloak returns refresh_expires_in=120 (2 min)
tests/server/auth/oauth_proxy/test_tokens.py:1391
Methodtest_ttl_uses_refresh_when_refresh_longer_than_access
TTL should use refresh token expiry when refresh is longer. This is the ianw case: IdP returns expires_in=300 (5 min) but refresh_exp
tests/server/auth/oauth_proxy/test_tokens.py:1471
Functiontest_tty_device_challenge_uses_the_sign_in_layout
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:49
Functiontest_tty_environment_logout_explains_that_no_action_was_taken
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:121
Functiontest_tty_identity_uses_an_account_panel
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:80
Functiontest_tty_login_survives_browser_open_failure
( use_horizon_api: Callable[[HorizonAuthAPI], None], capsys: pytest.CaptureFixture[str], monkeypat
tests/cli/deploy/test_command.py:230
Functiontest_tty_logout_uses_the_horizon_header
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:147
Methodtest_tuple_converts_to_set
Test that a tuple converts to a set.
tests/utilities/test_components.py:40
Methodtest_two_apps_no_collision
Two apps with the same tool name are disambiguated.
tests/test_fastmcp_app.py:356
Methodtest_two_apps_same_tool_name_routed_by_address
Two FastMCPApps each with a `save` tool live at distinct addresses, so they hash differently and the dispatcher routes each call to th
tests/test_fastmcp_app.py:572
Methodtest_two_clients_same_key_isolated_by_session
Test that two different clients can store the same key independently. Each client gets an auto-generated session ID, and their state is isola
tests/server/test_context.py:197
Methodtest_two_pads
(self)
tests/apps/test_file_upload.py:32
Methodtest_two_partitions_do_not_bleed
Entries written under different CacheKey.partition arms never collide.
tests/client/client/test_kv_response_cache.py:112
Methodtest_two_principals_get_isolated_buckets
(self)
tests/server/test_session_provider.py:147
Methodtest_two_principals_same_id_are_isolated
(self)
tests/server/test_session_provider.py:456
Methodtest_two_question_loop_completes
Two dependent asks complete over the in-memory transport; the client's elicitation handler answers both rounds.
tests/server/test_mrtr_guards.py:322
Methodtest_two_question_loop_over_http
The full guard loop completes over Streamable HTTP with mode='auto'.
tests/server/test_mrtr_guards.py:1208
Methodtest_two_tools_share_uri
(self)
tests/server/providers/test_prefab_synthesis.py:182
Functiontest_type_alias_carries_the_dependency
()
tests/server/test_annotated_dependencies.py:35
Methodtest_type_conversion_error_handling
Test that informative errors are raised for invalid type conversions.
tests/prompts/test_prompt.py:318
Methodtest_type_normalized_to_transport
Claude Code uses ``type: sse`` — verify it becomes ``transport``.
tests/cli/test_discovery.py:388
Methodtest_typed_annotation_rejects_non_finite
(self)
tests/tools/tool/test_nonfinite_serialization.py:133
Methodtest_typed_dataclass_container_uses_declared_adapter
A typed container preserves its dataclass's alias configuration.
tests/tools/tool/test_results.py:450
Functiontest_typed_extra_fields_are_preserved_and_hydrated
( extra_schema: dict[str, Any], value: Any, expected: Any )
tests/utilities/json_schema_type/test_typed_extra_fields.py:19
← previousnext →15,001–15,100 of 15,974, ranked by callers