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
Method
test_json_native_return_matches_concrete_resource
A dict return behaves the same for templates and concrete resources.
tests/resources/test_resource_template.py:1390
Method
test_json_native_return_preserves_component_meta
JSON-native returns should propagate component-level meta to content.
tests/resources/test_resources.py:362
Method
test_json_not_found_exits
(self, tmp_path: Path)
tests/cli/test_client_commands.py:266
Method
test_json_parsing_fallback
Test that JSON parsing falls back to direct validation when needed.
tests/prompts/test_prompt.py:287
Method
test_json_patch_content_type_preserved
application/json-patch+json is sent as the Content-Type header.
tests/utilities/openapi/test_director.py:427
Method
test_json_pointer_tilde_escape
~0 should unescape to ~ and ~1 should unescape to /.
tests/server/providers/local_provider_tools/test_output_schema.py:388
Method
test_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:141
Method
test_json_response
JSON content type is correctly extracted.
tests/server/providers/openapi/test_openapi_features.py:434
Method
test_json_round_trip_preserves_every_field
( self, sensitive_snapshot: TaskContextSnapshot )
tests/tasks/server/test_snapshot_encryption.py:166
Method
test_json_valid
(self, json_format)
tests/utilities/json_schema_type/test_formats.py:98
Method
test_json_when_no_accept_header
Test that JSON is returned when no Accept header is provided.
tests/server/auth/test_enhanced_error_responses.py:949
Method
test_json_when_only_json_accepted
Test that JSON is returned when only application/json is accepted.
tests/server/auth/test_enhanced_error_responses.py:930
Function
test_json_whoami_does_not_start_device_authorization
( capsys: pytest.CaptureFixture[str], monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_command.py:362
Function
test_json_whoami_reports_a_failed_rejected_key_cleanup
( use_horizon_api: Callable[[HorizonAuthAPI], None], capsys: pytest.CaptureFixture[str], monkeypat
tests/cli/deploy/test_command.py:302
Method
test_jti_cache_does_not_grow_past_capacity
Rejected assertions do not remain in a full replay cache.
tests/server/auth/test_cimd_validators.py:303
Method
test_jti_cache_does_not_grow_past_capacity
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:762
Method
test_jwks_cgnat_blocked
JWKS fetch to RFC6598 CGNAT IP should be blocked.
tests/server/auth/test_ssrf_protection.py:396
Method
test_jwks_discovered_via_oidc
( self, idp_key: RSAKeyPair, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_identity_assertion.py:825
Method
test_jwks_fetch_uses_provided_client
When http_client is provided, JWKS fetches should use it.
tests/server/auth/providers/test_http_client.py:144
Method
test_jwks_ignores_other_algorithm_key_types_without_kid
Unrelated key types do not make a no-kid lookup ambiguous.
tests/server/auth/test_jwt_provider.py:797
Method
test_jwks_loopback_blocked
JWKS fetch to loopback should be blocked.
tests/server/auth/test_ssrf_protection.py:413
Method
test_jwks_private_ip_blocked
JWKS fetch to private IP should be blocked.
tests/server/auth/test_ssrf_protection.py:378
Method
test_jwks_skips_unusable_keys
An unusable key must not poison the whole key set - #4515.
tests/server/auth/test_jwt_provider.py:763
Method
test_jwks_token_validation
Test token validation using JWKS URI.
tests/server/auth/test_jwt_provider.py:733
Method
test_jwks_token_validation_with_invalid_key
( self, rsa_key_pair: RSAKeyPair, rsa_key_pair_2: RSAKeyPair, jwks_provider: J
tests/server/auth/test_jwt_provider.py:856
Method
test_jwks_token_validation_with_kid
( self, rsa_key_pair: RSAKeyPair, jwks_provider: JWTVerifier, mock_jwks_data:
tests/server/auth/test_jwt_provider.py:875
Method
test_jwks_token_validation_with_kid_and_no_kid_in_token
( self, rsa_key_pair: RSAKeyPair, jwks_provider: JWTVerifier, mock_jwks_data:
tests/server/auth/test_jwt_provider.py:896
Method
test_jwks_token_validation_with_kid_mismatch
( self, rsa_key_pair: RSAKeyPair, jwks_provider: JWTVerifier, mock_jwks_data:
tests/server/auth/test_jwt_provider.py:936
Method
test_jwks_token_validation_with_multiple_keys_and_no_kid_in_token
( self, rsa_key_pair: RSAKeyPair, jwks_provider: JWTVerifier, mock_jwks_data:
tests/server/auth/test_jwt_provider.py:956
Method
test_jwks_token_validation_with_no_kid_and_kid_in_jwks
( self, rsa_key_pair: RSAKeyPair, jwks_provider: JWTVerifier, mock_jwks_data:
tests/server/auth/test_jwt_provider.py:916
Method
test_jwks_with_only_unusable_keys_rejects_cleanly
If every key in the JWKS is unusable, verification fails cleanly (returns None) rather than crashing - #4515.
tests/server/auth/test_jwt_provider.py:823
Method
test_jwt_issuer_property_raises_if_not_initialized
Test that jwt_issuer property raises if set_mcp_path not called.
tests/server/auth/oauth_proxy/test_config.py:452
Method
test_jwt_verifier_configured_correctly
Test that JWT verifier is configured correctly.
tests/server/auth/providers/test_descope.py:364
Method
test_jwt_verifier_configured_correctly
Test that JWT verifier is configured correctly.
tests/server/auth/providers/test_supabase.py:54
Method
test_jwt_verifier_configured_correctly
Test that JWT verifier is configured correctly.
tests/server/auth/providers/test_scalekit.py:86
Method
test_jwt_verifier_requires_pyjwt
Test that JWTVerifier raises helpful error without PyJWT.
tests/server/auth/test_jwt_provider_bearer.py:571
Method
test_jwt_verifier_with_required_scopes
Test that JWT verifier respects required_scopes.
tests/server/auth/providers/test_supabase.py:70
Method
test_keep_alive_default_true
(self)
tests/client/test_stdio.py:241
Method
test_keep_alive_false_exit_scope_kills_server
(self, stdio_script)
tests/client/test_stdio.py:315
Method
test_keep_alive_false_recovers_after_subprocess_crash
When keep_alive=False, crash recovery works because disconnect() is always called.
tests/client/test_stdio.py:477
Method
test_keep_alive_false_starts_new_session_across_multiple_calls
( self, stdio_script )
tests/client/test_stdio.py:371
Method
test_keep_alive_maintains_session_across_multiple_calls
( self, stdio_script )
tests/client/test_stdio.py:252
Method
test_keep_alive_maintains_session_if_reentered
(self, stdio_script)
tests/client/test_stdio.py:405
Method
test_keep_alive_recovers_after_subprocess_crash
When keep_alive=True and the subprocess dies, the next connection should start a fresh subprocess.
tests/client/test_stdio.py:456
Method
test_keep_alive_set_false
(self)
tests/client/test_stdio.py:246
Method
test_keep_alive_starts_new_session_if_manually_closed
(self, stdio_script)
tests/client/test_stdio.py:389
Method
test_keep_alive_true_exit_scope_kills_client
(self, stdio_script)
tests/client/test_stdio.py:293
Method
test_keep_alive_true_exit_scope_kills_transport
(self, stdio_script)
tests/client/test_stdio.py:271
Method
test_keeps_defs_referenced_below_the_traversal_cutoff
A $ref deeper than the traversal walks must still pin its definition. The reference scan stops at its depth guard, so past that point it
tests/utilities/test_json_schema.py:446
Method
test_key_property_without_custom_key
Test that key property returns name@version when no custom key is set.
tests/utilities/test_components.py:85
Method
test_key_value_overrides_input_json
(self)
tests/cli/test_client_commands.py:113
Method
test_keyless_worker_fails_the_encrypted_task
A worker whose key was lost mid-rollout must not run anonymously. The submitter wrote an encrypted snapshot; the restoring process has no
tests/tasks/server/test_snapshot_encryption.py:342
Function
test_known_route_survives_an_unrelated_dead_client
()
tests/client/group/test_client_group.py:293
Method
test_known_sensitive_headers_are_redacted
(self)
tests/server/providers/openapi/test_openapi_features.py:1311
Function
test_known_span_attributes_are_available_on_start
( monkeypatch: pytest.MonkeyPatch, )
tests/telemetry/test_span_attributes.py:139
Method
test_kwonly_defaults_preserved_when_annotations_are_processed
Keyword-only defaults should survive function cloning during annotation processing.
tests/utilities/test_types.py:742
Method
test_lambda
(self)
tests/tools/tool/test_tool.py:299
Method
test_lambda
(self)
tests/utilities/test_async_utils.py:51
Function
test_lambda_function
Test lambda function schema and validation
tests/utilities/test_typeadapter.py:205
Method
test_lambda_with_no_name
(self)
tests/tools/tool/test_tool.py:319
Function
test_large_advertised_interval_is_honored
()
tests/tasks/client/test_poll_interval.py:35
Method
test_large_catalog_is_still_one_round_trip
(self)
tests/experimental/transforms/test_jev_search.py:307
Function
test_large_discriminated_union_keeps_defs
()
tests/utilities/test_json_schema_expansion.py:167
Function
test_large_list_schema_keeps_defs
( build: Callable[[int], dict[str, Any]], )
tests/utilities/test_json_schema_expansion.py:85
Function
test_large_schema_keeps_defs
(defs_key: str, pointer: str)
tests/utilities/test_json_schema_expansion.py:69
Function
test_large_schema_resolves_root_reference_in_every_pointer_form
( defs_key: str, pointer: str )
tests/utilities/test_json_schema_expansion.py:203
Function
test_large_schema_resolves_root_reference_through_aliases
(aliases: int)
tests/utilities/test_json_schema_expansion.py:214
Function
test_large_schema_still_resolves_root_reference
()
tests/utilities/test_json_schema_expansion.py:194
Function
test_large_unused_definitions_keep_defs
()
tests/utilities/test_json_schema_expansion.py:143
Method
test_last_page_returns_none_cursor
Last page should return None cursor.
tests/server/test_pagination.py:90
Method
test_last_property
Test pruning the only/last parameter, should leave empty properties object.
tests/utilities/test_json_schema.py:58
Method
test_last_required
Test pruning the last required parameter, should remove required field.
tests/utilities/test_json_schema.py:74
Method
test_later_contexts_disconnect_normally
(self, server: FastMCP)
tests/client/client/test_client.py:1036
Method
test_later_rules_override_earlier_rules
Test that later session rules override earlier ones (mark semantics).
tests/server/test_session_visibility.py:313
Method
test_later_transform_overrides
Later transforms in chain override earlier ones.
tests/server/transforms/test_visibility.py:250
Method
test_launch_escapes_tool_name_in_html_contexts
Test /launch escapes the tool query parameter in HTML sinks.
tests/cli/test_run.py:1038
Method
test_launch_ignores_tool_and_args_parameters
(self)
tests/cli/test_apps_dev_server.py:486
Method
test_launch_page_opens_only_external_web_links
(self)
tests/cli/test_apps_dev_server.py:544
Method
test_launch_page_requires_same_origin
(self, headers: dict[str, str])
tests/cli/test_apps_dev_server.py:370
Method
test_launch_page_sandboxes_app_frame
(self)
tests/cli/test_apps_dev_server.py:536
Method
test_launch_serializes_args_safely_inside_script
Test /launch escapes argument values embedded in the script element.
tests/cli/test_run.py:1070
Method
test_launch_url_from_picker_opens_launch_page
(self)
tests/cli/test_apps_dev_server.py:478
Method
test_lax_fields_still_coerce
(self)
tests/server/test_input_validation.py:273
Function
test_layer_based_transforms
Test that ToolTransform layer works after tool registration.
tests/server/test_tool_transformation.py:88
Method
test_lazy_reexport_does_not_import_module
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:211
Method
test_leading_digit
(self)
tests/cli/test_generate_cli.py:101
Method
test_leading_trailing_stripped
(self)
tests/cli/test_goose.py:35
Method
test_legacy_call_tool
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:61
Method
test_legacy_call_tool_no_mrtr
A legacy FastMCP server never emits InputRequiredResult; call_tool behaves byte-identically to pre-driver behavior.
tests/client/client/test_input_required_driver.py:174
Function
test_legacy_client_never_tasks
A legacy-era client never negotiates the capability, so nothing is tasked. The optional-mode tool simply runs synchronously and returns its resul
tests/tasks/client/test_transparent_tasks.py:116
Function
test_legacy_client_preserves_http_error_details
()
tests/server/providers/openapi/test_legacy_client_compat.py:63
Function
test_legacy_client_preserves_transport_error_details
( error_kind: str, message: str, )
tests/server/providers/openapi/test_legacy_client_compat.py:89
Function
test_legacy_client_warns_and_remains_usable
()
tests/server/providers/openapi/test_legacy_client_compat.py:42
Method
test_legacy_connection_rejects_with_era_error
Returning an InputRequiredResult on a ≤2025-11-25 connection produces a clear era error naming 2026-07-28, not a generic 'invalid result'.
tests/server/test_mrtr_guards.py:708
Method
test_legacy_does_not_honor_server_hint
On a legacy connection the server hint is not read, so a hinted tools/list is not served from cache (the entry is never stored under the hint)
tests/client/client/test_response_cache.py:143
Method
test_legacy_eddsa_jwks
Legacy EdDSA tokens verify against an Ed25519 JWKS entry.
tests/server/auth/test_jwt_provider.py:562
Method
test_legacy_elicitation_still_synchronous
On a legacy connection, a FastMCP server's `ctx.elicit` uses the synchronous server-to-client request path (not MRTR), and the same el
tests/client/client/test_input_required_driver.py:188
Function
test_legacy_era_opt_in_is_ignored
A handshake-era request cannot be tasked, even with the _meta opt-in. The SDK strips `capabilities.extensions` from pre-2026 handshakes, so a
tests/tasks/server/test_extension.py:340
Function
test_legacy_era_required_tool_raises_missing_capability
`required` tools refuse legacy-era calls with -32021 even when opted in.
tests/tasks/server/test_extension.py:362
Function
test_legacy_first_connection_preserves_declared_mount_precedence
()
tests/test_mcp_config.py:261
← previous
next →
9,001–9,100 of 13,374, ranked by callers