MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_server_with_token_verifier_http_app
Test that FastMCP server works with StaticTokenVerifier for HTTP requests.
tests/server/auth/test_static_token_verifier.py:56
Methodtest_server_with_token_verifier_redirect_behavior
Test that FastMCP server redirects non-matching paths correctly.
tests/server/auth/test_static_token_verifier.py:79
Methodtest_server_with_tools
Test get_fastmcp_info with a server that has tools.
tests/utilities/test_inspect.py:117
Methodtest_server_with_version
Test get_fastmcp_info with a server that has a version.
tests/utilities/test_inspect.py:111
Methodtest_server_without_icons
Test that servers without icons have None for icons and website_url.
tests/utilities/test_inspect_icons.py:47
Methodtest_server_without_icons_and_website_url
Test that server works without icons and websiteUrl.
tests/server/test_icons.py:44
Functiontest_serves_folders_at_their_relative_paths
(tmp_path: Path)
tests/skills/test_directory_provider.py:34
Methodtest_session_class_is_used_when_provided
(self)
tests/client/client/test_session.py:309
Methodtest_session_cookie_differs_from_startup_token
(self)
tests/cli/test_apps_dev_server.py:140
Functiontest_session_disable_applies_to_hashed_name
()
tests/server/test_hashed_tool_dispatch.py:184
Methodtest_session_disable_does_not_leak_to_concurrent_session
Disabling tools in one session must not affect a concurrent session.
tests/server/test_session_visibility.py:745
Methodtest_session_disable_does_not_leak_to_sequential_session
Disabling tools in one session must not affect a later session.
tests/server/test_session_visibility.py:786
Methodtest_session_has_docstring
session property should document background task support.
tests/tasks/server/test_context_background_task.py:324
Functiontest_session_id_access_does_not_crash_on_modern
(sessionless_server, mode)
tests/server/test_protocol_eras.py:350
Functiontest_session_id_callback
Test getting mcp-session-id from the transport.
tests/client/test_streamable_http.py:185
Methodtest_session_id_is_a_required_string_with_contract_description
(self)
tests/server/test_session_provider.py:326
Methodtest_session_id_none_safe
(self, server)
tests/test_compat.py:259
Methodtest_session_id_raises_when_request_context_has_no_session
A request context without a session is not a session: raise RuntimeError.
tests/server/test_context.py:85
Methodtest_session_id_tool_lists_without_a_provider
(self)
tests/server/test_session_provider.py:525
Methodtest_session_id_with_http_headers
Test that session_id returns the value from mcp-session-id header.
tests/server/test_context.py:22
Methodtest_session_id_without_http_headers
Test that session_id returns a UUID when no HTTP headers are available. For STDIO/SSE/in-memory transports, we generate a UUID and cache it
tests/server/test_context.py:49
Methodtest_session_level_overrides_server_default
Per-session setLevel overrides the server's client_log_level.
tests/client/test_logs.py:169
Methodtest_session_manager_returns_scoped_event_stores
(self, event_store)
tests/server/test_event_store.py:242
Methodtest_session_middleware_sees_no_request_context
The stand-in request context has no session, so PingMiddleware must not start a keepalive task for it.
tests/server/test_context.py:563
Methodtest_session_raises_when_no_session_available
session should raise RuntimeError when no session is available.
tests/tasks/server/test_context_background_task.py:149
Functiontest_session_reuse_with_creating_credential_succeeds
()
tests/server/http/test_session_owner_enforcement.py:72
Functiontest_session_reuse_with_different_credential_returns_404
A session created with credential A must not be usable with credential B.
tests/server/http/test_session_owner_enforcement.py:91
Methodtest_session_rules_override_global_disables
Test that session enable rules override global disable transforms.
tests/server/test_session_visibility.py:110
Methodtest_session_scoped_replay_rejects_foreign_last_event_id
( self, event_store )
tests/server/test_event_store.py:219
Methodtest_session_scoped_stores_isolate_overlapping_stream_ids
( self, event_store, stream_id )
tests/server/test_event_store.py:191
Functiontest_session_selection_matches_global_selection
( selector: Literal["names", "keys"], selection: Literal["empty", "matching", "nonmatching", "omitted"
tests/server/test_session_visibility_empty_filters.py:14
Functiontest_session_snapshot_reads_host_and_credential_under_one_lock
( monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_command.py:106
Functiontest_session_state_persists_across_tool_calls
Test that session-scoped state persists across multiple tool calls. Session state is only available after the session is established, so it c
tests/server/middleware/test_initialization_middleware.py:214
Methodtest_session_task_already_done_no_error_raises_runtime_error
Test that if session task completes without error, raises RuntimeError.
tests/client/client/test_session.py:209
Methodtest_session_task_already_done_with_error
Test that if session task is already done with error, calls fail immediately.
tests/client/client/test_session.py:181
Methodtest_session_task_error_propagates_to_call
Test that errors in session task propagate to pending client calls. When the session task fails (e.g., due to HTTP errors), pending c
tests/client/client/test_session.py:150
Methodtest_session_task_failure_raises_immediately_on_enter
(self)
tests/client/test_stdio.py:610
Methodtest_session_transforms_apply_to_prompts
Test that session transforms apply to prompts too.
tests/server/test_session_visibility.py:368
Methodtest_session_transforms_apply_to_resources
Test that session transforms apply to resources too.
tests/server/test_session_visibility.py:338
Methodtest_session_uses_stored_session_during_on_initialize
session should use the stored session during on_initialize.
tests/tasks/server/test_context_background_task.py:171
Methodtest_session_uses_stored_session_in_background_task
session should use the stored session in background task mode.
tests/tasks/server/test_context_background_task.py:157
Methodtest_sessions_share_the_one_server_store
A second Session for the same key sees the first's writes.
tests/server/test_sessions.py:170
Methodtest_set_and_get
(self, cache: TokenCache)
tests/utilities/test_token_cache.py:72
Methodtest_set_get_delete
(self)
tests/server/test_sessions.py:96
Methodtest_set_get_reconstructs_model
A stored entry round-trips back to an equal result model object.
tests/client/client/test_kv_response_cache.py:65
Methodtest_set_is_noop_when_disabled
(self)
tests/utilities/test_token_cache.py:56
Methodtest_set_logging_level
Client can set the minimum log level and lower-level messages are suppressed.
tests/client/test_logs.py:97
Methodtest_set_logging_level_debug_allows_all
Setting level to debug allows all messages through.
tests/client/test_logs.py:121
Methodtest_set_logging_level_emits_seam_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:449
Functiontest_set_logging_level_is_era_gated_on_modern
`logging/setLevel` asks a server to remember a level for the session, and the modern era has no session — the method is absent from its registry.
tests/server/test_protocol_eras.py:359
Methodtest_set_mcp_path_creates_jwt_issuer_with_correct_audience
Test that set_mcp_path creates JWTIssuer with correct audience.
tests/server/auth/oauth_proxy/test_config.py:373
Methodtest_set_mcp_path_none_binds_to_base_url
(self, valid_oidc_configuration_dict)
tests/server/auth/providers/test_auth0_mcp.py:201
Methodtest_set_mcp_path_none_binds_to_base_url
When no MCP path is provided, the resource URL is ``base_url`` itself (an MCP-at-root server) and the audience binds to that.
tests/server/auth/providers/test_workos.py:283
Methodtest_set_mcp_path_none_uses_resource_base_url_for_audience
Test that resource_base_url is used as audience when mcp_path is None.
tests/server/auth/oauth_proxy/test_config.py:433
Methodtest_set_mcp_path_uses_base_url_if_no_path
Test that set_mcp_path uses base_url as audience if no path provided.
tests/server/auth/oauth_proxy/test_config.py:397
Methodtest_set_mcp_path_uses_resource_base_url_for_audience
Test that resource_base_url controls the protected resource audience.
tests/server/auth/oauth_proxy/test_config.py:414
Methodtest_set_returns_same_set
Test that a set returns the same set.
tests/utilities/test_components.py:28
Methodtest_set_sampling_callback_default_capabilities_omit_tools
set_sampling_callback should also default to no tools capability.
tests/client/test_sampling.py:214
Methodtest_set_state_serializable_false_does_not_persist_across_requests
Non-serializable state is request-scoped and gone in a new context.
tests/server/test_context.py:280
Methodtest_set_state_serializable_false_shadows_session_state
Request-scoped state shadows session-scoped state for the same key.
tests/server/test_context.py:301
Methodtest_set_state_serializable_false_stores_arbitrary_objects
Non-serializable objects can be stored with serializable=False.
tests/server/test_context.py:263
Methodtest_set_state_serializable_true_rejects_non_serializable
Default set_state raises TypeError for non-serializable values.
tests/server/test_context.py:292
Methodtest_set_tokens_stores_absolute_expiry
set_tokens should persist an absolute expires_at timestamp.
tests/client/auth/test_oauth_client.py:579
Methodtest_setting_disables_native_spans
(self, value: str, mode)
tests/telemetry/test_interop.py:59
Methodtest_setting_off_attribute_error_message
(self, monkeypatch)
tests/test_compat.py:190
Methodtest_setting_off_raises_attribute_error
(self, monkeypatch)
tests/test_compat.py:182
Methodtest_setting_protects_running_server
(self)
tests/server/http/test_sse_host_origin_protection.py:233
Functiontest_settings_can_depend_on_receiving_server
(caplog: pytest.LogCaptureFixture)
tests/server/test_provider_extensions.py:506
Methodtest_settings_property_removed
(self)
tests/deprecated/test_deprecated.py:12
Functiontest_shadowed_file_hides_skill
()
tests/skills/test_provider.py:168
Methodtest_shadowed_registered_tool_is_not_listed
Listing and calling agree when an injected tool shadows a registered one.
tests/server/middleware/test_tool_injection.py:437
Functiontest_shared_aggregate_checks_every_active_server_and_releases_scopes
()
tests/server/test_provider_extensions.py:659
Functiontest_shared_all_of_references_do_not_hang_projection
()
tests/server/providers/openapi/test_write_only_responses.py:332
Methodtest_shared_async_context_manager
Shared dependency from an async context manager stays open across calls.
tests/server/test_dependencies.py:1070
Methodtest_shared_async_function
Shared dependency from an async function resolves and is reused.
tests/server/test_dependencies.py:1044
Functiontest_shared_body_members_advertise_and_send_declared_fields
()
tests/utilities/openapi/test_composition_graphs.py:51
Functiontest_shared_child_keeps_second_roots_restrictions_after_first_exits
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:143
Functiontest_shared_child_rejection_leaves_its_registrations_unchanged
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:176
Methodtest_shared_excluded_from_schema
Shared dependencies are not exposed in the tool schema.
tests/server/test_dependencies.py:1131
Methodtest_shared_in_prompt
Shared dependencies work in prompt functions.
tests/server/test_dependencies.py:1169
Methodtest_shared_in_resource
Shared dependencies work in resource functions.
tests/server/test_dependencies.py:1147
Functiontest_shared_members_are_collected_once
()
tests/utilities/openapi/test_composition_graphs.py:24
Functiontest_shared_mounted_aggregate_checks_every_root
( bundle: BundledLocalProvider, wrapped: bool )
tests/server/test_extension_runtime.py:100
Functiontest_shared_mounted_child_accepts_bundle_supported_by_all_roots
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:127
Methodtest_shared_pattern_cache_is_bounded
Template strings can come from a proxied server, so the shared cache must not grow with every template a remote ever sends.
tests/resources/test_resource_template.py:949
Methodtest_shared_references_are_converted_once
( self, monkeypatch: pytest.MonkeyPatch )
tests/utilities/json_schema_type/test_generated_classes.py:504
Methodtest_shared_resolves_on_task_capable_server
Shared() dependencies resolve on a normal request even when the server has task-enabled components. When pydocket is installed AND a
tests/server/test_dependencies.py:1197
Methodtest_shared_sync_function
Shared dependency from a sync function resolves and is reused.
tests/server/test_dependencies.py:1018
Methodtest_shared_with_depends
Shared and Depends can coexist in the same tool.
tests/server/test_dependencies.py:1099
Methodtest_shortfall_names_only_unmet_scopes
(self)
tests/server/auth/test_authorization.py:1233
Methodtest_shortfall_union_drops_already_granted_scope
(self)
tests/server/auth/test_authorization.py:1315
Methodtest_shortfall_unions_across_middleware_chain
(self)
tests/server/auth/test_authorization.py:1335
Methodtest_shortfall_unions_every_unmet_scope_check
(self)
tests/server/auth/test_authorization.py:1293
Functiontest_should_close_non_maintainer_issue_without_author_activity
()
tests/scripts/test_auto_close_needs_mre.py:38
Functiontest_should_not_close_maintainer_issues
(author_association: str)
tests/scripts/test_auto_close_needs_mre.py:25
Functiontest_should_not_close_non_maintainer_issue_with_author_activity
()
tests/scripts/test_auto_close_needs_mre.py:51
Methodtest_should_retry_checks_cause_chain
Retry should match on __cause__ since FastMCP wraps tool errors. When a tool raises ConnectionError, FastMCP catches it and raises To
tests/server/middleware/test_error_handling.py:370
Methodtest_should_retry_false
Test retry decision for non-retryable errors.
tests/server/middleware/test_error_handling.py:363
Methodtest_should_retry_true
Test retry decision for retryable errors.
tests/server/middleware/test_error_handling.py:356
Methodtest_show_banner_defaults_to_setting_true
Test that show_banner=None uses the setting (default True).
tests/server/test_server.py:362
← previousnext →13,901–14,000 of 15,974, ranked by callers