MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

Methodtest_invalid_log_level_rejected
Test that invalid log level values are rejected.
tests/cli/test_mcp_server_config_integration.py:263
Methodtest_invalid_manifest_responses_raise_value_error
( self, response: list[TextResourceContents | BlobResourceContents], match: str, )
tests/utilities/test_skills.py:246
Methodtest_invalid_max_size_raises
Test that zero or negative max_size raises ValueError.
tests/server/middleware/test_response_limiting.py:165
Functiontest_invalid_oauth_key_is_a_cli_error
( command: str, monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture
tests/cli/test_client_commands.py:716
Methodtest_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
Functiontest_invalid_provider_credentials_are_rejected
( redis_backend: Redis, free_port: int, tmp_path: Path, )
tests/integration_tests/test_task_credentials.py:150
Methodtest_invalid_recursive_defaults_are_preserved
(self, default: Any)
tests/utilities/json_schema_type/test_advanced.py:185
Functiontest_invalid_responses_do_not_include_response_bodies
()
tests/cli/deploy/test_horizon_client.py:233
Methodtest_invalid_roots
Roots must be URIs
tests/client/test_roots.py:29
Methodtest_invalid_server_does_not_hide_valid_servers
( self, tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/cli/test_discovery.py:143
Methodtest_invalid_shell_syntax_exits
(self)
tests/cli/test_client_commands.py:526
Methodtest_invalid_signature_rejection
Test rejection of tokens with invalid signatures.
tests/server/auth/test_jwt_provider_bearer.py:419
Functiontest_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:230
Functiontest_invalid_task_arguments_reject_at_submission
()
tests/tasks/server/test_extension.py:243
Methodtest_invalid_token_enhanced_error_message
Test that invalid_token errors have enhanced error messages.
tests/server/auth/test_enhanced_error_responses.py:905
Methodtest_invalid_token_raises_401
(self, mcp_server_url: str)
tests/server/auth/test_jwt_provider_bearer.py:527
Methodtest_invalid_token_returns_none
Token marked inactive by introspection is rejected.
tests/server/auth/providers/test_clerk.py:289
Methodtest_invalid_token_returns_none
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:203
Methodtest_invalid_token_www_authenticate_header_format
Test that invalid token WWW-Authenticate header includes error attribute.
tests/server/auth/test_enhanced_error_responses.py:935
Methodtest_invalid_transport
Test loading config with invalid transport value.
tests/cli/test_config.py:440
Methodtest_invalid_transport_rejected
Test that invalid transport values are rejected.
tests/cli/test_mcp_server_config_integration.py:247
Methodtest_invalid_type_raises_type_error
(self)
tests/utilities/test_timeout.py:31
Methodtest_invalid_type_raises_type_error
(self)
tests/utilities/test_timeout.py:48
Methodtest_invalid_typed_extra_is_rejected_before_hydration
(self)
tests/client/test_result_hydration.py:115
Methodtest_invalid_typed_extra_leaves_parser_data_unset
(self)
tests/client/client/test_error_handling.py:28
Functiontest_invalid_upstream_discovery_metadata_is_ignored
( monkeypatch: pytest.MonkeyPatch, )
tests/server/providers/proxy/test_server_metadata.py:334
Methodtest_invalid_url_format
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:155
Methodtest_invalid_urls
At this time, root URIs must start with file://
tests/client/test_roots.py:38
Methodtest_invalid_value_is_rejected
(self)
tests/server/http/test_sse_host_origin_protection.py:213
Methodtest_ipv4_mapped_ipv6_blocked_if_private
IPv4-mapped IPv6 addresses should check the embedded IPv4.
tests/server/auth/test_ssrf_protection.py:89
Methodtest_ipv6_loopback_no_port_matches_any_port
Pattern http://[::1]/callback should match any port on [::1].
tests/server/auth/test_redirect_validation.py:744
Methodtest_ipv6_pinned_url_is_valid
Verify IPv6 addresses are properly bracketed in pinned URLs.
tests/server/auth/test_ssrf_protection.py:499
Methodtest_ipv6_transition_allowed_if_embedded_ipv4_allowed
IPv6 transition addresses should allow public embedded IPv4.
tests/server/auth/test_ssrf_protection.py:132
Methodtest_ipv6_transition_blocked_if_embedded_ipv4_blocked
IPv6 transition addresses should check the embedded IPv4.
tests/server/auth/test_ssrf_protection.py:119
Methodtest_ipv6_transition_private_ip_rejected
URLs resolving to IPv6-wrapped private IPs should be rejected.
tests/server/auth/test_ssrf_protection.py:218
Methodtest_is_allowed_failure
Test rejecting requests over limit.
tests/server/middleware/test_rate_limiting.py:154
Methodtest_is_allowed_success
Test allowing requests within limit.
tests/server/middleware/test_rate_limiting.py:145
Methodtest_is_background_task_has_docstring
is_background_task property should have documentation.
tests/tasks/server/test_context_background_task.py:314
Methodtest_is_cimd_client_id_disabled
Test CIMD URL detection when disabled.
tests/server/auth/test_cimd_validators.py:497
Methodtest_is_cimd_client_id_enabled
Test CIMD URL detection when enabled.
tests/server/auth/test_cimd_validators.py:492
Methodtest_is_cimd_client_id_rejects_http
Test is_cimd_client_id rejects HTTP URLs.
tests/server/auth/test_cimd.py:172
Methodtest_is_cimd_client_id_rejects_non_url
Test is_cimd_client_id rejects non-URL strings.
tests/server/auth/test_cimd.py:181
Methodtest_is_cimd_client_id_rejects_root_path
Test is_cimd_client_id rejects URLs with no path.
tests/server/auth/test_cimd.py:176
Methodtest_is_cimd_client_id_valid_urls
Test is_cimd_client_id accepts valid CIMD URLs.
tests/server/auth/test_cimd.py:166
Methodtest_is_docket_available
Test is_docket_available returns True when docket is installed.
tests/server/test_dependencies.py:758
Methodtest_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
Methodtest_is_docket_available_false_when_pydocket_not_installed
``is_docket_available()`` returns False when pydocket is absent.
tests/server/test_dependencies.py:790
Methodtest_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
Methodtest_is_opaque_to_scope_shortfall
Roles cannot be requested via OAuth, so they yield no step-up.
tests/server/auth/test_authorization.py:169
Methodtest_is_url_invalid
Test detection of non-URLs.
tests/cli/test_run.py:44
Methodtest_is_url_valid_http
Test detection of valid HTTP URLs.
tests/cli/test_run.py:32
Methodtest_is_url_valid_https
Test detection of valid HTTPS URLs.
tests/cli/test_run.py:38
Methodtest_is_version_greater
Test is_version_greater function.
tests/server/versioning/test_versioning.py:81
Methodtest_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
Methodtest_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
Methodtest_issue_3783_boolean_property_schemas
Regression test for GitHub issue #3783.
tests/utilities/json_schema_type/test_json_schema_type.py:166
Methodtest_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
Methodtest_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
Methodtest_issue_access_token_with_upstream_claims
Test that upstream claims are included when provided.
tests/server/auth/test_jwt_issuer.py:233
Methodtest_issue_access_token_without_upstream_claims
Test that upstream_claims is not present when not provided.
tests/server/auth/test_jwt_issuer.py:258
Methodtest_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
Methodtest_issue_refresh_token_with_upstream_claims
Test that refresh tokens also include upstream claims when provided.
tests/server/auth/test_jwt_issuer.py:270
Methodtest_issued_token_carries_subject
( self, idp_key: RSAKeyPair, config: IdentityAssertion, httpx_mock: HTTPXMock,
tests/server/auth/oauth_proxy/test_identity_assertion.py:319
Methodtest_issuer_defaults_to_base_url
(self)
tests/server/auth/test_issuer_url_identity.py:292
Functiontest_issuer_is_recorded_on_static_client_info
()
tests/client/auth/test_oauth_static_client_issuer.py:65
Methodtest_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
Methodtest_issuers_are_scoped_to_the_configured_project
The verifier derives both issuer families from the project.
tests/server/auth/providers/test_descope.py:397
Methodtest_issuers_outside_the_project_are_rejected
Only issuers of the configured project, plus one ID segment, pass.
tests/server/auth/providers/test_descope.py:499
Functiontest_items_created_during_collection_are_accepted
(backlog)
tests/test_backlog_status.py:137
Functiontest_iterating_again_after_stopping_partway_yields_the_rest
( delivery: Delivery, )
tests/experimental/events/test_extension.py:263
Methodtest_js_file_builds_client_without_deprecation_warning
(self, tmp_path: Path)
tests/cli/test_client_commands.py:405
Functiontest_json_and_malformed_error_bodies_are_readable
( body: str, content_type: str, expected: str )
tests/server/providers/openapi/test_http_error_details_regression.py:70
Methodtest_json_body_still_works
application/json bodies should still be sent as JSON (regression).
tests/utilities/openapi/test_director.py:1451
Functiontest_json_device_challenge_uses_only_stderr
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:32
Functiontest_json_environment_logout_has_stable_fields
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:133
Functiontest_json_error_has_stable_fields
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:94
Methodtest_json_fastmcp_config_exits
(self, tmp_path: Path)
tests/cli/test_client_commands.py:424
Functiontest_json_identity_has_stable_fields
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:63
Methodtest_json_invalid
(self, json_format)
tests/utilities/json_schema_type/test_formats.py:124
Functiontest_json_login_reports_stable_device_failures
( token_error: str, category: str, use_horizon_api: Callable[[HorizonAuthAPI], None], capsys:
tests/cli/deploy/test_command.py:384
Functiontest_json_login_writes_one_result_and_challenge_to_stderr
( use_horizon_api: Callable[[HorizonAuthAPI], None], capsys: pytest.CaptureFixture[str], monkeypat
tests/cli/deploy/test_command.py:146
Functiontest_json_logout_has_stable_fields
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:157
Methodtest_json_mcp_config
(self, tmp_path: Path)
tests/cli/test_client_commands.py:416
Methodtest_json_native_return_matches_concrete_resource
A dict return behaves the same for templates and concrete resources.
tests/resources/test_resource_template.py:1626
Methodtest_json_native_return_preserves_component_meta
JSON-native returns should propagate component-level meta to content.
tests/resources/test_resources.py:362
Methodtest_json_not_found_exits
(self, tmp_path: Path)
tests/cli/test_client_commands.py:430
Functiontest_json_object_body_serialization_is_unchanged
JSON request bodies keep using a JSON document, not form encoding.
tests/server/providers/openapi/test_object_request_bodies.py:384
Functiontest_json_parameters_do_not_collide_with_argument_dictionary
()
tests/cli/test_generate_cli_arguments.py:88
Methodtest_json_parsing_fallback
Test that JSON parsing falls back to direct validation when needed.
tests/prompts/test_prompt.py:335
Methodtest_json_patch_content_type_preserved
application/json-patch+json is sent as the Content-Type header.
tests/utilities/openapi/test_director.py:458
Methodtest_json_pointer_tilde_escape
~0 should unescape to ~ and ~1 should unescape to /.
tests/server/providers/local_provider_tools/test_output_schema.py:423
Methodtest_json_positional_ignored_when_input_json_set
When --input-json is already provided, a JSON positional arg is not special.
tests/cli/test_client_commands.py:294
Methodtest_json_response
JSON content type is correctly extracted.
tests/server/providers/openapi/test_openapi_features.py:435
Methodtest_json_round_trip_preserves_every_field
( self, sensitive_snapshot: TaskContextSnapshot )
tests/tasks/server/test_snapshot_encryption.py:166
Methodtest_json_rpc_errors_report_their_code
(self, meter_provider, reader)
tests/server/middleware/test_usage.py:313
Functiontest_json_success_preserves_unwrapped_data_next_to_bodiless_success
( payload: Any, schema: dict[str, Any], validate_output: bool )
tests/server/providers/openapi/test_bodiless_success_responses.py:151
Methodtest_json_success_responses
(self, invitation: ResponseInfo)
tests/utilities/openapi/test_schemas.py:761
Methodtest_json_valid
(self, json_format)
tests/utilities/json_schema_type/test_formats.py:119
Methodtest_json_value_is_accepted
(self, annotation, value, expected)
tests/server/test_input_validation.py:274
Methodtest_json_when_no_accept_header
Test that JSON is returned when no Accept header is provided.
tests/server/auth/test_enhanced_error_responses.py:1050
← previousnext →11,201–11,300 of 16,725, ranked by callers