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
Method
test_source_path_resolution
Test that source paths are resolved relative to config.
tests/cli/test_mcp_server_config_integration.py:177
Method
test_space_delimited_explode_false
style=spaceDelimited, explode=false sends ids=1%202%203.
tests/utilities/openapi/test_director.py:768
Method
test_spaces
(self)
tests/cli/test_generate_cli.py:104
Method
test_span_omits_auth_attributes_when_not_authenticated
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:307
Method
test_span_omits_scope_when_no_scopes
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:328
Method
test_spans_fire_by_default
No opt-in required: a tool call produces a span out of the box.
tests/server/telemetry/test_server_tracing.py:595
Function
test_spec_method_name_rejected
()
tests/server/test_extensions.py:488
Method
test_special_characters
(self)
tests/cli/test_goose.py:20
Method
test_special_characters_in_name
(self)
tests/cli/test_goose.py:95
Method
test_special_tenant_values
Test that special tenant values are accepted.
tests/server/auth/providers/test_azure.py:126
Method
test_specific_bind_accepts_only_its_host
(self)
tests/cli/test_apps_dev_server.py:329
Method
test_specific_bind_rejects_other_host_values
(self, host: str)
tests/cli/test_apps_dev_server.py:263
Method
test_specific_tenant_sets_issuer
(self)
tests/server/auth/providers/test_azure_scopes.py:610
Method
test_specific_tool_errors_are_sent_to_client
(self)
tests/client/client/test_error_handling.py:74
Method
test_sphinx_style_integration
(self)
tests/utilities/test_docstring_parsing.py:351
Method
test_sse_and_streamable_http_agree
( self, protection: HostOriginProtection, allowed_hosts: list[str] | None, all
tests/server/http/test_sse_host_origin_protection.py:190
Method
test_sse_app_auth_argument_applies
(self, rsa_key_pair: RSAKeyPair)
tests/contrib/test_component_manager.py:792
Function
test_sse_app_with_custom_middleware
Test that custom middleware works with SSE app.
tests/server/http/test_http_middleware.py:53
Method
test_sse_transport
(self)
tests/cli/test_discovery.py:711
Method
test_sse_transport_binds_oauth
(self)
tests/client/auth/test_oauth_cimd.py:149
Method
test_sse_transport_binds_private_key_jwt
(self)
tests/client/auth/test_client_credentials.py:651
Method
test_sse_transport_stores_verify_false
(self)
tests/client/transports/test_transports.py:107
Method
test_sse_transport_stores_verify_ssl_context
(self)
tests/client/transports/test_transports.py:114
Function
test_sse_transport_strategy
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_fastmcp_remote.py:168
Method
test_sse_transport_verify_default_is_none
(self)
tests/client/transports/test_transports.py:122
Method
test_sse_verify_factory_still_enables_redirects
The SSE verify factory should still create clients with follow_redirects=True.
tests/client/transports/test_no_redirect.py:189
Method
test_sse_verify_propagates_to_oauth
(self)
tests/client/transports/test_transports.py:178
Method
test_ssrf_safe_allows_http_client_with_static_key
ssrf_safe with http_client is allowed when using static public_key (no HTTP).
tests/server/auth/providers/test_http_client.py:190
Method
test_ssrf_safe_rejects_http_client_with_jwks
ssrf_safe=True and http_client cannot be used together with JWKS.
tests/server/auth/providers/test_http_client.py:178
Method
test_stable_setting
Stable setting passes include_prereleases=False.
tests/utilities/test_version_check.py:318
Method
test_stacked_namespaces_compose
Test that stacked namespaces are applied in order.
tests/server/providers/test_transforming_provider.py:220
Method
test_stacked_transforms_are_callable
Test that stacked transforms still allow tool calls.
tests/server/providers/test_transforming_provider.py:240
Method
test_stale_override_branch_restores_current_server
(self)
tests/server/providers/proxy/test_stateful_proxy_client.py:299
Function
test_standalone_aggregate_releases_descendant_restrictions
( bundle: BundledLocalProvider, )
tests/server/test_extension_runtime.py:231
Function
test_standalone_child_still_rejects_unavailable_extension
( bundle: BundledLocalProvider, standalone_first: bool )
tests/server/test_extension_runtime.py:214
Method
test_standalone_decorator_ui_scheme_defaults_mime_type
The standalone @resource decorator also applies ui:// MIME default.
tests/test_apps.py:337
Function
test_standalone_server_enters_extension_lifespan
()
tests/server/test_extensions.py:377
Method
test_standalone_tool_decorator_accepts_run_in_thread
(self)
tests/tools/test_tool_run_in_thread.py:209
Method
test_starts_ping_task_on_first_message
Test that a ping task is started on first message from a connection.
tests/server/middleware/test_ping.py:56
Method
test_starts_separate_task_per_session
Test that different connections get separate ping tasks.
tests/server/middleware/test_ping.py:91
Method
test_startup_and_shutdown_run_once
(self)
tests/utilities/test_asgi_transport.py:126
Method
test_startup_failure_raises
(self)
tests/utilities/test_asgi_transport.py:146
Method
test_startup_token_must_match_exactly
(self, token: str)
tests/cli/test_apps_dev_server.py:115
Method
test_startup_token_only_starts_a_session_from_the_root_page
( self, method: str, path: str )
tests/cli/test_apps_dev_server.py:128
Method
test_startup_url_starts_session_and_redirects
(self)
tests/cli/test_apps_dev_server.py:62
Method
test_state_from_a_different_key_is_rejected
State minted under one key is rejected by a server holding a different key — the cross-instance isolation shared keys prevent.
tests/server/test_mrtr_guards.py:1151
Function
test_state_isolation_between_streamable_http_clients
Test that different HTTP clients have isolated session state. Each client should have its own session ID and isolated state.
tests/server/middleware/test_initialization_middleware.py:389
Method
test_state_only_continuation_final_not_cached
A state-only round (request_state, no questions) retries with input_responses=None — request_state alone must mark the continuation, o
tests/server/test_mrtr_guards.py:952
Function
test_state_only_guard_round_fails_clearly
A state-only guard round (request_state, no input_requests) fails loudly. Foreground, the client re-invokes such a round after a backoff. The tas
tests/tasks/server/test_guard_reentrant.py:235
Method
test_state_survives_across_calls_per_user
(self)
tests/server/test_session_provider.py:129
Function
test_stateful_pinned_metadata_uses_registered_client_lifecycle
()
tests/server/providers/proxy/test_server_metadata.py:472
Method
test_stateful_proxy
Test that the state shared across multiple calls for the same client (fixes #959).
tests/server/providers/proxy/test_stateful_proxy_client.py:154
Method
test_stateful_proxy_elicitation_over_http
Elicitation through a stateful proxy over HTTP must not hang. When StatefulProxyClient reuses a session, the receive-loop task inheri
tests/server/providers/proxy/test_stateful_proxy_client.py:206
Function
test_stateless_http_rejects_get_sse
Stateless servers should reject GET SSE requests with 405.
tests/client/test_streamable_http.py:230
Function
test_stateless_http_still_accepts_post
Stateless servers should still handle POST requests normally.
tests/client/test_streamable_http.py:238
Method
test_stateless_proxy
Test that the state will not be shared across different calls, even if they are from the same client.
tests/server/providers/proxy/test_stateful_proxy_client.py:165
Method
test_static_assertion_flow
(self)
tests/client/auth/test_client_credentials.py:610
Method
test_static_client_info_includes_additional_metadata
Additional client metadata should be included in static client info.
tests/client/auth/test_oauth_static_client.py:69
Method
test_static_client_info_includes_metadata
Static client info should include redirect_uris, grant_types, etc.
tests/client/auth/test_oauth_static_client.py:24
Method
test_static_client_info_without_secret
Public clients can provide client_id without client_secret.
tests/client/auth/test_oauth_static_client.py:48
Method
test_static_client_with_dcr_disabled
Static client_id should work when the server has DCR disabled.
tests/client/auth/test_oauth_static_client.py:179
Method
test_static_client_with_dcr_enabled
Static client_id should also work when DCR is enabled (skips DCR).
tests/client/auth/test_oauth_static_client.py:230
Method
test_static_public_key
Fully specified EdDSA algorithms verify with a static public key.
tests/server/auth/test_jwt_provider.py:538
Method
test_static_server_url_unaffected
(self)
tests/server/providers/openapi/test_server.py:53
Method
test_static_token_verifier_creation
Test creating a FastMCP server with StaticTokenVerifier.
tests/server/auth/test_static_token_verifier.py:13
Method
test_static_token_verifier_verify_token
Test StaticTokenVerifier token verification.
tests/server/auth/test_static_token_verifier.py:22
Method
test_staticmethod_metadata_is_available_on_unwrapped_function
@tool should attach metadata where staticmethod access can find it.
tests/tools/test_standalone_decorator.py:156
Method
test_staticmethod_metadata_is_available_on_unwrapped_function
@resource should attach metadata where staticmethod access can find it.
tests/resources/test_standalone_decorator.py:104
Method
test_staticmethod_metadata_is_available_on_unwrapped_function
@prompt should attach metadata where staticmethod access can find it.
tests/prompts/test_standalone_decorator.py:104
Method
test_statistics
Test that statistics are collected correctly.
tests/server/middleware/test_caching.py:662
Function
test_status_and_commands_share_one_connection
(configured_fire_tv)
examples/smart_home/tests/test_fire_tv.py:60
Method
test_stdio_basic
Test basic stdio install command parsing.
tests/cli/test_install.py:258
Function
test_stdio_config_keep_alive_passthrough
Test that keep_alive parameter is passed through from StdioMCPServer to StdioTransport.
tests/test_mcp_config.py:408
Method
test_stdio_doesnt_support_auth
(self)
tests/client/client/test_auth.py:20
Method
test_stdio_minimal
Test that stdio works with minimal arguments.
tests/cli/test_install.py:407
Method
test_stdio_target_no_auth
(self)
tests/cli/test_client_commands.py:375
Method
test_stdio_transport
(self)
tests/cli/test_discovery.py:715
Method
test_stdio_transport
(self)
tests/cli/test_client_commands.py:356
Method
test_stdio_transport_basic
(self)
tests/cli/test_generate_cli.py:122
Method
test_stdio_transport_with_env
(self)
tests/cli/test_generate_cli.py:130
Method
test_stdio_type_unchanged
Stdio entries have ``type`` as a proper field — leave it alone.
tests/cli/test_discovery.py:259
Method
test_stdio_with_copy
Test stdio install with copy to clipboard option.
tests/cli/test_install.py:265
Method
test_stdio_with_packages
Test stdio install with additional packages.
tests/cli/test_install.py:271
Method
test_stdlib_not_shadowed_by_same_named_file
A provider file named json.py must not overwrite sys.modules['json'].
tests/fs/test_discovery.py:511
Method
test_step_up_requests_union_of_scopes
(self)
tests/client/auth/test_client_credentials.py:489
Method
test_stops_at_home
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:406
Method
test_storage_collections_are_isolated
Verify that transactions, codes, and clients use separate collections.
tests/server/auth/test_oauth_consent_flow.py:355
Method
test_storage_data_structure
Test that storage uses proper structured format.
tests/server/auth/test_oauth_proxy_storage.py:171
Method
test_storage_key_does_not_embed_the_raw_principal
The injected session is stored under the reserved per-user id, not under the raw principal JSON — proven by reconstructing a `Session`
tests/server/test_session_provider.py:228
Method
test_storage_uses_pydantic_adapter
Verify that PydanticAdapter serializes/deserializes correctly.
tests/server/auth/test_oauth_consent_flow.py:869
Method
test_store_event_priming_event
Test storing a priming event (message=None).
tests/server/test_event_store.py:64
Method
test_store_event_returns_event_id
(self, event_store, sample_message)
tests/server/test_event_store.py:58
Method
test_store_multiple_events
(self, event_store, sample_message)
tests/server/test_event_store.py:69
Function
test_stored_credential_precedes_interactive_authorization
( tmp_path: Path, )
tests/cli/deploy/test_credentials.py:134
Method
test_stored_falsy_value_is_not_treated_as_missing
(self)
tests/server/test_sessions.py:179
Method
test_stored_on_instance
(self)
tests/client/auth/test_oauth_cimd.py:21
Method
test_stored_value_is_not_readable
( self, echo_token_server: FastMCP, encryption_key: str )
tests/tasks/server/test_snapshot_encryption.py:238
Method
test_stores_http_client
(self, shared_client: httpx2.AsyncClient)
tests/server/auth/providers/test_http_client.py:25
Method
test_stores_http_client
(self, shared_client: httpx2.AsyncClient)
tests/server/auth/providers/test_http_client.py:131
Method
test_stores_http_client
(self)
tests/server/auth/providers/test_http_client.py:209
← previous
next →
11,801–11,900 of 13,374, ranked by callers