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
Function
test_frontmatter_changes_do_not_leak_into_the_skill
()
tests/skills/test_skill.py:178
Method
test_frontmatter_colon_in_value_falls_back_preserves_keys
(self)
tests/server/providers/test_skills_provider.py:111
Method
test_frontmatter_description_bool_recovers_original_text
(self)
tests/server/providers/test_skills_provider.py:170
Method
test_frontmatter_description_no_not_coerced_to_false
(self)
tests/server/providers/test_skills_provider.py:192
Method
test_frontmatter_description_numeric_scalar_preserves_original_text
(self)
tests/server/providers/test_skills_provider.py:202
Method
test_frontmatter_description_yes_not_coerced_to_true
(self)
tests/server/providers/test_skills_provider.py:181
Function
test_frontmatter_dump_does_not_add_absent_optional_fields
()
tests/skills/test_models.py:119
Method
test_frontmatter_malformed_falls_back_to_line_parser
(self)
tests/server/providers/test_skills_provider.py:97
Method
test_frontmatter_multiline_folded_block
(self)
tests/server/providers/test_skills_provider.py:84
Method
test_frontmatter_multiline_literal_block
(self)
tests/server/providers/test_skills_provider.py:69
Method
test_frontmatter_non_dict_returns_empty
(self)
tests/server/providers/test_skills_provider.py:126
Function
test_frontmatter_preserves_allowed_tools_wire_name
()
tests/skills/test_models.py:51
Function
test_frontmatter_preserves_unknown_json_fields
()
tests/skills/test_models.py:40
Function
test_frontmatter_rejects_empty_compatibility
()
tests/skills/test_models.py:108
Function
test_frontmatter_rejects_invalid_known_optional_fields
( field: str, value: object, message: str )
tests/skills/test_models.py:99
Function
test_frontmatter_rejects_invalid_names
(name: str)
tests/skills/test_models.py:64
Function
test_frontmatter_rejects_non_finite_extra_values
()
tests/skills/test_models.py:81
Function
test_frontmatter_rejects_non_json_extra_values
()
tests/skills/test_models.py:74
Function
test_frontmatter_rejects_whitespace_description
()
tests/skills/test_models.py:69
Method
test_frontmatter_scalars_are_preserved_as_strings
`SkillInfo.frontmatter` is public; it must not silently retype values. `yaml.BaseLoader` parses block scalars (unlike the old line parser)
tests/server/providers/test_skills_provider.py:138
Method
test_frontmatter_with_quoted_strings
(self)
tests/server/providers/test_skills_provider.py:57
Method
test_frontmatter_with_tags_list
(self)
tests/server/providers/test_skills_provider.py:46
Method
test_frontmatter_with_tools_starts_at_column_zero
(self)
tests/cli/test_generate_cli.py:854
Method
test_full_app_lifecycle_through_client
End-to-end: mount an app on a namespaced server, call UI tool through a client (verifying structured_content is returned), then call t
tests/test_fastmcp_app.py:922
Method
test_full_oauth_flow_with_mock_provider
Test complete OAuth flow with mock provider.
tests/server/auth/oauth_proxy/test_e2e.py:23
Method
test_function_prompt_json_schema_generation
Verify FunctionPrompt.model_json_schema() works without errors.
tests/test_json_schema_generation.py:124
Method
test_function_resource_creation
Test creating a FunctionResource.
tests/resources/test_function_resources.py:11
Method
test_function_resource_json_schema_generation
Verify FunctionResource.model_json_schema() works without errors.
tests/test_json_schema_generation.py:76
Method
test_function_resource_template_json_schema_generation
Verify FunctionResourceTemplate.model_json_schema() works without errors.
tests/test_json_schema_generation.py:99
Method
test_function_template_create_resource_preserves_all_fields
(self)
tests/resources/test_resource_template_meta.py:53
Method
test_function_tool_json_schema_generation
Verify FunctionTool.model_json_schema() works without errors.
tests/test_json_schema_generation.py:32
Method
test_function_tool_task_config_still_works
FunctionTool should still derive execution from task_config.
tests/tools/tool/test_tool.py:712
Method
test_function_with_keyword_only_ok
(self)
tests/resources/test_resource_template.py:417
Function
test_function_with_kwargs_can_add_params
Test that function with **kwargs can add new parameters.
tests/tools/tool_transform/test_tool_transform.py:755
Method
test_function_with_positional_only_not_allowed
(self)
tests/resources/test_resource_template.py:400
Method
test_function_with_varargs_not_allowed
(self)
tests/resources/test_resource_template.py:386
Method
test_function_with_varkwargs_ok
(self)
tests/resources/test_resource_template.py:429
Function
test_function_without_kwargs_can_have_extra_params
Test that function can have extra parameters not in parent tool.
tests/tools/tool_transform/test_tool_transform.py:733
Function
test_function_without_kwargs_missing_params
Test that function missing required transformed parameters raises ValueError.
tests/tools/tool_transform/test_tool_transform.py:713
Method
test_functionality_after_optimization
Verify that performance optimization doesn't break functionality.
tests/server/providers/openapi/test_performance_comparison.py:225
Method
test_future_expiring_client_info_is_stored
(self)
tests/client/auth/test_oauth_client.py:720
Method
test_future_nbf_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:534
Method
test_gaierror_repro_succeeds_through_proxy
Reproduces issue #4292: on a host with no external DNS at all (every getaddrinfo() call raises gaierror), the OAuth/JWKS fetch still succeeds
tests/server/auth/test_ssrf_protection.py:823
Function
test_gateway_construction_does_not_create_backend_client
()
tests/server/providers/proxy/test_server_metadata.py:590
Method
test_gateway_emits_its_own_name_not_the_backends
(self)
tests/server/providers/test_prefab_roundtrip.py:327
Method
test_gemini_cli_basic
Test basic gemini-cli install command parsing.
tests/cli/test_install.py:471
Method
test_gemini_cli_with_new_options
Test gemini-cli install with new uv options.
tests/cli/test_install.py:503
Method
test_gemini_cli_with_options
Test gemini-cli install with various options.
tests/cli/test_install.py:483
Method
test_gemini_http_url_becomes_url
(self)
tests/cli/test_discovery.py:265
Method
test_gemini_http_url_does_not_override_url
(self)
tests/cli/test_discovery.py:271
Method
test_gemini_skills_provider_path
Test GeminiSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:56
Method
test_general_prompt_exceptions_are_masked_when_enabled
( self, is_async: bool )
tests/client/client/test_error_handling.py:220
Method
test_general_prompt_exceptions_are_not_masked_by_default
(self)
tests/client/client/test_error_handling.py:203
Method
test_general_resource_exceptions_are_masked_when_enabled
(self)
tests/client/client/test_error_handling.py:127
Method
test_general_resource_exceptions_are_not_masked_by_default
(self)
tests/client/client/test_error_handling.py:111
Method
test_general_template_exceptions_are_masked_when_enabled
(self)
tests/client/client/test_error_handling.py:173
Method
test_general_template_exceptions_are_not_masked_by_default
(self)
tests/client/client/test_error_handling.py:157
Method
test_general_tool_exceptions_are_masked_when_enabled
(self)
tests/client/client/test_error_handling.py:65
Method
test_general_tool_exceptions_are_not_masked_by_default
(self)
tests/client/client/test_error_handling.py:49
Method
test_generate_deeplink_basic
Test basic deeplink generation.
tests/cli/test_cursor.py:21
Method
test_generate_deeplink_complex_args
Test deeplink generation with complex arguments.
tests/cli/test_cursor.py:95
Method
test_generate_deeplink_empty_config
Test deeplink generation with minimal config.
tests/cli/test_cursor.py:81
Method
test_generate_deeplink_special_characters
Test deeplink generation with special characters in server name.
tests/cli/test_cursor.py:66
Method
test_generate_deeplink_url_injection_protection
Test that special characters in server name are properly URL-encoded to prevent injection.
tests/cli/test_cursor.py:122
Method
test_generate_deeplink_with_env_vars
Test deeplink generation with environment variables.
tests/cli/test_cursor.py:49
Method
test_generate_key_pair
Test RSA key pair generation.
tests/server/auth/test_jwt_provider.py:197
Function
test_generated_tool_delivers_non_accepting_answer
The component receives refusal instead of empty success or a retry.
tests/server/transforms/test_input_required.py:147
Function
test_generated_tool_drives_input_rounds
Formatting the empty control result must not swallow the question.
tests/server/transforms/test_input_required.py:115
Function
test_generated_tool_rejects_input_required_on_legacy_connection
An unsupported era must raise its usual error, not empty success.
tests/server/transforms/test_input_required.py:175
Function
test_generator_body_validation_is_tool_error
( asynchronous: bool, injected: bool, )
tests/tools/tool_transform/test_generator_execution.py:51
Method
test_generator_closed_on_exception
Verify aclose() is called even when an exception occurs mid-flow.
tests/client/auth/test_oauth_client.py:460
Method
test_generator_closed_on_successful_flow
Verify aclose() is called on the parent generator after successful flow.
tests/client/auth/test_oauth_client.py:407
Function
test_generator_failure_closes_dependency_after_generator
(failure: str)
tests/server/test_generator_dependency_lifetime.py:74
Function
test_generator_iteration_error_is_tool_error
(run_in_thread: bool)
tests/tools/test_generator_thread_dispatch.py:112
Function
test_generator_result_keeps_dependency_open
(kind: str, run_in_thread: bool)
tests/server/test_generator_dependency_lifetime.py:22
Method
test_generic_exception_is_masked
Generic exceptions from auth checks should be masked (return False).
tests/server/auth/test_authorization.py:347
Function
test_generic_middleware_sees_one_request_per_completion
Rate limits, logging, and metrics must see a completion as one request (4.0.6 charged each completion two or three times).
tests/server/test_completions.py:324
Method
test_generic_type_is_not_member
Test that generic types are not members based on their parameter types.
tests/utilities/test_types.py:104
Method
test_get_access_token_falls_back_to_context_var_when_no_request
Verify that get_access_token falls back to auth_context_var when there's no HTTP request available.
tests/server/http/test_stale_access_token.py:104
Method
test_get_access_token_falls_back_when_scope_user_is_not_authenticated
Verify that get_access_token falls back to auth_context_var when scope["user"] exists but is not an AuthenticatedUser (e.g., Unauthen
tests/server/http/test_stale_access_token.py:136
Function
test_get_access_token_in_bg_task_without_context_dep
Issue #3897 repro: get_access_token() works in a bg task that does not declare Context as a dependency.
tests/tasks/server/test_snapshot_restore.py:58
Method
test_get_access_token_prefers_request_scope_over_stale_context_var
Regression test for issue #1863. Scenario: - auth_context_var has a STALE token (set at HTTP middleware level) - req
tests/server/http/test_stale_access_token.py:41
Method
test_get_access_token_returns_none_when_no_auth
Verify that get_access_token returns None when there's no authenticated user anywhere.
tests/server/http/test_stale_access_token.py:128
Method
test_get_access_token_returns_subject_for_realistic_jwt_request
End-to-end path a real authenticated request actually takes. Mirrors ``mcp.server.auth.middleware.bearer_auth.BearerAuthBackend``, wh
tests/server/auth/test_jwt_provider.py:642
Method
test_get_additional_http_routes_empty
Test _get_additional_http_routes returns empty list for server with no routes.
tests/server/mount/test_advanced.py:70
Method
test_get_additional_http_routes_with_custom_route
Test _get_additional_http_routes returns server's own routes.
tests/server/mount/test_advanced.py:76
Method
test_get_cached_typeadapter_with_string_descriptions
Test TypeAdapter creation with string descriptions.
tests/utilities/test_types.py:755
Method
test_get_client_disabled
Test that get_client returns None when disabled.
tests/server/auth/test_cimd_validators.py:522
Method
test_get_client_fetch_failure
Test that get_client returns None on fetch failure.
tests/server/auth/test_cimd_validators.py:527
Method
test_get_client_identifier_async_custom
Test custom async client identifier.
tests/server/middleware/test_rate_limiting.py:281
Method
test_get_client_identifier_custom
Test custom client identifier.
tests/server/middleware/test_rate_limiting.py:272
Method
test_get_client_identifier_default
Test default client identifier.
tests/server/middleware/test_rate_limiting.py:267
Method
test_get_client_success
Test successful CIMD client creation.
tests/server/auth/test_cimd_validators.py:501
Function
test_get_client_task_id_round_trip
( scope: str | None, task_id: str, task_type: str, identifier: str )
tests/tasks/server/test_task_keys.py:60
Method
test_get_dependency_parameters
Test get_dependency_parameters finds dependency defaults.
tests/server/test_dependencies.py:896
Method
test_get_error_stats
Test getting error statistics.
tests/server/middleware/test_error_handling.py:296
Method
test_get_error_stats_bounds_distinct_methods
Distinct request methods beyond the stats limit share one bucket.
tests/server/middleware/test_error_handling.py:311
Function
test_get_http_headers_excludes_content_type
Test that get_http_headers() excludes content-type header (issue #3097). This prevents HTTP 415 errors when forwarding headers to downstream APIs
tests/server/http/test_http_dependencies.py:132
Function
test_get_http_headers_excludes_cookie
get_http_headers() must not leak the caller's Cookie to a backend. The OpenAPI provider forwards this mapping to the upstream named in the sp
tests/server/http/test_http_dependencies.py:169
Method
test_get_meta_excludes_version_when_none
Test that get_meta excludes version when component has no version.
tests/utilities/test_components.py:127
← previous
next →
9,901–10,000 of 15,974, ranked by callers