Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Method
test_introspection_failure_rejects_when_scopes_required
When introspection fails (non-200), token is rejected regardless of scopes.
tests/server/auth/providers/test_clerk.py:353
Method
test_introspection_failure_rejects_without_required_scopes
Introspection failure (non-200) rejects the token even without required_scopes.
tests/server/auth/providers/test_clerk.py:548
Method
test_introspection_inactive_token_returns_none
Token marked inactive by introspection is rejected before userinfo.
tests/server/auth/providers/test_clerk.py:317
Method
test_introspection_missing_active_field_returns_none
RFC 7662 requires the 'active' field; a missing field is malformed and rejected.
tests/server/auth/providers/test_clerk.py:335
Method
test_introspection_sends_client_credentials
Introspection request sends credentials via HTTP Basic Auth when both are set.
tests/server/auth/providers/test_clerk.py:421
Function
test_invalid_access_token_is_not_revoked
( proxy: OAuthProxy, jwt_verifier, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_revocation.py:193
Method
test_invalid_arg_format_exits
(self)
tests/cli/test_client_commands.py:275
Method
test_invalid_audience_rejection
Test rejection of tokens with invalid audience.
tests/server/auth/test_jwt_provider_bearer.py:179
Function
test_invalid_backend_client_negotiation_is_not_ignored
()
tests/server/providers/proxy/test_server_metadata.py:356
Method
test_invalid_boolean_value_raises_error
Test that nonsense boolean values like 'banana' raise ValueError.
tests/resources/test_resource_template_query_params.py:281
Method
test_invalid_boolean_value_raises_error
( self, postponed_get_config, value: str )
tests/resources/test_resource_template_query_params.py:352
Method
test_invalid_boolean_value_raises_error
(self, config_reader, value: str)
tests/resources/test_resource_template_query_params.py:397
Method
test_invalid_cache_timestamp_is_ignored
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, timestamp: object )
tests/utilities/test_version_check.py:77
Function
test_invalid_catalogs
(skills: object, message: str)
tests/skills/test_provider.py:188
Method
test_invalid_cimd_url_rejected
CIMD URLs must be HTTPS with a non-root path.
tests/client/auth/test_oauth_cimd.py:55
Function
test_invalid_clone_rejected_without_rebinding_source
(invalid_clone: str)
tests/server/test_provider_extensions.py:538
Method
test_invalid_coercion_still_fails
Even without strict validation, truly invalid inputs should fail.
tests/server/test_input_validation.py:138
Method
test_invalid_content_is_an_error
(self, content: dict[str, Any])
tests/client/test_elicitation.py:828
Method
test_invalid_cursor_raises
Invalid cursor should raise ValueError.
tests/server/test_pagination.py:119
Method
test_invalid_cursor_returns_error
Server should return MCP error for invalid cursor.
tests/server/test_pagination.py:330
Method
test_invalid_defaults_only_apply_to_omitted_fields
( self, additional_properties: bool | None )
tests/utilities/json_schema_type/test_advanced.py:32
Function
test_invalid_folders_stop_startup_with_a_fix_for_each
(tmp_path: Path)
tests/skills/test_directory_provider.py:62
Function
test_invalid_generator_arguments_do_not_enter_dependency
()
tests/server/test_generator_dependency_lifetime.py:116
Method
test_invalid_grant_is_sanitized
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:421
Function
test_invalid_identifier_rejected_at_class_definition
()
tests/server/test_extensions.py:513
Method
test_invalid_input_json_exits
(self)
tests/cli/test_client_commands.py:279
Method
test_invalid_issuer_rejection
Test rejection of tokens with invalid issuer.
tests/server/auth/test_jwt_provider_bearer.py:166
Method
test_invalid_json
(self, tmp_path: Path)
tests/cli/test_discovery.py:125
Method
test_invalid_jwt_format
Test that invalid format raises ValueError.
tests/utilities/test_auth.py:115
Method
test_invalid_jwt_format_four_parts
Test that four-part token raises ValueError.
tests/utilities/test_auth.py:58
Method
test_invalid_jwt_format_one_part
Test that single-part token raises ValueError.
tests/utilities/test_auth.py:53
Method
test_invalid_jwt_format_two_parts
Test that two-part token raises ValueError.
tests/utilities/test_auth.py:48
Function
test_invalid_local_keeps_valid_user
(claude_project)
tests/cli/test_claude_code_precedence.py:95
Method
test_invalid_log_level_rejected
Test that invalid log level values are rejected.
tests/cli/test_mcp_server_config_integration.py:263
Method
test_invalid_manifest_responses_raise_value_error
( self, response: list[TextResourceContents | BlobResourceContents], match: str, )
tests/utilities/test_skills.py:246
Method
test_invalid_max_size_raises
Test that zero or negative max_size raises ValueError.
tests/server/middleware/test_response_limiting.py:165
Function
test_invalid_oauth_key_is_a_cli_error
( command: str, monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture
tests/cli/test_client_commands.py:715
Method
test_invalid_params_mapping
Not-found, disabled, and validation errors map to INVALID_PARAMS. SEP-2164 defines a request naming a nonexistent (or disabled) component
tests/test_exceptions.py:27
Function
test_invalid_provider_credentials_are_rejected
( redis_backend: Redis, free_port: int, tmp_path: Path, )
tests/integration_tests/test_task_credentials.py:150
Method
test_invalid_recursive_defaults_are_preserved
(self, default: Any)
tests/utilities/json_schema_type/test_advanced.py:109
Function
test_invalid_responses_do_not_include_response_bodies
()
tests/cli/deploy/test_horizon_client.py:233
Method
test_invalid_roots
Roots must be URIs
tests/client/test_roots.py:29
Method
test_invalid_server_does_not_hide_valid_servers
( self, tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/cli/test_discovery.py:143
Method
test_invalid_shell_syntax_exits
(self)
tests/cli/test_client_commands.py:525
Method
test_invalid_signature_rejection
Test rejection of tokens with invalid signatures.
tests/server/auth/test_jwt_provider_bearer.py:419
Function
test_invalid_targets_are_rejected_without_device_commands
( configured_fire_tv, tool: str, arguments: dict[str, str], message: str, )
examples/smart_home/tests/test_fire_tv.py:216
Function
test_invalid_task_arguments_reject_at_submission
()
tests/tasks/server/test_extension.py:243
Method
test_invalid_token_enhanced_error_message
Test that invalid_token errors have enhanced error messages.
tests/server/auth/test_enhanced_error_responses.py:877
Method
test_invalid_token_raises_401
(self, mcp_server_url: str)
tests/server/auth/test_jwt_provider_bearer.py:527
Method
test_invalid_token_returns_none
Token marked inactive by introspection is rejected.
tests/server/auth/providers/test_clerk.py:289
Method
test_invalid_token_returns_none
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:203
Method
test_invalid_token_www_authenticate_header_format
Test that invalid token WWW-Authenticate header includes error attribute.
tests/server/auth/test_enhanced_error_responses.py:907
Method
test_invalid_transport
Test loading config with invalid transport value.
tests/cli/test_config.py:440
Method
test_invalid_transport_rejected
Test that invalid transport values are rejected.
tests/cli/test_mcp_server_config_integration.py:247
Method
test_invalid_type_raises_type_error
(self)
tests/utilities/test_timeout.py:31
Method
test_invalid_type_raises_type_error
(self)
tests/utilities/test_timeout.py:48
Method
test_invalid_typed_extra_is_rejected_before_hydration
(self)
tests/client/test_result_hydration.py:115
Method
test_invalid_typed_extra_leaves_parser_data_unset
(self)
tests/client/client/test_error_handling.py:28
Function
test_invalid_upstream_discovery_metadata_is_ignored
( monkeypatch: pytest.MonkeyPatch, )
tests/server/providers/proxy/test_server_metadata.py:334
Method
test_invalid_url_format
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:155
Method
test_invalid_urls
At this time, root URIs must start with file://
tests/client/test_roots.py:38
Method
test_invalid_value_is_rejected
(self)
tests/server/http/test_sse_host_origin_protection.py:213
Method
test_ipv4_mapped_ipv6_blocked_if_private
IPv4-mapped IPv6 addresses should check the embedded IPv4.
tests/server/auth/test_ssrf_protection.py:89
Method
test_ipv6_loopback_no_port_matches_any_port
Pattern http://[::1]/callback should match any port on [::1].
tests/server/auth/test_redirect_validation.py:580
Method
test_ipv6_pinned_url_is_valid
Verify IPv6 addresses are properly bracketed in pinned URLs.
tests/server/auth/test_ssrf_protection.py:479
Method
test_ipv6_transition_allowed_if_embedded_ipv4_allowed
IPv6 transition addresses should allow public embedded IPv4.
tests/server/auth/test_ssrf_protection.py:132
Method
test_ipv6_transition_blocked_if_embedded_ipv4_blocked
IPv6 transition addresses should check the embedded IPv4.
tests/server/auth/test_ssrf_protection.py:119
Method
test_ipv6_transition_private_ip_rejected
URLs resolving to IPv6-wrapped private IPs should be rejected.
tests/server/auth/test_ssrf_protection.py:198
Method
test_is_allowed_failure
Test rejecting requests over limit.
tests/server/middleware/test_rate_limiting.py:154
Method
test_is_allowed_success
Test allowing requests within limit.
tests/server/middleware/test_rate_limiting.py:145
Method
test_is_background_task_has_docstring
is_background_task property should have documentation.
tests/tasks/server/test_context_background_task.py:314
Method
test_is_cimd_client_id_disabled
Test CIMD URL detection when disabled.
tests/server/auth/test_cimd_validators.py:496
Method
test_is_cimd_client_id_enabled
Test CIMD URL detection when enabled.
tests/server/auth/test_cimd_validators.py:491
Method
test_is_cimd_client_id_rejects_http
Test is_cimd_client_id rejects HTTP URLs.
tests/server/auth/test_cimd.py:172
Method
test_is_cimd_client_id_rejects_non_url
Test is_cimd_client_id rejects non-URL strings.
tests/server/auth/test_cimd.py:181
Method
test_is_cimd_client_id_rejects_root_path
Test is_cimd_client_id rejects URLs with no path.
tests/server/auth/test_cimd.py:176
Method
test_is_cimd_client_id_valid_urls
Test is_cimd_client_id accepts valid CIMD URLs.
tests/server/auth/test_cimd.py:166
Method
test_is_docket_available
Test is_docket_available returns True when docket is installed.
tests/server/test_dependencies.py:758
Method
test_is_docket_available_false_when_import_broken
Metadata says installed but ``import docket`` fails — treat as unavailable. Catches the broken/partial-install case where ``importlib.metadat
tests/server/test_dependencies.py:808
Method
test_is_docket_available_false_when_pydocket_not_installed
``is_docket_available()`` returns False when pydocket is absent.
tests/server/test_dependencies.py:790
Method
test_is_docket_available_false_when_pydocket_too_old
``is_docket_available()`` must treat pre-0.19.0 pydocket as unavailable. Older pydocket versions (e.g. 0.16.x, pulled in transitively by
tests/server/test_dependencies.py:764
Method
test_is_opaque_to_scope_shortfall
Roles cannot be requested via OAuth, so they yield no step-up.
tests/server/auth/test_authorization.py:169
Method
test_is_url_invalid
Test detection of non-URLs.
tests/cli/test_run.py:44
Method
test_is_url_valid_http
Test detection of valid HTTP URLs.
tests/cli/test_run.py:32
Method
test_is_url_valid_https
Test detection of valid HTTPS URLs.
tests/cli/test_run.py:38
Method
test_is_version_greater
Test is_version_greater function.
tests/server/versioning/test_versioning.py:81
Method
test_issue_1348_oauth_discovery_returns_correct_url
Test that RemoteAuthProvider correctly returns the full MCP endpoint URL. This test confirms that RemoteAuthProvider works correctly and retu
tests/server/auth/test_remote_auth_provider.py:444
Method
test_issue_2087_top_level_response_ref_includes_all_nested_schemas
Issue #2087: Top-level response $ref must include itself in response_schemas.
tests/utilities/openapi/test_transitive_references.py:790
Method
test_issue_3783_boolean_property_schemas
Regression test for GitHub issue #3783.
tests/utilities/json_schema_type/test_json_schema_type.py:166
Method
test_issue_5737_declared_default_hydrated_with_additional_properties
Defaults of declared fields hydrate like explicit values (#5737).
tests/utilities/json_schema_type/test_json_schema_type.py:186
Method
test_issue_access_token_creates_valid_jwt
Test that access token is a minimal JWT with correct structure.
tests/server/auth/test_jwt_issuer.py:81
Method
test_issue_access_token_with_upstream_claims
Test that upstream claims are included when provided.
tests/server/auth/test_jwt_issuer.py:233
Method
test_issue_access_token_without_upstream_claims
Test that upstream_claims is not present when not provided.
tests/server/auth/test_jwt_issuer.py:258
Method
test_issue_refresh_token_creates_valid_jwt
Test that refresh token is a minimal JWT with token_use claim.
tests/server/auth/test_jwt_issuer.py:125
Method
test_issue_refresh_token_with_upstream_claims
Test that refresh tokens also include upstream claims when provided.
tests/server/auth/test_jwt_issuer.py:270
Method
test_issued_token_carries_subject
( self, idp_key: RSAKeyPair, config: IdentityAssertion, httpx_mock: HTTPXMock,
tests/server/auth/oauth_proxy/test_identity_assertion.py:295
Method
test_issuer_defaults_to_base_url
(self)
tests/server/auth/test_issuer_url_identity.py:292
Function
test_issuer_is_recorded_on_static_client_info
()
tests/client/auth/test_oauth_static_client_issuer.py:65
Method
test_issuer_url_defaults_to_base_url
Test that issuer_url defaults to base_url when not provided.
tests/server/auth/providers/test_clerk.py:191
Method
test_issuers_are_scoped_to_the_configured_project
The verifier derives both issuer families from the project.
tests/server/auth/providers/test_descope.py:397
← previous
next →
10,601–10,700 of 15,974, ranked by callers