MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

Methodtest_json_when_only_json_accepted
Test that JSON is returned when only application/json is accepted.
tests/server/auth/test_enhanced_error_responses.py:1031
Functiontest_json_whoami_does_not_start_device_authorization
( capsys: pytest.CaptureFixture[str], monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_command.py:362
Functiontest_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
Methodtest_jsonrpc_error_reports_error_code
A JSON-RPC error sets `error.type` and `rpc.response.status_code` to the error code, not the exception class name.
tests/client/telemetry/test_client_tracing.py:564
Methodtest_jsonrpc_error_reports_error_code
A JSON-RPC error sets `error.type` and `rpc.response.status_code` to the error code, not the exception class name.
tests/server/telemetry/test_server_tracing.py:801
Methodtest_jti_cache_does_not_grow_past_capacity
Rejected assertions do not remain in a full replay cache.
tests/server/auth/test_cimd_validators.py:304
Methodtest_jti_cache_does_not_grow_past_capacity
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:786
Methodtest_jwks_cgnat_blocked
JWKS fetch to RFC6598 CGNAT IP should be blocked.
tests/server/auth/test_ssrf_protection.py:439
Methodtest_jwks_discovered_via_oidc
( self, idp_key: RSAKeyPair, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_identity_assertion.py:849
Methodtest_jwks_fetch_uses_provided_client
When http_client is provided, JWKS fetches should use it.
tests/server/auth/providers/test_http_client.py:144
Methodtest_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
Methodtest_jwks_loopback_blocked
JWKS fetch to loopback should be blocked.
tests/server/auth/test_ssrf_protection.py:456
Methodtest_jwks_private_ip_blocked
JWKS fetch to private IP should be blocked.
tests/server/auth/test_ssrf_protection.py:421
Methodtest_jwks_skips_unusable_keys
An unusable key must not poison the whole key set - #4515.
tests/server/auth/test_jwt_provider.py:763
Methodtest_jwks_token_validation
Test token validation using JWKS URI.
tests/server/auth/test_jwt_provider.py:733
Methodtest_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
Methodtest_jwks_token_validation_with_kid
( self, rsa_key_pair: RSAKeyPair, jwks_provider: JWTVerifier, mock_jwks_data:
tests/server/auth/test_jwt_provider.py:875
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_jwt_verifier_configured_correctly
Test that JWT verifier is configured correctly.
tests/server/auth/providers/test_descope.py:364
Methodtest_jwt_verifier_configured_correctly
Test that JWT verifier is configured correctly.
tests/server/auth/providers/test_supabase.py:54
Methodtest_jwt_verifier_configured_correctly
Test that JWT verifier is configured correctly.
tests/server/auth/providers/test_scalekit.py:86
Methodtest_jwt_verifier_requires_pyjwt
Test that JWTVerifier raises helpful error without PyJWT.
tests/server/auth/test_jwt_provider_bearer.py:599
Methodtest_jwt_verifier_with_required_scopes
Test that JWT verifier respects required_scopes.
tests/server/auth/providers/test_supabase.py:70
Methodtest_keep_alive_default_true
(self)
tests/client/test_stdio.py:277
Methodtest_keep_alive_false_exit_scope_kills_server
(self, stdio_script)
tests/client/test_stdio.py:401
Methodtest_keep_alive_false_recovers_after_subprocess_crash
When keep_alive=False, crash recovery works because disconnect() is always called.
tests/client/test_stdio.py:656
Methodtest_keep_alive_false_starts_new_session_across_multiple_calls
( self, stdio_script )
tests/client/test_stdio.py:457
Methodtest_keep_alive_maintains_session_across_multiple_calls
( self, stdio_script )
tests/client/test_stdio.py:338
Methodtest_keep_alive_maintains_session_if_reentered
(self, stdio_script)
tests/client/test_stdio.py:584
Methodtest_keep_alive_reconnects_on_a_different_event_loop
A kept-alive connection belongs to the loop that created it. Reusing the transport from a second, concurrently-alive loop has to spaw
tests/client/test_stdio.py:477
Methodtest_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:635
Methodtest_keep_alive_set_false
(self)
tests/client/test_stdio.py:332
Methodtest_keep_alive_starts_new_session_if_manually_closed
(self, stdio_script)
tests/client/test_stdio.py:568
Methodtest_keep_alive_true_exit_scope_kills_client
(self, stdio_script)
tests/client/test_stdio.py:379
Methodtest_keep_alive_true_exit_scope_kills_transport
(self, stdio_script)
tests/client/test_stdio.py:357
Methodtest_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:535
Methodtest_key_property_without_custom_key
Test that key property returns name@version when no custom key is set.
tests/utilities/test_components.py:85
Methodtest_key_value_overrides_input_json
(self)
tests/cli/test_client_commands.py:250
Functiontest_keycloak_openid_default_stays_on_default_verifier
()
tests/server/auth/test_remote_auth_required_scopes.py:95
Methodtest_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
Functiontest_keyword_constructor_renders_skill_md
()
tests/skills/test_skill.py:26
Functiontest_known_route_survives_an_unrelated_dead_client
()
tests/client/group/test_client_group.py:307
Functiontest_known_route_survives_the_group_context
An adapter that resolved a route inside the group can call it later with only the owning client connected.
tests/client/group/test_client_group.py:324
Methodtest_known_sensitive_headers_are_redacted
(self)
tests/server/providers/openapi/test_openapi_features.py:1402
Functiontest_known_span_attributes_are_available_on_start
( monkeypatch: pytest.MonkeyPatch, )
tests/telemetry/test_span_attributes.py:139
Methodtest_kwonly_defaults_preserved_when_annotations_are_processed
Keyword-only defaults should survive function cloning during annotation processing.
tests/utilities/test_types.py:824
Functiontest_label_collection_is_paginated_and_fails_before_prompt
( triage_steps, tmp_path, failure )
tests/test_label_triage.py:30
Functiontest_label_is_not_a_human_response
(ranking_module, label)
tests/test_issue_ranking.py:126
Methodtest_lambda
(self)
tests/tools/tool/test_tool.py:301
Methodtest_lambda
(self)
tests/utilities/test_async_utils.py:52
Functiontest_lambda_function
Test lambda function schema and validation
tests/utilities/test_typeadapter.py:205
Methodtest_lambda_with_no_name
(self)
tests/tools/tool/test_tool.py:321
Functiontest_large_advertised_interval_is_honored
()
tests/tasks/client/test_poll_interval.py:35
Methodtest_large_catalog_is_still_one_round_trip
(self)
tests/experimental/transforms/test_jev_search.py:307
Functiontest_large_discriminated_union_keeps_defs
()
tests/utilities/test_json_schema_expansion.py:203
Functiontest_large_list_schema_keeps_defs
( build: Callable[[int], dict[str, Any]], )
tests/utilities/test_json_schema_expansion.py:121
Functiontest_large_schema_keeps_defs
(defs_key: str, pointer: str)
tests/utilities/test_json_schema_expansion.py:70
Functiontest_large_schema_resolves_root_reference_in_every_pointer_form
( defs_key: str, pointer: str )
tests/utilities/test_json_schema_expansion.py:239
Functiontest_large_schema_resolves_root_reference_through_aliases
(aliases: int)
tests/utilities/test_json_schema_expansion.py:250
Functiontest_large_schema_still_resolves_root_reference
()
tests/utilities/test_json_schema_expansion.py:230
Functiontest_large_sse_tool_and_resource_results
(limit: int | None)
tests/client/transports/test_sse_event_size.py:11
Functiontest_large_unused_definitions_keep_defs
()
tests/utilities/test_json_schema_expansion.py:179
Methodtest_last_page_returns_none_cursor
Last page should return None cursor.
tests/server/test_pagination.py:90
Methodtest_last_property
Test pruning the only/last parameter, should leave empty properties object.
tests/utilities/test_json_schema.py:59
Methodtest_last_required
Test pruning the last required parameter, should remove required field.
tests/utilities/test_json_schema.py:75
Methodtest_later_contexts_disconnect_normally
(self, server: FastMCP)
tests/client/client/test_client.py:1150
Methodtest_later_rules_override_earlier_rules
Test that later session rules override earlier ones (mark semantics).
tests/server/test_session_visibility.py:313
Methodtest_later_transform_overrides
Later transforms in chain override earlier ones.
tests/server/transforms/test_visibility.py:250
Methodtest_launch_escapes_tool_name_in_html_contexts
Test /launch escapes the tool query parameter in HTML sinks.
tests/cli/test_run.py:1384
Methodtest_launch_ignores_tool_and_args_parameters
(self)
tests/cli/test_apps_dev_server.py:549
Methodtest_launch_page_opens_only_external_web_links
(self)
tests/cli/test_apps_dev_server.py:607
Methodtest_launch_page_requires_same_origin
(self, headers: dict[str, str])
tests/cli/test_apps_dev_server.py:433
Methodtest_launch_page_sandboxes_app_frame
(self)
tests/cli/test_apps_dev_server.py:599
Methodtest_launch_serializes_args_safely_inside_script
Test /launch escapes argument values embedded in the script element.
tests/cli/test_run.py:1416
Methodtest_launch_url_from_picker_opens_launch_page
(self)
tests/cli/test_apps_dev_server.py:541
Methodtest_lax_coercion_is_still_rejected
(self)
tests/server/test_input_validation.py:290
Methodtest_lax_fields_still_coerce
(self)
tests/server/test_input_validation.py:375
Functiontest_layer_based_transforms
Test that ToolTransform layer works after tool registration.
tests/server/test_tool_transformation.py:90
Methodtest_lazy_reexport_does_not_import_module
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:212
Methodtest_leading_digit
(self)
tests/cli/test_generate_cli.py:103
Methodtest_leading_trailing_stripped
(self)
tests/cli/test_goose.py:35
Methodtest_leaves_urls_without_a_password_alone
(self, url: str)
tests/cli/test_tasks.py:150
Methodtest_leaves_urls_without_passwords_unchanged
(self, url: str)
tests/cli/test_tasks.py:234
Methodtest_legacy_binding_cookie_remains_valid_during_upgrade
An in-flight flow using the old shared cookie can still finish.
tests/server/auth/test_oauth_consent_page.py:239
Methodtest_legacy_call_tool
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:61
Methodtest_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:208
Functiontest_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:130
Functiontest_legacy_client_preserves_http_error_details
()
tests/server/providers/openapi/test_legacy_client_compat.py:63
Functiontest_legacy_client_preserves_transport_error_details
( error_kind: str, message: str, )
tests/server/providers/openapi/test_legacy_client_compat.py:89
Functiontest_legacy_client_warns_and_remains_usable
()
tests/server/providers/openapi/test_legacy_client_compat.py:42
Methodtest_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
Functiontest_legacy_context_notification_still_delivered
The handshake era keeps its push channel; nothing about it changes.
tests/server/test_subscriptions.py:394
Methodtest_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
Methodtest_legacy_eddsa_jwks
Legacy EdDSA tokens verify against an Ed25519 JWKS entry.
tests/server/auth/test_jwt_provider.py:562
Methodtest_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:222
← previousnext →11,301–11,400 of 16,725, ranked by callers