Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
17,519 in github.com/PrefectHQ/fastmcp
⨍
Functions
17,519
◇
Types & classes
2,390
↳
Endpoints
196
Method
test_config_with_no_servers
Test that an empty MCPConfig raises a ValueError.
tests/client/client/test_transport.py:101
Function
test_configuration_defaults_to_the_production_origin
(tmp_path: Path)
tests/cli/deploy/test_configuration.py:17
Function
test_configuration_rejects_organization_state
(tmp_path: Path)
tests/cli/deploy/test_configuration.py:42
Function
test_configuration_stores_only_schema_and_api_origin
(tmp_path: Path)
tests/cli/deploy/test_configuration.py:26
Function
test_configure_logging_suppresses_framework_package_paths
()
tests/utilities/test_logging.py:55
Function
test_configure_logging_traceback_defaults_can_be_overridden
Test that default traceback settings can be overridden by kwargs.
tests/utilities/test_logging.py:68
Function
test_configure_logging_with_rich_disabled
Test that disabling rich logging uses standard StreamHandler.
tests/utilities/test_logging.py:83
Function
test_configure_logging_with_rich_enabled
Test that enabling rich logging uses RichHandler.
tests/utilities/test_logging.py:105
Function
test_configure_logging_with_traceback_kwargs
Test that traceback-related kwargs can be passed without causing duplicate argument errors.
tests/utilities/test_logging.py:44
Function
test_configured_audiences
( expected: str | list[str], claim: Any, accepted: bool, httpx_mock: HTTPXMock )
tests/server/auth/providers/test_introspection_audience.py:33
Function
test_configured_execution_ttl_reported
A configured execution TTL reaches Docket and is reported as ttlMs.
tests/tasks/server/test_task_ttl.py:75
Function
test_configured_headers_keep_their_values
( component: str, )
tests/server/providers/openapi/test_undeclared_arguments.py:222
Function
test_configured_headers_replace_forwarded_headers_regardless_of_case
( kind: str, )
tests/server/providers/proxy/test_header_options.py:101
Function
test_configured_issuer_list_keeps_task_ownership_distinct
( rsa_key_pair: RSAKeyPair, )
tests/server/auth/test_auth_source_identities.py:436
Function
test_configured_source_ids_are_stable_and_duplicates_require_names
()
tests/server/auth/test_auth_source_identities.py:119
Function
test_configured_sources_keep_saved_request_state_separate
( configured_auth: MultiAuth, )
tests/server/auth/test_auth_source_identities.py:348
Function
test_configured_sources_keep_sse_message_ownership_separate
( configured_auth: MultiAuth, )
tests/server/auth/test_auth_source_identities.py:315
Function
test_conflicting_settings_warn_once_and_keep_first
( caplog: pytest.LogCaptureFixture, )
tests/server/test_provider_extensions.py:242
Method
test_conflicting_variant_schemas_are_unioned
No variant's constraint may be advertised as if it applied to all.
tests/server/providers/openapi/test_openapi_discriminator.py:271
Method
test_conformant_discover_still_adopts_modern
The conformance check must not reject a well-formed modern peer.
tests/client/client/test_mode_negotiation.py:231
Method
test_conforming_tool_name_is_unchanged
(self)
tests/cli/test_generate_cli.py:995
Method
test_connect_disconnect
( self, streamable_http_client: Client[StreamableHttpTransport], )
tests/integration_tests/test_github_mcp_remote.py:59
Function
test_connected_pinned_client_probes_without_adopting_metadata
()
tests/server/providers/proxy/test_server_metadata.py:316
Method
test_connected_proxy_client_uses_fresh_sessions
Connected ProxyClient targets should create fresh sessions to avoid stale context.
tests/server/providers/proxy/test_proxy_client.py:777
Function
test_connection_cleanup_does_not_remove_replacement_session
Registering a replacement session under the same id keeps the newer one.
tests/tasks/server/test_context_background_task.py:102
Function
test_connection_dependency_excluded_from_tool_schema
Test that Connection dependency parameter is excluded from tool schema.
tests/server/test_dependencies.py:462
Function
test_connection_dropped_by_tv_is_reopened
The TV can reset the socket while the library still reports it open.
examples/smart_home/tests/test_fire_tv.py:279
Method
test_connection_error_reaches_client_on_both_eras
The actual defect: the modern era masked the connection failure. An unwrapped `RuntimeError` reaching the modern wire boundary is rep
tests/server/providers/proxy/test_proxy_server.py:1575
Method
test_connects_to_pinned_ip
Verify connection uses pinned IP, not re-resolved DNS.
tests/server/auth/test_ssrf_protection.py:249
Method
test_consecutive_hyphens_collapsed
(self)
tests/cli/test_goose.py:32
Method
test_consent_cookie_established_on_page_visit
Verify consent page establishes CSRF cookie.
tests/server/auth/test_oauth_consent_flow.py:508
Method
test_consent_cookies_work_without_secret
Cookie signing/verification works using JWT key when no secret is configured.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:419
Method
test_consent_disabled_skips_binding_check
When require_authorization_consent=False, the binding check is skipped.
tests/server/auth/test_oauth_consent_page.py:863
Method
test_consent_page_contains_transaction_id
Verify consent page receives and displays transaction ID.
tests/server/auth/test_oauth_consent_flow.py:423
Method
test_consent_rejected_without_csrf_cookie
Submitting a valid CSRF token without the matching cookie should be rejected. This prevents an attacker from using their own tx_id/csrf_token
tests/server/auth/test_oauth_consent_flow.py:553
Method
test_consent_requires_csrf_token
Verify consent submission requires valid CSRF token.
tests/server/auth/test_oauth_consent_flow.py:467
Method
test_consent_screen_displays_server_icon
Test that consent screen shows server's custom icon when available.
tests/server/auth/test_oauth_consent_page.py:268
Method
test_consent_screen_escapes_server_name
Test that server name is properly HTML-escaped.
tests/server/auth/test_oauth_consent_page.py:398
Method
test_consent_screen_falls_back_to_fastmcp_logo
Test that consent screen shows FastMCP logo when no server icon provided.
tests/server/auth/test_oauth_consent_page.py:336
Method
test_consent_sets_xfo_header
Verify consent page sets X-Frame-Options header to prevent clickjacking.
tests/server/auth/test_oauth_consent_flow.py:906
Method
test_consent_state_cookies_are_bounded
Repeated renders must not grow the Cookie header without limit. One cookie per issued token is what keeps concurrent renders from ove
tests/server/auth/test_oauth_consent_flow.py:801
Method
test_consistent_hashing
(self)
tests/utilities/test_token_cache.py:254
Method
test_const_and_enum_reject_booleans_for_numbers
( self, schema: dict[str, Any], value: Any )
tests/utilities/json_schema_type/test_json_schema_type.py:362
Method
test_const_enum_results_preserve_json_value_types
( self, field_schema: dict[str, Any], value: Any, expected: Any )
tests/client/test_result_hydration.py:184
Method
test_constant
(self)
tests/utilities/json_schema_type/test_json_schema_type.py:273
Method
test_constrained_format_still_parses
(self)
tests/utilities/json_schema_type/test_constraints.py:266
Method
test_constrained_invalid_default_in_recursive_model_is_preserved
( self, )
tests/utilities/json_schema_type/test_advanced.py:202
Function
test_constrained_key_mapping_replaces_changed_value_type
Key patterns must not hide a change in the dictionary's value type.
tests/tools/tool_transform/test_schema_compatibility.py:270
Method
test_constrained_number_invalid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:89
Method
test_constrained_number_valid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:85
Method
test_constrained_string_invalid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:80
Method
test_constrained_string_valid
(self, union_with_constraints)
tests/utilities/json_schema_type/test_unions.py:76
Method
test_constraints_survive_format
(self, schema, valid, invalid)
tests/utilities/json_schema_type/test_constraints.py:260
Method
test_construction_does_not_cull
(self, jwt_verifier, isolated_home)
tests/server/auth/test_oauth_proxy_storage.py:289
Method
test_construction_is_network_free
Construction must not perform discovery I/O, even when it is enabled.
tests/server/auth/providers/test_descope.py:101
Function
test_constructor_rejects_invalid_skills
(kwargs: dict[str, object], message: str)
tests/skills/test_skill.py:57
Method
test_consume_failure
Test failed token consumption.
tests/server/middleware/test_rate_limiting.py:56
Method
test_consume_success
Test successful token consumption.
tests/server/middleware/test_rate_limiting.py:48
Method
test_contains_generic_commands
(self)
tests/cli/test_generate_cli.py:460
Method
test_contains_tool_functions
(self)
tests/cli/test_generate_cli.py:449
Method
test_contains_tools
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:626
Method
test_content_length_header_checked_first
Verify Content-Length header is checked before streaming.
tests/server/auth/test_ssrf_protection.py:582
Method
test_content_type_preserves_media_type_parameters
Media-type parameters like charset are preserved on the wire.
tests/utilities/openapi/test_director.py:534
Function
test_content_variants
(block: t.ContentBlock, expected: dict[str, Any])
tests/cli/test_content_json.py:75
Method
test_context_already_has_dependency_default
Test that Context with existing Depends default is not re-transformed.
tests/server/test_dependencies_advanced.py:146
Function
test_context_and_depends_together
Test that Context type injection and Depends can be used together.
tests/server/test_dependencies.py:232
Method
test_context_detection
Test that context parameters are properly detected and excluded from schema.
tests/server/providers/local_provider_tools/test_context.py:44
Method
test_context_fastmcp_resolves_to_child_server
(self)
tests/tasks/server/test_task_mount.py:328
Method
test_context_in_callable_class
Test Context transformation works with callable class instances.
tests/server/test_dependencies_advanced.py:212
Method
test_context_in_class_method
Test Context transformation works with bound methods.
tests/server/test_dependencies_advanced.py:179
Method
test_context_in_static_method
Test Context transformation works with static methods.
tests/server/test_dependencies_advanced.py:197
Method
test_context_injection
Test that context is properly injected during resource creation.
tests/resources/test_resource_template.py:724
Method
test_context_injection_basic
Test that context is properly injected into tool calls.
tests/server/providers/local_provider_tools/test_context.py:58
Method
test_context_is_background_task_when_task_id_provided
Context should be a background task when task_id is provided.
tests/tasks/server/test_context_background_task.py:63
Method
test_context_keyword_only
Test Context transformation preserves keyword-only parameter semantics.
tests/server/test_dependencies_advanced.py:107
Function
test_context_manager_connects_the_wrapped_client
( math_server: FastMCP, )
tests/experimental/client/test_code_mode_client.py:272
Method
test_context_not_background_task_by_default
Context should not be a background task by default.
tests/tasks/server/test_context_background_task.py:56
Method
test_context_optional
Test that context is optional when creating resources.
tests/resources/test_resource_template.py:753
Method
test_context_param_reordering
Test that Context params are reordered correctly to maintain valid signature.
tests/server/test_dependencies_advanced.py:232
Method
test_context_parameter_detection
Test that context parameters are properly detected in ResourceTemplate.from_function().
tests/resources/test_resource_template.py:676
Function
test_context_preserves_explicit_shared_scope
()
tests/server/test_shared_context.py:78
Method
test_context_prompt
Test Context transformation works with prompts.
tests/server/test_dependencies_advanced.py:276
Method
test_context_resource
Test Context transformation works with resources.
tests/server/test_dependencies_advanced.py:251
Method
test_context_resource_access
Test that context can access resources.
tests/server/providers/local_provider_tools/test_context.py:93
Method
test_context_resource_template
Test Context transformation works with resource templates.
tests/server/test_dependencies_advanced.py:263
Method
test_context_state_basic
Test basic get/set/delete state operations.
tests/server/test_context.py:115
Method
test_context_state_nested_contexts_share_state
Test that nested contexts within the same session share state.
tests/server/test_context.py:179
Method
test_context_state_persists_across_requests
Test that state persists across multiple context instances (requests).
tests/server/test_context.py:160
Method
test_context_state_session_isolation
Test that different sessions have isolated state.
tests/server/test_context.py:141
Method
test_context_task_id_is_readonly
task_id should be a read-only property.
tests/tasks/server/test_context_background_task.py:70
Method
test_context_wiring_in_background_task
A worker Context is wired as a background task with no live session.
tests/tasks/server/test_context_background_task.py:387
Method
test_context_with_annotated
Test Context with Annotated type is transformed.
tests/server/test_dependencies_advanced.py:132
Method
test_context_with_functools_wraps_decorator
Regression test for #2524: decorated templates with Context should work.
tests/resources/test_resource_template.py:780
Method
test_continuation_fields_populate_message
The continuation fields (SEP-2322) appear on ``context.message`` itself, not only on ``fastmcp_context`` — so middleware branching on the
tests/server/test_mrtr_guards.py:890
Method
test_continuation_leg_is_detectable_from_context
Middleware can distinguish an initial leg from a continuation leg via ``context.fastmcp_context.input_responses`` — ``None`` on the first
tests/server/test_mrtr_guards.py:864
Method
test_continuation_param_accepted
Test that {¶m} continuation is accepted.
tests/resources/test_resource_template_level3.py:322
Method
test_continuation_param_list_and_read
Test that {&size} continuation param is listed and readable.
tests/resources/test_resource_template_level3.py:62
Method
test_contract_is_not_duplicated_when_author_repeats_it
An author who already includes the contract text doesn't get it twice.
tests/server/test_session_provider.py:575
Function
test_control_schema_and_receipt
(bridge)
examples/smart_home/tests/test_lights.py:171
Function
test_convert_audio_in_assistant_message_raises
()
tests/client/sampling/handlers/test_openai_handler.py:251
← previous
next →
9,501–9,600 of 17,519, ranked by callers