MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_prefix_scopes_does_not_prefix_oidc_scopes
Test that _prefix_scopes_for_azure never prefixes OIDC scopes.
tests/server/auth/providers/test_azure_scopes.py:45
Methodtest_prefix_scopes_dot_notation_gets_prefixed
Test that dot-notation scopes get prefixed (use additional_authorize_scopes for Graph).
tests/server/auth/providers/test_azure_scopes.py:93
Methodtest_prefix_scopes_fully_qualified_graph_not_prefixed
Test that fully-qualified Graph scopes are not prefixed.
tests/server/auth/providers/test_azure_scopes.py:114
Methodtest_prefix_scopes_mixed_oidc_and_custom
Test prefixing with a mix of OIDC and custom scopes.
tests/server/auth/providers/test_azure_scopes.py:67
Methodtest_prefixed_tool_callable_after_cache_hit
Prefixed tools should be callable after cache populates.
tests/server/middleware/test_caching.py:852
Methodtest_prepare_calls_both_methods
Test that prepare() calls both prepare_environment and prepare_source.
tests/cli/test_project_prepare.py:25
Methodtest_prepare_command_fails
Test that prepare() raises error when uv command fails.
tests/cli/test_project_prepare.py:176
Methodtest_prepare_no_environment_settings
Test that prepare() works with default empty environment config.
tests/cli/test_project_prepare.py:86
Methodtest_prepare_no_settings
Test that prepare() does nothing when no settings are configured.
tests/cli/test_project_prepare.py:115
Methodtest_prepare_no_uv_installed
Test that prepare() raises error when uv is not installed.
tests/cli/test_project_prepare.py:104
Methodtest_prepare_scopes_deduplicates_scopes
Test that duplicate scopes are deduplicated.
tests/server/auth/providers/test_azure_scopes.py:352
Methodtest_prepare_scopes_excludes_other_api_scopes
Test token exchange excludes other API scopes (Azure AADSTS28000). Azure only allows ONE resource per token exchange. Other API scopes
tests/server/auth/providers/test_azure_scopes.py:315
Methodtest_prepare_scopes_for_refresh_handles_oidc_scopes
Test that token refresh correctly handles OIDC scopes.
tests/server/auth/providers/test_azure_scopes.py:238
Methodtest_prepare_scopes_for_token_exchange_falls_back_to_required_scopes
Clients may omit scope; Azure still needs an API scope with offline_access.
tests/server/auth/providers/test_azure.py:448
Methodtest_prepare_scopes_for_upstream_refresh_already_prefixed
Test that already-prefixed scopes remain unchanged.
tests/server/auth/providers/test_azure.py:601
Methodtest_prepare_scopes_for_upstream_refresh_basic_prefixing
Test that unprefixed scopes are correctly prefixed for Azure token refresh.
tests/server/auth/providers/test_azure.py:578
Methodtest_prepare_scopes_for_upstream_refresh_deduplicates_prefixed_variants
Test that both prefixed and unprefixed variants are deduplicated.
tests/server/auth/providers/test_azure.py:824
Methodtest_prepare_scopes_for_upstream_refresh_deduplicates_scopes
Test that duplicate scopes are deduplicated while preserving order.
tests/server/auth/providers/test_azure.py:793
Methodtest_prepare_scopes_for_upstream_refresh_empty_scopes_falls_back_to_required
Clients may omit scope; refresh should still request the configured API scope.
tests/server/auth/providers/test_azure.py:746
Methodtest_prepare_scopes_for_upstream_refresh_filters_duplicate_additional_scopes
Test that accidentally stored additional_authorize_scopes are filtered out.
tests/server/auth/providers/test_azure.py:662
Methodtest_prepare_scopes_for_upstream_refresh_mixed_scopes
Test mixed scenario with both prefixed and unprefixed scopes.
tests/server/auth/providers/test_azure.py:693
Methodtest_prepare_scopes_for_upstream_refresh_no_additional_scopes
Test behavior when no additional_authorize_scopes are configured.
tests/server/auth/providers/test_azure.py:770
Methodtest_prepare_scopes_for_upstream_refresh_scope_with_slash
Test that scopes containing '/' are not prefixed.
tests/server/auth/providers/test_azure.py:721
Methodtest_prepare_scopes_for_upstream_refresh_with_additional_scopes
Test that only OIDC scopes from additional_authorize_scopes are added. Azure only allows ONE resource per token request (AADSTS28000), so
tests/server/auth/providers/test_azure.py:626
Methodtest_prepare_scopes_includes_additional_oidc_scopes
Test that _prepare_scopes_for_token_exchange includes OIDC scopes.
tests/server/auth/providers/test_azure_scopes.py:292
Methodtest_prepare_scopes_returns_prefixed_scopes
Test that _prepare_scopes_for_token_exchange returns prefixed scopes.
tests/server/auth/providers/test_azure_scopes.py:274
Methodtest_prepare_skip_source
Test that prepare() skips source when skip_source=True.
tests/cli/test_project_prepare.py:66
Methodtest_prepare_with_dependencies
Test that prepare() includes dependencies.
tests/cli/test_project_prepare.py:149
Methodtest_prepare_with_output_dir
Test that prepare() with output_dir calls prepare_environment with it.
tests/cli/test_project_prepare.py:45
Methodtest_prepare_with_python
Test that prepare() runs uv with python version.
tests/cli/test_project_prepare.py:128
Methodtest_prerelease_setting
Prerelease setting passes include_prereleases=True.
tests/utilities/test_version_check.py:304
Methodtest_present_bool_not_overwritten
(self)
tests/apps/test_form.py:208
Methodtest_preserve_existing_behavior_object_body
Test that existing object-based request bodies still work.
tests/utilities/openapi/test_direct_array_schemas.py:272
Methodtest_preserve_existing_behavior_ref_body
Test that $ref-based request bodies still work.
tests/utilities/openapi/test_direct_array_schemas.py:303
Methodtest_preserves_all_defs_for_nested_references
Test that $defs are preserved even if multiple definitions exist.
tests/utilities/test_json_schema.py:995
Methodtest_preserves_duplicates
Same server name in multiple sources should appear multiple times.
tests/cli/test_discovery.py:589
Methodtest_preserves_existing_tools
Transform preserves existing tools.
tests/server/transforms/test_resources_as_tools.py:38
Methodtest_preserves_existing_tools
Transform preserves existing tools.
tests/server/transforms/test_prompts_as_tools.py:35
Methodtest_preserves_file_content
( self, skills_server: FastMCP, tmp_path: Path, skills_dir: Path )
tests/utilities/test_skills.py:259
Methodtest_preserves_local_ref
(self)
tests/utilities/test_json_schema.py:1123
Methodtest_preserves_nested_siblings
Test that siblings on nested $refs are preserved.
tests/utilities/test_json_schema.py:257
Methodtest_preserves_other_fields
Test that other fields are preserved during conversion.
tests/utilities/openapi/test_nullable_fields.py:110
Methodtest_preserves_passthrough_exception
(self, failure: Exception)
tests/client/client/test_session.py:174
Methodtest_preserves_property_named_discriminator
A field *named* 'discriminator' inside properties must survive.
tests/utilities/test_json_schema.py:365
Methodtest_preserves_refs_by_default
Test that compress_schema preserves $refs by default.
tests/utilities/test_json_schema.py:467
Methodtest_preserves_return_annotation_in_signature
Test that return annotation is preserved in both annotations and signature.
tests/utilities/test_types.py:612
Methodtest_preserves_sibling_keywords
Test that sibling keywords (default, description) are preserved. Pydantic places description, default, examples as siblings to $ref.
tests/utilities/test_json_schema.py:201
Methodtest_preserves_siblings_in_lists
Test that siblings are preserved for $refs inside lists (allOf, anyOf, etc).
tests/utilities/test_json_schema.py:231
Methodtest_preserves_siblings_when_stripping
(self)
tests/utilities/test_json_schema.py:1139
Methodtest_preserves_underscores
(self)
tests/cli/test_generate_cli.py:208
Methodtest_preserves_valueless_param_and_non_utf8_bytes
(self)
tests/server/auth/test_redirect_validation.py:31
Methodtest_preserves_valueless_param_and_non_utf8_bytes_alongside_existing_iss
Exact end-to-end reproduction of the worked example from the P2 review comment: registered redirect_uri already has `iss`, a valueless
tests/server/auth/test_redirect_validation.py:158
Functiontest_previous_public_assessment_reused_without_credentials
( ranking_module, tmp_path )
tests/test_issue_ranking.py:192
Methodtest_primary_version_order_still_descending
(self)
tests/server/versioning/test_versioning.py:446
Methodtest_principal_is_the_isolation_wall
(self)
tests/server/test_sessions.py:72
Methodtest_principal_not_embedded_verbatim
(self)
tests/server/test_sessions.py:89
Methodtest_prior_discover_is_exposed
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:245
Methodtest_private_arguments
(self)
tests/tools/tool/test_tool.py:325
Methodtest_private_ip_blocked
Fetch to private IP should be blocked.
tests/server/auth/test_ssrf_protection.py:209
Methodtest_private_ip_rejected
URLs resolving to private IPs should be rejected.
tests/server/auth/test_ssrf_protection.py:177
Methodtest_private_ipv4_blocked
Private IPv4 addresses should be blocked.
tests/server/auth/test_ssrf_protection.py:67
Methodtest_private_key_jwt_auth_method_allowed
Test that private_key_jwt is allowed for CIMD.
tests/server/auth/test_cimd.py:54
Methodtest_private_scope_respected
(self)
tests/server/test_cache_hints.py:193
Methodtest_private_scope_roundtrips
(self)
tests/client/client/test_kv_response_cache.py:97
Methodtest_proactive_refresh_when_validated_but_within_threshold
Token that passes validation but is within threshold gets proactively refreshed.
tests/server/auth/oauth_proxy/test_tokens.py:1914
Methodtest_profile_data_fetched_from_userinfo
Profile data (name, picture, locale) comes from the v2 userinfo endpoint.
tests/server/auth/providers/test_google.py:554
Functiontest_progress_aenter_returns_fresh_instances
Progress.__aenter__ returns independent per-invocation objects, not the shared default.
tests/tasks/server/test_concurrent_dependencies.py:163
Methodtest_progress_forwards_through_modern_proxy
A backend tool's `ctx.report_progress()` reaches the caller's progress handler even when the proxy backend negotiates the modern era — the
tests/server/test_mrtr_guards.py:487
Functiontest_progress_handler
(fastmcp_server: FastMCP)
tests/client/test_progress.py:45
Functiontest_progress_handler_can_be_supplied_on_tool_call
(fastmcp_server: FastMCP)
tests/client/test_progress.py:52
Functiontest_progress_handler_supplied_on_tool_call_overrides_default
( fastmcp_server: FastMCP, )
tests/client/test_progress.py:59
Functiontest_progress_in_background_task
Progress dependency works inside a background task.
tests/tasks/server/test_progress_dependency.py:35
Functiontest_progress_in_immediate_execution
Progress dependency works when a tool runs synchronously.
tests/tasks/server/test_progress_dependency.py:19
Functiontest_progress_status_message_in_background_task
A working task surfaces the current progress message as statusMessage.
tests/tasks/server/test_progress_dependency.py:71
Functiontest_progress_tracks_multiple_increments
Progress correctly tracks multiple increment calls.
tests/tasks/server/test_progress_dependency.py:55
Methodtest_project_level_config
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:455
Methodtest_project_level_config_url_parsing
Test project-level well-known URLs without the agentic path segment.
tests/server/auth/providers/test_descope.py:80
Methodtest_project_level_metadata_failure_is_not_retried
Identical project-level primary and fallback URLs are fetched once.
tests/server/auth/providers/test_descope.py:217
Methodtest_project_option
Test --project option for all install commands.
tests/cli/test_install.py:446
Methodtest_project_prepare_auto_detect
Test project prepare with auto-detected config.
tests/cli/test_project_prepare.py:194
Methodtest_project_prepare_config_not_exists
Test project prepare when specified config doesn't exist.
tests/cli/test_project_prepare.py:267
Methodtest_project_prepare_explicit_path
Test project prepare with explicit config path.
tests/cli/test_project_prepare.py:225
Methodtest_project_prepare_failure
Test project prepare when prepare() fails.
tests/cli/test_project_prepare.py:287
Methodtest_project_prepare_no_config_found
Test project prepare when no config is found.
tests/cli/test_project_prepare.py:248
Methodtest_project_servers
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:309
Methodtest_project_url_normalization
Test that project_url handles trailing slashes correctly.
tests/server/auth/providers/test_supabase.py:38
Functiontest_prompt
()
tests/contrib/test_component_manager.py:651
Functiontest_prompt
(x: str)
tests/server/middleware/test_middleware_nested.py:141
Functiontest_prompt
(x: str)
tests/server/middleware/test_middleware.py:139
Functiontest_prompt
A prompt that takes time to generate.
tests/server/middleware/test_timing.py:173
Functiontest_prompt
A test prompt for logging.
tests/server/middleware/test_logging.py:429
Methodtest_prompt
Test prompt for tool management routes.
tests/contrib/test_component_manager.py:46
Methodtest_prompt
Test prompt for auth testing.
tests/contrib/test_component_manager.py:226
Methodtest_prompt
()
tests/contrib/test_component_manager.py:430
Methodtest_prompt
()
tests/contrib/test_component_manager.py:509
Methodtest_prompt
Test prompt.
tests/utilities/test_inspect_icons.py:411
Methodtest_prompt
()
tests/utilities/test_inspect.py:252
Methodtest_prompt
(self)
tests/server/middleware/test_caching_guards.py:96
Methodtest_prompt
(x: str)
tests/server/middleware/test_middleware_nested.py:193
Methodtest_prompt
A test prompt for logging.
tests/server/middleware/test_logging.py:467
← previousnext →10,401–10,500 of 13,374, ranked by callers