MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_url_returns_sse_transport
Test that URLs with /sse/ pattern return SSETransport.
tests/client/client/test_transport.py:46
Methodtest_url_returns_streamable_http_transport
Test that URLs without /sse/ pattern return StreamableHttpTransport.
tests/client/client/test_transport.py:67
Methodtest_url_string
(self)
tests/cli/test_generate_cli.py:119
Methodtest_url_takes_priority_over_name
URLs should be resolved before name lookup.
tests/cli/test_discovery.py:823
Methodtest_url_trailing_slash_handling
Test that URLs handle trailing slashes correctly.
tests/server/auth/providers/test_scalekit.py:75
Functiontest_user_extension_composes_with_internal_tasks_extension
A user extension is folded in beside the internal tasks extension.
tests/client/test_client_extensions.py:162
Functiontest_user_extension_may_override_internal_tasks_extension
A user extension declaring the tasks identifier wins; the internal one drops. Composition prefers the user's extension: rather than colliding on
tests/client/test_client_extensions.py:173
Methodtest_user_level_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:491
Functiontest_user_lifespan_still_works_with_docket
User-provided lifespan works correctly alongside Docket.
tests/server/test_server_docket.py:144
Methodtest_user_meta_survives_stripping
Only the internal namespace is removed; user meta is preserved.
tests/resources/test_resource_template.py:1713
Methodtest_user_metadata_preserved
User-provided metadata is not affected.
tests/server/transforms/test_visibility.py:198
Methodtest_user_session_needs_no_provider
A server using only `UserSession` requires no `SessionProvider` and lists no lifecycle tools.
tests/server/test_session_provider.py:221
Functiontest_user_session_state_persists_across_task_calls
`session: UserSession` resolves in a worker and shares state per principal. A `UserSession` parameter is injected the same way in a background ta
tests/tasks/server/test_task_dependencies.py:216
Methodtest_userinfo_bypass_blocked
Test that userinfo-style bypasses are blocked. Attack: http://localhost@evil.com/callback would match http://localhost:* with naive s
tests/server/auth/test_redirect_validation.py:442
Methodtest_userinfo_bypass_with_subdomain_pattern
Test userinfo bypass with subdomain wildcard patterns.
tests/server/auth/test_redirect_validation.py:461
Methodtest_uses_bearer_header_for_userinfo
verify_token sends the token as a Bearer header to userinfo.
tests/server/auth/providers/test_clerk.py:403
Methodtest_uses_bearer_header_not_query_param
verify_token keeps the access token out of the tokeninfo URL.
tests/server/auth/providers/test_google.py:481
Methodtest_uses_env_command_builder
Test that env_command_builder wraps the command.
tests/cli/test_run.py:965
Methodtest_uses_provided_client
When http_client is provided, it should be used for requests.
tests/server/auth/providers/test_http_client.py:42
Methodtest_uses_provided_client
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_http_client.py:216
Methodtest_uses_standard_keycloak_url_patterns
Test that provider uses Keycloak-specific URL patterns.
tests/server/auth/providers/test_keycloak.py:78
Methodtest_uses_upstream_token_response_scopes
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:88
Methodtest_utf8_truncation_preserves_characters
Test that UTF-8 truncation doesn't break multi-byte characters.
tests/server/middleware/test_response_limiting.py:196
Methodtest_uuid
(self)
tests/server/providers/local_provider_tools/test_local_provider_tools.py:74
Methodtest_uuid_invalid
(self, uuid_format)
tests/utilities/json_schema_type/test_formats.py:176
Methodtest_uuid_type
(self)
tests/server/providers/local_provider_tools/test_parameters.py:299
Methodtest_uuid_type_error
(self)
tests/server/providers/local_provider_tools/test_parameters.py:312
Methodtest_uuid_valid
(self, uuid_format)
tests/utilities/json_schema_type/test_formats.py:170
Functiontest_uv_transport
()
tests/client/transports/test_uv_transport.py:26
Functiontest_uv_transport_module
()
tests/client/transports/test_uv_transport.py:63
Functiontest_uvicorn_logging_custom_log_config_overrides_log_level_param
Tests log_config precedence if log_level is also passed to run_http_async.
tests/server/test_logging.py:129
Functiontest_uvicorn_logging_default_level
Tests that FastMCP passes log_level to uvicorn.Config if no log_config is given.
tests/server/test_logging.py:23
Functiontest_uvicorn_logging_with_custom_log_config
Tests that FastMCP passes log_config to uvicorn.Config and not log_level.
tests/server/test_logging.py:64
Methodtest_v_prefix_insensitive_both_directions
(self)
tests/server/versioning/test_versioning.py:102
Methodtest_v_prefix_normalized
Versions with 'v' prefix should compare correctly.
tests/server/versioning/test_mounting.py:77
Methodtest_v_prefix_stripped
Versions with 'v' prefix should be handled correctly.
tests/server/versioning/test_versioning.py:45
Functiontest_valid_argument_submits_under_strict_validation
A well-typed argument still submits fine when strict validation is on.
tests/tasks/server/test_task_tools.py:196
Methodtest_valid_assertion_with_inline_jwks
Test that valid JWT assertion passes validation (inline JWKS).
tests/server/auth/test_cimd_validators.py:160
Methodtest_valid_assertion_with_jwks_uri
Test that valid JWT assertion passes validation (jwks_uri).
tests/server/auth/test_cimd_validators.py:96
Methodtest_valid_burst_capacity_does_not_warn
(self, burst_capacity)
tests/server/middleware/test_rate_limiting.py:245
Methodtest_valid_cached_token_is_preserved
( self, provider_type, expires_in, monkeypatch )
tests/client/auth/test_client_credentials.py:959
Methodtest_valid_config
(self, tmp_path: Path)
tests/cli/test_discovery.py:110
Methodtest_valid_content_is_accepted
(self)
tests/client/test_elicitation.py:832
Methodtest_valid_es256_assertion_with_inline_jwks
An assertion signed with an EC key validates against an EC JWKS.
tests/server/auth/test_cimd_validators.py:381
Methodtest_valid_es256_assertion_with_jwks_uri
An assertion signed with an EC key validates against a fetched EC JWKS.
tests/server/auth/test_cimd_validators.py:399
Methodtest_valid_false_values
Test that all accepted falsy string values coerce to False.
tests/resources/test_resource_template_query_params.py:310
Methodtest_valid_full_document
Test that full document passes validation.
tests/server/auth/test_cimd.py:38
Methodtest_valid_http_methods
Test that all valid HTTP methods are accepted.
tests/utilities/openapi/test_models.py:291
Methodtest_valid_kwargs_still_work
(self)
tests/deprecated/test_settings.py:56
Methodtest_valid_log_levels
Test that all valid log levels are accepted.
tests/cli/test_mcp_server_config_integration.py:286
Methodtest_valid_minimal_document
Test that minimal valid document passes validation.
tests/server/auth/test_cimd.py:27
Methodtest_valid_modes_accepted
(self, fastmcp_server, mode)
tests/client/client/test_mode_negotiation.py:39
Methodtest_valid_names
(self, name: str)
tests/cli/test_install.py:621
Methodtest_valid_parameter_locations
Test that all valid parameter locations are accepted.
tests/utilities/openapi/test_models.py:56
Methodtest_valid_roots
(self, fastmcp_server: FastMCP, roots: list[str])
tests/client/test_roots.py:47
Methodtest_valid_scopes_defaults_to_required
Test that valid_scopes defaults to required_scopes when not provided.
tests/server/auth/providers/test_google.py:184
Methodtest_valid_scopes_defaults_to_required
When valid_scopes is omitted, the OAuthProxy falls back to required_scopes.
tests/server/auth/providers/test_workos.py:168
Methodtest_valid_scopes_defaults_to_required_scopes
Omitting valid_scopes falls back to required_scopes (existing behavior).
tests/server/auth/test_oidc_proxy.py:1023
Methodtest_valid_scopes_includes_oidc_scopes
Test that valid_scopes advertises OIDC scopes to clients.
tests/server/auth/providers/test_azure_scopes.py:215
Methodtest_valid_scopes_passed_through
Test that valid_scopes is passed to OAuthProxy.
tests/server/auth/providers/test_clerk.py:168
Methodtest_valid_scopes_passed_through
Test that valid_scopes is passed to OAuthProxy.
tests/server/auth/providers/test_google.py:162
Methodtest_valid_scopes_passed_through
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_huggingface.py:99
Methodtest_valid_scopes_passed_through
valid_scopes is forwarded to OAuthProxy and advertised via DCR.
tests/server/auth/providers/test_workos.py:145
Methodtest_valid_scopes_preserved_with_verify_id_token
verify_id_token restores required_scopes without clobbering valid_scopes.
tests/server/auth/test_oidc_proxy.py:1083
Methodtest_valid_scopes_widens_advertised_set
valid_scopes broadens the advertised/registerable set beyond required_scopes.
tests/server/auth/test_oidc_proxy.py:990
Methodtest_valid_scopes_with_custom_token_verifier
valid_scopes is allowed alongside a custom token_verifier (no error).
tests/server/auth/test_oidc_proxy.py:1047
Methodtest_valid_symmetric_token_validation
Test validation of a valid token signed with symmetric key.
tests/server/auth/test_jwt_provider.py:369
Methodtest_valid_token_basic
A valid token returns an AccessToken with user claims from userinfo.
tests/server/auth/providers/test_clerk.py:222
Methodtest_valid_token_openid_only
A token with only openid scope is accepted; client_id comes from 'sub'.
tests/server/auth/providers/test_google.py:265
Methodtest_valid_token_validation
Test validation of a valid token.
tests/server/auth/test_jwt_provider_bearer.py:106
Methodtest_valid_token_verification
Test successful token verification.
tests/server/auth/providers/test_introspection.py:116
Methodtest_valid_token_with_email_and_profile
A token with email+profile scope returns correct scopes and profile claims.
tests/server/auth/providers/test_google.py:291
Methodtest_valid_token_with_userinfo_scopes
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:123
Methodtest_valid_token_with_whoami_scopes
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:147
Methodtest_valid_tool_names_no_warnings
Valid tool names should not produce warnings.
tests/tools/tool/test_tool.py:603
Methodtest_valid_transport_values
Test that all valid transport values are accepted.
tests/cli/test_mcp_server_config_integration.py:276
Methodtest_valid_true_values
Test that all accepted truthy string values coerce to True.
tests/resources/test_resource_template_query_params.py:295
Methodtest_validate_mcp_config
Test creating a server from an MCPConfig file.
tests/cli/test_run.py:149
Methodtest_validate_output_false_allows_nonconforming_response
With validate_output=False, responses that don't match the spec succeed.
tests/server/providers/openapi/test_openapi_features.py:1307
Methodtest_validate_output_false_preserves_wrap_result_flag
validate_output=False preserves x-fastmcp-wrap-result for array responses.
tests/server/providers/openapi/test_openapi_features.py:1248
Methodtest_validate_output_false_uses_permissive_schema
validate_output=False replaces the schema with a permissive one.
tests/server/providers/openapi/test_openapi_features.py:1230
Methodtest_validate_output_false_wrapped_array_hydrates_data
validate_output=False still hydrates result.data for wrapped non-object responses. Regression test for https://github.com/PrefectHQ/fastmcp/i
tests/server/providers/openapi/test_openapi_features.py:1269
Methodtest_validate_output_false_wraps_non_dict_response
Non-dict responses are wrapped even when schema says object and validate_output=False.
tests/server/providers/openapi/test_openapi_features.py:1344
Methodtest_validate_output_true_preserves_extracted_schema
Default validate_output=True uses the real extracted schema.
tests/server/providers/openapi/test_openapi_features.py:1214
Methodtest_validate_redirect_uri_exact_match
Test redirect_uri validation with exact match.
tests/server/auth/test_cimd.py:188
Methodtest_validate_redirect_uri_loopback_no_port
RFC 8252 §7.3: loopback URI without port should match any port.
tests/server/auth/test_cimd.py:207
Methodtest_validate_redirect_uri_wildcard_match
Test redirect_uri validation with wildcard port.
tests/server/auth/test_cimd.py:197
Methodtest_validate_url_skips_resolution_and_blocklist
Proxy mode returns resolved_ips=[] without resolving or blocklisting, and carries the configured proxy URL for the fetch to use.
tests/server/auth/test_ssrf_protection.py:625
Methodtest_validate_url_still_enforces_require_path
Proxy mode keeps the require_path check (CIMD).
tests/server/auth/test_ssrf_protection.py:657
Methodtest_validate_url_still_rejects_http
Proxy mode keeps the HTTPS-only scheme check.
tests/server/auth/test_ssrf_protection.py:643
Methodtest_validate_url_still_rejects_missing_host
Proxy mode keeps the host check.
tests/server/auth/test_ssrf_protection.py:650
Methodtest_validates_short_form_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/providers/test_azure_scopes.py:428
Methodtest_validates_token_with_client_id_audience
Azure AD v2 tokens use the bare client_id GUID as audience.
tests/server/auth/providers/test_azure_scopes.py:449
Methodtest_validates_token_with_custom_identifier_uri_audience
Custom identifier_uri (e.g. Bicep deployments) accepted as audience.
tests/server/auth/providers/test_azure_scopes.py:472
Methodtest_validation_alias_preserves_type_coercion
(self)
tests/resources/test_resource_template.py:1403
Functiontest_validation_allows_enum_arrays
Test validation accepts arrays with enum items.
tests/client/test_elicitation_enums.py:440
Functiontest_validation_allows_enum_arrays_with_anyof
Test validation accepts arrays with anyOf enum pattern (SEP-1330 compliant).
tests/client/test_elicitation_enums.py:454
Methodtest_validation_error
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:199
Methodtest_validation_error_for_invalid_data
Test that validation errors are raised for invalid data.
tests/utilities/test_components.py:178
Methodtest_validation_error_logs_warning_without_traceback
(self, caplog)
tests/server/test_input_validation.py:605
← previousnext →15,301–15,400 of 15,974, ranked by callers