Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Function
test_interceptor_tasks_the_requested_version_not_the_highest
A versioned tools/call tasks the version the caller asked for. Two versions share a name but differ in task mode: v1 is task-forbidden, v2 is
tests/tasks/server/test_task_config.py:57
Function
test_interceptors_nest_first_registered_outermost
Multiple interceptors nest with the first-registered extension outermost.
tests/server/test_extensions.py:286
Method
test_internal_metadata_stripped_by_get_meta
Internal metadata is stripped when calling get_meta().
tests/server/transforms/test_visibility.py:185
Function
test_internal_tasks_extension_present_without_user_extensions
Even with no user extensions, the tasks claim is auto-registered.
tests/client/test_client_extensions.py:154
Method
test_introspection_client_secret_as_secret_str
Test that SecretStr client_secret is unwrapped correctly.
tests/server/auth/providers/test_propelauth.py:83
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:313
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:508
Method
test_introspection_inactive_token_returns_none
Token marked inactive by introspection is rejected before userinfo.
tests/server/auth/providers/test_clerk.py:277
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:295
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:381
Method
test_invalid_arg_format_exits
(self)
tests/cli/test_client_commands.py:123
Method
test_invalid_audience_rejection
Test rejection of tokens with invalid audience.
tests/server/auth/test_jwt_provider_bearer.py:151
Function
test_invalid_backend_client_negotiation_is_not_ignored
()
tests/server/providers/proxy/test_server_metadata.py:353
Method
test_invalid_boolean_value_raises_error
Test that nonsense boolean values like 'banana' raise ValueError.
tests/resources/test_resource_template_query_params.py:279
Method
test_invalid_cache_timestamp_is_ignored
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, timestamp: object )
tests/utilities/test_version_check.py:77
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:123
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
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:127
Method
test_invalid_issuer_rejection
Test rejection of tokens with invalid issuer.
tests/server/auth/test_jwt_provider_bearer.py:138
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
Method
test_invalid_log_level_rejected
Test that invalid log level values are rejected.
tests/cli/test_mcp_server_config_integration.py:262
Method
test_invalid_manifest_responses_raise_value_error
( self, response: list[TextResourceContents | BlobResourceContents], match: str, )
tests/utilities/test_skills.py:220
Method
test_invalid_max_size_raises
Test that zero or negative max_size raises ValueError.
tests/server/middleware/test_response_limiting.py:152
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_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:336
Method
test_invalid_signature_rejection
Test rejection of tokens with invalid signatures.
tests/server/auth/test_jwt_provider_bearer.py:391
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:214
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:804
Method
test_invalid_token_raises_401
(self, mcp_server_url: str)
tests/server/auth/test_jwt_provider_bearer.py:499
Method
test_invalid_token_returns_none
Token marked inactive by introspection is rejected.
tests/server/auth/providers/test_clerk.py:249
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:834
Method
test_invalid_transport
Test loading config with invalid transport value.
tests/cli/test_config.py:389
Method
test_invalid_transport_rejected
Test that invalid transport values are rejected.
tests/cli/test_mcp_server_config_integration.py:246
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
Function
test_invalid_upstream_discovery_metadata_is_ignored
( monkeypatch: pytest.MonkeyPatch, )
tests/server/providers/proxy/test_server_metadata.py:331
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:87
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:520
Method
test_ipv6_pinned_url_is_valid
Verify IPv6 addresses are properly bracketed in pinned URLs.
tests/server/auth/test_ssrf_protection.py:456
Method
test_ipv6_transition_allowed_if_embedded_ipv4_allowed
IPv6 transition addresses should allow public embedded IPv4.
tests/server/auth/test_ssrf_protection.py:130
Method
test_ipv6_transition_blocked_if_embedded_ipv4_blocked
IPv6 transition addresses should check the embedded IPv4.
tests/server/auth/test_ssrf_protection.py:117
Method
test_ipv6_transition_private_ip_rejected
URLs resolving to IPv6-wrapped private IPs should be rejected.
tests/server/auth/test_ssrf_protection.py:196
Method
test_is_allowed_failure
Test rejecting requests over limit.
tests/server/middleware/test_rate_limiting.py:138
Method
test_is_allowed_success
Test allowing requests within limit.
tests/server/middleware/test_rate_limiting.py:129
Method
test_is_background_task_has_docstring
is_background_task property should have documentation.
tests/tasks/server/test_context_background_task.py:319
Method
test_is_cimd_client_id_disabled
Test CIMD URL detection when disabled.
tests/server/auth/test_cimd_validators.py:386
Method
test_is_cimd_client_id_enabled
Test CIMD URL detection when enabled.
tests/server/auth/test_cimd_validators.py:381
Method
test_is_cimd_client_id_rejects_http
Test is_cimd_client_id rejects HTTP URLs.
tests/server/auth/test_cimd.py:151
Method
test_is_cimd_client_id_rejects_non_url
Test is_cimd_client_id rejects non-URL strings.
tests/server/auth/test_cimd.py:160
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:155
Method
test_is_cimd_client_id_valid_urls
Test is_cimd_client_id accepts valid CIMD URLs.
tests/server/auth/test_cimd.py:145
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:152
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:442
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_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
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:172
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
Method
test_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
Method
test_json_body_still_works
application/json bodies should still be sent as JSON (regression).
tests/utilities/openapi/test_director.py:1442
Function
test_json_device_challenge_uses_only_stderr
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:32
Function
test_json_environment_logout_has_stable_fields
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:133
Function
test_json_error_has_stable_fields
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:94
Method
test_json_fastmcp_config_exits
(self, tmp_path: Path)
tests/cli/test_client_commands.py:260
Function
test_json_identity_has_stable_fields
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:63
Method
test_json_invalid
(self, json_format)
tests/utilities/json_schema_type/test_formats.py:103
Function
test_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
Function
test_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
Function
test_json_logout_has_stable_fields
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:157
Method
test_json_mcp_config
(self, tmp_path: Path)
tests/cli/test_client_commands.py:252
← previous
next →
8,901–9,000 of 13,374, ranked by callers