Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
Function
test_server_task_timing_fields_serialize_as_integers
()
tests/tasks/server/test_wire_models.py:98
Function
test_server_tasks_none_defaults_to_forbidden
A server with tasks omitted defaults tools to forbidden (runs sync).
tests/tasks/server/test_server_tasks_parameter.py:56
Function
test_server_transform_keeps_task_tool_registered
A server-level rename keeps the tool in `get_tasks()`.
tests/tools/tool_transform/test_task_config.py:90
Function
test_server_transform_that_moves_files_leaves_skill_out
( tmp_path: Path, explicit: bool )
tests/skills/test_composition.py:174
Function
test_server_transforms_disable_discovery_without_failing_mount
()
tests/skills/test_composition.py:136
Method
test_server_variables_substituted_with_defaults
(self)
tests/server/providers/openapi/test_server.py:16
Method
test_server_verified_first
Server's verify_token is tried before verifiers.
tests/server/auth/test_multi_auth.py:256
Method
test_server_with_argparse
Test a server that uses argparse with command line arguments.
tests/cli/test_server_args.py:14
Method
test_server_with_client_integration
Test that the extracted info matches what a client would see.
tests/utilities/test_inspect.py:241
Method
test_server_with_icons_and_website_url
Test that server accepts icons and websiteUrl in constructor.
tests/server/test_icons.py:16
Method
test_server_with_instructions
Test get_fastmcp_info with a server that has instructions.
tests/utilities/test_inspect.py:105
Method
test_server_with_no_args
Test a server that uses argparse with no arguments (defaults).
tests/cli/test_server_args.py:55
Method
test_server_with_prompts
Test get_fastmcp_info with a server that has prompts.
tests/utilities/test_inspect.py:159
Method
test_server_with_provider
Test server initialization with OpenAPIProvider.
tests/server/providers/openapi/test_server.py:157
Method
test_server_with_resources
Test get_fastmcp_info with a server that has resources.
tests/utilities/test_inspect.py:137
Method
test_server_with_sys_argv_access
Test a server that directly accesses sys.argv.
tests/cli/test_server_args.py:80
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
← previous
next →
14,001–14,100 of 16,098, ranked by callers