Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Function
test_server_info_resource
Test the server info resource
examples/testing_demo/tests/test_server.py:67
Method
test_server_initialization_performance
Test that full server initialization is fast.
tests/server/providers/openapi/test_performance_comparison.py:198
Method
test_server_initiated_request_mid_stream
Elicitation needs a server->client request while the POST is still open. This is the capability a buffering ASGI transport cannot provide, an
tests/utilities/test_asgi_transport.py:204
Function
test_server_level_catalog_transform_keeps_hidden_task_tool
(transform)
tests/tasks/server/test_task_catalog_transforms.py:44
Function
test_server_level_transforms_apply_to_mounted_servers
Test that server-level transforms apply to tools from mounted servers.
tests/server/test_tool_transformation.py:106
Method
test_server_lifespan_async_teardown_under_cancellation
Async operations in server lifespan finally block complete even when cancelled.
tests/server/test_server_lifespan.py:559
Method
test_server_lifespan_basic
Test that server_lifespan is entered once and persists across sessions.
tests/server/test_server_lifespan.py:21
Method
test_server_lifespan_context_available
Test that server_lifespan context is available to tools.
tests/server/test_server_lifespan.py:98
Method
test_server_lifespan_overlapping_sessions
Test that overlapping sessions keep lifespan active until all sessions close.
tests/server/test_server_lifespan.py:60
Method
test_server_match_short_circuits
When the server matches, verifiers are not consulted.
tests/server/auth/test_multi_auth.py:307
Method
test_server_metadata_available_across_eras
(self, mode)
tests/client/client/test_mode_negotiation.py:275
Method
test_server_name_accessible
Test that server name is accessible through provider.
tests/server/providers/test_fastmcp_provider.py:294
Method
test_server_name_in_header
(self)
tests/cli/test_generate_cli.py:915
Method
test_server_name_with_quotes
Test that server names with quotes are properly escaped.
tests/cli/test_generate_cli.py:494
Method
test_server_no_instructions
Test get_fastmcp_info with a server that has no instructions.
tests/utilities/test_inspect.py:230
Method
test_server_only
(self)
tests/server/auth/test_multi_auth.py:41
Method
test_server_performance_no_latency
Test that server initialization is fast (no code generation latency).
tests/server/providers/openapi/test_comprehensive.py:720
Method
test_server_rejects_both_oauth_and_token_verifier
Test that server raises error when both OAuth and TokenVerifier provided.
tests/server/auth/test_static_token_verifier.py:102
Function
test_server_sampling_handler_kwargs_are_rejected
The server-side sampling handler existed only to answer `ctx.sample()`.
tests/server/test_protocol_eras.py:310
Method
test_server_span_includes_session_id
Server span should include session ID when called via HTTP.
tests/client/telemetry/test_client_tracing.py:619
Method
test_server_span_shares_client_trace
FastMCP extracts inbound W3C trace context from `_meta`, so the single SERVER span must still join the client's distributed trace.
tests/server/telemetry/test_server_tracing.py:405
Method
test_server_spec_and_command_exits
(self)
tests/cli/test_client_commands.py:291
Method
test_server_spec_with_object
(self)
tests/cli/test_goose.py:76
Method
test_server_starts_without_auth
Test that server starts without auth configured.
tests/server/test_server.py:218
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
Method
test_server_variables_substituted_with_defaults
(self)
tests/server/providers/openapi/test_server.py:15
Method
test_server_verified_first
Server's verify_token is tried before verifiers.
tests/server/auth/test_multi_auth.py:203
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:239
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:103
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:157
Method
test_server_with_provider
Test server initialization with OpenAPIProvider.
tests/server/providers/openapi/test_server.py:156
Method
test_server_with_resources
Test get_fastmcp_info with a server that has resources.
tests/utilities/test_inspect.py:135
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:115
Method
test_server_with_version
Test get_fastmcp_info with a server that has a version.
tests/utilities/test_inspect.py:109
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
Method
test_session_class_is_used_when_provided
(self)
tests/client/client/test_session.py:198
Method
test_session_cookie_differs_from_startup_token
(self)
tests/cli/test_apps_dev_server.py:77
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:711
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:752
Method
test_session_has_docstring
session property should document background task support.
tests/tasks/server/test_context_background_task.py:329
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:182
Method
test_session_id_is_a_required_string_with_contract_description
(self)
tests/server/test_session_provider.py:273
Method
test_session_id_none_safe
(self, server)
tests/test_compat.py:259
Method
test_session_id_tool_lists_without_a_provider
(self)
tests/server/test_session_provider.py:472
Method
test_session_id_with_http_headers
Test that session_id returns the value from mcp-session-id header.
tests/server/test_context.py:19
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:46
Method
test_session_level_overrides_server_default
Per-session setLevel overrides the server's client_log_level.
tests/client/test_logs.py:167
Method
test_session_manager_returns_scoped_event_stores
(self, event_store)
tests/server/test_event_store.py:235
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:148
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:212
Method
test_session_scoped_stores_isolate_overlapping_stream_ids
( self, event_store, stream_id )
tests/server/test_event_store.py:184
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:98
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:70
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:39
Method
test_session_task_failure_raises_immediately_on_enter
(self)
tests/client/test_stdio.py:431
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:170
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:156
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:95
Method
test_set_logging_level_debug_allows_all
Setting level to debug allows all messages through.
tests/client/test_logs.py:119
Method
test_set_logging_level_emits_seam_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:447
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:279
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:251
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:272
Method
test_set_state_serializable_false_stores_arbitrary_objects
Non-serializable objects can be stored with serializable=False.
tests/server/test_context.py:234
Method
test_set_state_serializable_true_rejects_non_serializable
Default set_state raises TypeError for non-serializable values.
tests/server/test_context.py:263
Method
test_set_tokens_stores_absolute_expiry
set_tokens should persist an absolute expires_at timestamp.
tests/client/auth/test_oauth_client.py:554
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
← previous
next →
11,601–11,700 of 13,374, ranked by callers