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
Method
test_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
Method
test_server_with_token_verifier_redirect_behavior
Test that FastMCP server redirects non-matching paths correctly.
tests/server/auth/test_static_token_verifier.py:79
Method
test_server_with_tools
Test get_fastmcp_info with a server that has tools.
tests/utilities/test_inspect.py:117
Method
test_server_with_version
Test get_fastmcp_info with a server that has a version.
tests/utilities/test_inspect.py:111
Method
test_server_without_icons
Test that servers without icons have None for icons and website_url.
tests/utilities/test_inspect_icons.py:47
Method
test_server_without_icons_and_website_url
Test that server works without icons and websiteUrl.
tests/server/test_icons.py:44
Function
test_serves_folders_at_their_relative_paths
(tmp_path: Path)
tests/skills/test_directory_provider.py:34
Method
test_session_class_is_used_when_provided
(self)
tests/client/client/test_session.py:309
Method
test_session_cookie_differs_from_startup_token
(self)
tests/cli/test_apps_dev_server.py:140
Function
test_session_disable_applies_to_hashed_name
()
tests/server/test_hashed_tool_dispatch.py:184
Method
test_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
Method
test_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
Method
test_session_has_docstring
session property should document background task support.
tests/tasks/server/test_context_background_task.py:324
Function
test_session_id_access_does_not_crash_on_modern
(sessionless_server, mode)
tests/server/test_protocol_eras.py:350
Function
test_session_id_callback
Test getting mcp-session-id from the transport.
tests/client/test_streamable_http.py:185
Method
test_session_id_is_a_required_string_with_contract_description
(self)
tests/server/test_session_provider.py:326
Method
test_session_id_none_safe
(self, server)
tests/test_compat.py:259
Method
test_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
Method
test_session_id_tool_lists_without_a_provider
(self)
tests/server/test_session_provider.py:525
Method
test_session_id_with_http_headers
Test that session_id returns the value from mcp-session-id header.
tests/server/test_context.py:22
Method
test_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
Method
test_session_level_overrides_server_default
Per-session setLevel overrides the server's client_log_level.
tests/client/test_logs.py:169
Method
test_session_manager_returns_scoped_event_stores
(self, event_store)
tests/server/test_event_store.py:242
Method
test_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
Method
test_session_raises_when_no_session_available
session should raise RuntimeError when no session is available.
tests/tasks/server/test_context_background_task.py:149
Function
test_session_reuse_with_creating_credential_succeeds
()
tests/server/http/test_session_owner_enforcement.py:72
Function
test_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
Method
test_session_rules_override_global_disables
Test that session enable rules override global disable transforms.
tests/server/test_session_visibility.py:110
Method
test_session_scoped_replay_rejects_foreign_last_event_id
( self, event_store )
tests/server/test_event_store.py:219
Method
test_session_scoped_stores_isolate_overlapping_stream_ids
( self, event_store, stream_id )
tests/server/test_event_store.py:191
Function
test_session_selection_matches_global_selection
( selector: Literal["names", "keys"], selection: Literal["empty", "matching", "nonmatching", "omitted"
tests/server/test_session_visibility_empty_filters.py:14
Function
test_session_snapshot_reads_host_and_credential_under_one_lock
( monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_command.py:106
Function
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_session_task_failure_raises_immediately_on_enter
(self)
tests/client/test_stdio.py:610
Method
test_session_transforms_apply_to_prompts
Test that session transforms apply to prompts too.
tests/server/test_session_visibility.py:368
Method
test_session_transforms_apply_to_resources
Test that session transforms apply to resources too.
tests/server/test_session_visibility.py:338
Method
test_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
Method
test_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
Method
test_sessions_share_the_one_server_store
A second Session for the same key sees the first's writes.
tests/server/test_sessions.py:170
Method
test_set_and_get
(self, cache: TokenCache)
tests/utilities/test_token_cache.py:72
Method
test_set_get_delete
(self)
tests/server/test_sessions.py:96
Method
test_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
Method
test_set_is_noop_when_disabled
(self)
tests/utilities/test_token_cache.py:56
Method
test_set_logging_level
Client can set the minimum log level and lower-level messages are suppressed.
tests/client/test_logs.py:97
Method
test_set_logging_level_debug_allows_all
Setting level to debug allows all messages through.
tests/client/test_logs.py:121
Method
test_set_logging_level_emits_seam_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:449
Function
test_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
Method
test_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
Method
test_set_mcp_path_none_binds_to_base_url
(self, valid_oidc_configuration_dict)
tests/server/auth/providers/test_auth0_mcp.py:201
Method
test_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
Method
test_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
Method
test_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
Method
test_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
Method
test_set_returns_same_set
Test that a set returns the same set.
tests/utilities/test_components.py:28
Method
test_set_sampling_callback_default_capabilities_omit_tools
set_sampling_callback should also default to no tools capability.
tests/client/test_sampling.py:214
Method
test_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
Method
test_set_state_serializable_false_shadows_session_state
Request-scoped state shadows session-scoped state for the same key.
tests/server/test_context.py:301
Method
test_set_state_serializable_false_stores_arbitrary_objects
Non-serializable objects can be stored with serializable=False.
tests/server/test_context.py:263
Method
test_set_state_serializable_true_rejects_non_serializable
Default set_state raises TypeError for non-serializable values.
tests/server/test_context.py:292
Method
test_set_tokens_stores_absolute_expiry
set_tokens should persist an absolute expires_at timestamp.
tests/client/auth/test_oauth_client.py:579
Method
test_setting_disables_native_spans
(self, value: str, mode)
tests/telemetry/test_interop.py:59
Method
test_setting_off_attribute_error_message
(self, monkeypatch)
tests/test_compat.py:190
Method
test_setting_off_raises_attribute_error
(self, monkeypatch)
tests/test_compat.py:182
Method
test_setting_protects_running_server
(self)
tests/server/http/test_sse_host_origin_protection.py:233
Function
test_settings_can_depend_on_receiving_server
(caplog: pytest.LogCaptureFixture)
tests/server/test_provider_extensions.py:506
Method
test_settings_property_removed
(self)
tests/deprecated/test_deprecated.py:12
Function
test_shadowed_file_hides_skill
()
tests/skills/test_provider.py:168
Method
test_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
Function
test_shared_aggregate_checks_every_active_server_and_releases_scopes
()
tests/server/test_provider_extensions.py:659
Function
test_shared_all_of_references_do_not_hang_projection
()
tests/server/providers/openapi/test_write_only_responses.py:332
Method
test_shared_async_context_manager
Shared dependency from an async context manager stays open across calls.
tests/server/test_dependencies.py:1070
Method
test_shared_async_function
Shared dependency from an async function resolves and is reused.
tests/server/test_dependencies.py:1044
Function
test_shared_body_members_advertise_and_send_declared_fields
()
tests/utilities/openapi/test_composition_graphs.py:51
Function
test_shared_child_keeps_second_roots_restrictions_after_first_exits
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:143
Function
test_shared_child_rejection_leaves_its_registrations_unchanged
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:176
Method
test_shared_excluded_from_schema
Shared dependencies are not exposed in the tool schema.
tests/server/test_dependencies.py:1131
Method
test_shared_in_prompt
Shared dependencies work in prompt functions.
tests/server/test_dependencies.py:1169
Method
test_shared_in_resource
Shared dependencies work in resource functions.
tests/server/test_dependencies.py:1147
Function
test_shared_members_are_collected_once
()
tests/utilities/openapi/test_composition_graphs.py:24
Function
test_shared_mounted_aggregate_checks_every_root
( bundle: BundledLocalProvider, wrapped: bool )
tests/server/test_extension_runtime.py:100
Function
test_shared_mounted_child_accepts_bundle_supported_by_all_roots
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:127
Method
test_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
Method
test_shared_references_are_converted_once
( self, monkeypatch: pytest.MonkeyPatch )
tests/utilities/json_schema_type/test_generated_classes.py:504
Method
test_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
Method
test_shared_sync_function
Shared dependency from a sync function resolves and is reused.
tests/server/test_dependencies.py:1018
Method
test_shared_with_depends
Shared and Depends can coexist in the same tool.
tests/server/test_dependencies.py:1099
Method
test_shortfall_names_only_unmet_scopes
(self)
tests/server/auth/test_authorization.py:1233
Method
test_shortfall_union_drops_already_granted_scope
(self)
tests/server/auth/test_authorization.py:1315
Method
test_shortfall_unions_across_middleware_chain
(self)
tests/server/auth/test_authorization.py:1335
Method
test_shortfall_unions_every_unmet_scope_check
(self)
tests/server/auth/test_authorization.py:1293
Function
test_should_close_non_maintainer_issue_without_author_activity
()
tests/scripts/test_auto_close_needs_mre.py:38
Function
test_should_not_close_maintainer_issues
(author_association: str)
tests/scripts/test_auto_close_needs_mre.py:25
Function
test_should_not_close_non_maintainer_issue_with_author_activity
()
tests/scripts/test_auto_close_needs_mre.py:51
Method
test_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
Method
test_should_retry_false
Test retry decision for non-retryable errors.
tests/server/middleware/test_error_handling.py:363
Method
test_should_retry_true
Test retry decision for retryable errors.
tests/server/middleware/test_error_handling.py:356
Method
test_show_banner_defaults_to_setting_true
Test that show_banner=None uses the setting (default True).
tests/server/test_server.py:362
← previous
next →
13,901–14,000 of 15,974, ranked by callers