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_client_connection
Test that connect is idempotent.
tests/client/client/test_client.py:350
Function
test_client_context_entry_cancelled_starter_cleans_up
(fastmcp_server)
tests/client/client/test_client.py:508
Function
test_client_decodes_empty_structured_content
An empty object is a valid structured result, not a missing one (issue #5287).
tests/client/client/test_client.py:872
Method
test_client_default_is_auto
(self)
tests/server/providers/proxy/test_proxy_client.py:37
Method
test_client_defaults_to_auto_mode
(self)
tests/test_upgrade_from_v3.py:345
Function
test_client_detection_middleware
Test middleware that detects specific clients and modifies behavior.
tests/server/middleware/test_initialization_middleware.py:162
Function
test_client_does_not_unwrap_dict_result
Client should not unwrap dict results that are not wrapped.
tests/client/client/test_client.py:856
Method
test_client_factory_creates_fresh_sessions
Test that the client factory pattern creates fresh sessions for each request.
tests/server/providers/proxy/test_proxy_client.py:484
Function
test_client_factory_errors_are_not_swallowed
( frontend_mode: str, async_factory: bool, error_kind: Literal["runtime", "mcp"], )
tests/server/providers/proxy/test_server_metadata.py:500
Function
test_client_headers_proxy
Test that client headers are passed through the proxy to the remove server.
tests/client/test_openapi.py:195
Function
test_client_headers_shttp_resource
(shttp_server: str)
tests/client/test_openapi.py:112
Function
test_client_headers_shttp_resource_template
(shttp_server: str)
tests/client/test_openapi.py:134
Function
test_client_headers_shttp_tool
(shttp_server: str)
tests/client/test_openapi.py:155
Function
test_client_headers_sse_resource
(sse_server: str)
tests/client/test_openapi.py:102
Function
test_client_headers_sse_resource_template
(sse_server: str)
tests/client/test_openapi.py:122
Function
test_client_headers_sse_tool
(sse_server: str)
tests/client/test_openapi.py:146
Function
test_client_http_headers_do_not_require_server
()
tests/client/test_slim_package_boundaries.py:39
Method
test_client_id_defaults_to_unknown
Test that client_id defaults to 'unknown' if neither client_id nor sub present.
tests/server/auth/providers/test_introspection.py:378
Method
test_client_id_fallback
Test client_id extraction with fallback logic.
tests/server/auth/test_jwt_provider_bearer.py:409
Method
test_client_id_fallback_to_sub
Test that client_id falls back to sub if not present.
tests/server/auth/providers/test_introspection.py:358
Method
test_client_id_falls_back_to_sub
When introspection has no aud/client_id, client_id falls back to sub.
tests/server/auth/providers/test_clerk.py:422
Function
test_client_list_dict_return_type
list[dict] return type should produce list of dicts, not Root() objects (issue #3867).
tests/client/client/test_client.py:916
Function
test_client_membership_is_immutable
()
tests/client/group/test_client_group.py:268
Function
test_client_nested_context_manager
Test that the client connects and disconnects once in nested context manager.
tests/client/client/test_client.py:478
Function
test_client_new_preserves_internal_task_extension
Client.new() rebuilds the clone with the auto-registered tasks claim. The tasks client extension (from fastmcp-tasks, imported above) is folded i
tests/client/client/test_client.py:934
Method
test_client_not_closed_after_call
User-provided client must not be closed by the verifier.
tests/server/auth/providers/test_http_client.py:68
Method
test_client_not_registered_for_jwt_bearer_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion, )
tests/server/auth/oauth_proxy/test_identity_assertion.py:933
Method
test_client_only_sees_authorized_tools
(self)
tests/server/auth/test_authorization.py:713
Method
test_client_passes_verify_cert_path_to_transport
(self)
tests/client/transports/test_transports.py:137
Method
test_client_passes_verify_ssl_context_to_transport
(self)
tests/client/transports/test_transports.py:131
Method
test_client_passes_verify_to_sse_transport
(self)
tests/client/transports/test_transports.py:160
Method
test_client_passes_verify_to_streamable_http_transport
(self)
tests/client/transports/test_transports.py:126
Method
test_client_persists_across_proxy_instances
Test that clients persist when proxy is recreated.
tests/server/auth/test_oauth_proxy_storage.py:83
Method
test_client_progress_notification_reaches_on_message
A generic client notification is observed by ``on_message``.
tests/server/middleware/test_message_visibility.py:113
Method
test_client_registration
Test client registration.
tests/server/test_auth_integration.py:627
Method
test_client_registration_default_scopes
( self, test_client: httpx2.AsyncClient, mock_oauth_provider: MockOAuthProvider )
tests/server/test_auth_integration.py:924
Method
test_client_registration_disallowed_scopes
Test client registration with scopes that are not allowed.
tests/server/test_auth_integration.py:903
Method
test_client_registration_empty_redirect_uris
Test client registration with empty redirect_uris array.
tests/server/test_auth_integration.py:696
Method
test_client_registration_invalid_grant_type
( self, test_client: httpx2.AsyncClient )
tests/server/test_auth_integration.py:952
Method
test_client_registration_invalid_uri
Test client registration with invalid URIs.
tests/server/test_auth_integration.py:674
Method
test_client_registration_missing_required_fields
Test client registration with missing required fields.
tests/server/test_auth_integration.py:654
Method
test_client_rejects_auth_for_transports_without_auth_support
(self)
tests/client/transports/test_transports.py:34
Method
test_client_resolves_mcp_config
(self, tmp_path: Path)
tests/cli/test_config_encoding.py:64
Method
test_client_round_trip
( self, transport: Literal["http", "streamable-http", "sse"] )
tests/utilities/test_asgi_transport.py:182
Method
test_client_secret_basic_rejected
Test that client_secret_basic is rejected for CIMD.
tests/server/auth/test_cimd.py:64
Method
test_client_secret_basic_still_works
Test that client_secret_basic continues to work unchanged.
tests/server/auth/providers/test_introspection.py:505
Method
test_client_secret_basic_uses_authorization_header
(self)
tests/client/auth/test_client_credentials.py:231
Method
test_client_secret_jwt_rejected
Test that client_secret_jwt is rejected for CIMD.
tests/server/auth/test_cimd.py:85
Method
test_client_secret_post
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:40
Method
test_client_secret_post_includes_credentials_in_body
Test that client_secret_post includes credentials in POST body.
tests/server/auth/providers/test_introspection.py:445
Method
test_client_secret_post_rejected
Test that client_secret_post is rejected for CIMD.
tests/server/auth/test_cimd.py:75
Method
test_client_secret_post_uses_body
(self)
tests/client/auth/test_client_credentials.py:250
Method
test_client_secret_post_verification_success
Test successful token verification with client_secret_post.
tests/server/auth/providers/test_introspection.py:479
Function
test_client_serialization_error
Test client error when object cannot be serialized.
tests/client/client/test_client.py:252
Function
test_client_serializes_all_non_string_arguments
Test that client always serializes non-string arguments to JSON, regardless of server types.
tests/client/client/test_client.py:202
Function
test_client_server_type_conversion_integration
Test that client serialization works with server-side type conversion.
tests/client/client/test_client.py:230
Function
test_client_settings_convenience_uses_own_identifier
()
tests/server/test_extensions.py:452
Method
test_client_span_includes_session_id
Client span should include session ID when using HTTP transport.
tests/client/telemetry/test_client_tracing.py:583
Function
test_client_structured_content_without_output_schema
(structured_content)
tests/client/client/test_client.py:901
Function
test_client_task_timing_fields_parse_as_integers
()
tests/tasks/client/test_client_models.py:4
Function
test_client_unwraps_result_using_meta
Client should unwrap wrapped results using _meta flag.
tests/client/client/test_client.py:840
Method
test_client_verify_none_leaves_transport_default
(self)
tests/client/transports/test_transports.py:145
Method
test_client_verify_overrides_transport_verify_in_oauth
(self)
tests/client/transports/test_transports.py:240
Method
test_client_verify_propagates_to_oauth
(self)
tests/client/transports/test_transports.py:191
Method
test_client_verify_raises_for_non_http_transport
(self)
tests/client/transports/test_transports.py:150
Method
test_client_verify_resyncs_existing_oauth_on_transport
(self)
tests/client/transports/test_transports.py:218
Function
test_client_with_excluded_header_is_ignored
(sse_server: str)
tests/client/test_openapi.py:176
Method
test_client_with_token_sees_all_authorized_tools
(self)
tests/server/auth/test_authorization.py:730
Function
test_clients_negotiate_independently
()
tests/client/group/test_client_group.py:51
Function
test_cloning_clears_binding_and_isolates_mutable_state
()
tests/server/test_provider_extensions.py:389
Method
test_close_obo_credentials
Test that close_obo_credentials closes all cached credentials.
tests/server/auth/providers/test_azure_scopes.py:731
Method
test_close_racing_a_new_context_leaves_that_context_connected
close() stops the session it finds before a context entered after it can reuse that session, as on 4.0.5.
tests/client/client/test_client.py:1113
Method
test_close_read_never_exceeds_choice_limit
(self)
tests/experimental/transforms/test_jev_search.py:260
Method
test_close_read_puts_summaries_in_state_and_detail_in_criteria
(self)
tests/experimental/transforms/test_jev_search.py:154
Method
test_close_session_and_try_to_use_client_raises_error
(self, stdio_script)
tests/client/test_stdio.py:422
Method
test_closes_unscheduled_coroutines_from_an_eager_caller
Lazy consumption keeps the leak window small, but a caller that builds its awaitables eagerly (a list or a parenthesized tuple) has co
tests/utilities/test_async_utils.py:154
Function
test_closure_scoped_types_with_builtins
Closure-scoped tools work when annotations only reference builtins.
tests/tools/test_tool_future_annotations.py:172
Method
test_cloud_metadata_ref_not_fetched
(self)
tests/utilities/test_json_schema.py:1214
Function
test_code_mode_custom_discovery_tool_function
A plain function can serve as a discovery tool factory.
tests/experimental/transforms/test_code_mode.py:362
Function
test_code_mode_custom_execute_description
()
tests/experimental/transforms/test_code_mode.py:298
Function
test_code_mode_custom_execute_name
()
tests/experimental/transforms/test_code_mode.py:278
Function
test_code_mode_custom_search_tool_name
Search and GetSchemas support custom names.
tests/experimental/transforms/test_code_mode.py:439
Function
test_code_mode_default_execute_description
()
tests/experimental/transforms/test_code_mode.py:317
Function
test_code_mode_default_tools
Default CodeMode exposes search, get_schema, and execute.
tests/experimental/transforms/test_code_mode.py:108
Function
test_code_mode_execute_multi_tool_chaining
Execute block can chain multiple call_tool() calls.
tests/experimental/transforms/test_code_mode.py:652
Function
test_code_mode_execute_non_text_content_stringified
()
tests/experimental/transforms/test_code_mode.py:635
Function
test_code_mode_execute_respects_disabled_tool_visibility
()
tests/experimental/transforms/test_code_mode.py:486
Function
test_code_mode_execute_respects_tool_auth
()
tests/experimental/transforms/test_code_mode.py:544
Function
test_code_mode_execute_sees_mid_run_visibility_changes
Unlocking a tool mid-execution makes it callable in the same run.
tests/experimental/transforms/test_code_mode.py:518
Function
test_code_mode_execute_works
Execute tool can call backend tools through the sandbox.
tests/experimental/transforms/test_code_mode.py:257
Function
test_code_mode_get_schema_brief
get_schema with detail=brief returns names and descriptions only.
tests/experimental/transforms/test_code_mode.py:146
Function
test_code_mode_get_schema_default_is_detailed
get_schema defaults to detailed (markdown with parameters).
tests/experimental/transforms/test_code_mode.py:207
Function
test_code_mode_get_schema_detailed
get_schema with detail=detailed returns markdown with parameter info.
tests/experimental/transforms/test_code_mode.py:167
Function
test_code_mode_get_schema_full
get_schema with detail=full returns JSON schema.
tests/experimental/transforms/test_code_mode.py:188
Function
test_code_mode_get_schema_names_return_fields_one_level_down
A typed return no longer renders as an opaque object[].
tests/experimental/transforms/test_code_mode.py:1121
Function
test_code_mode_get_schema_not_found
get_schema reports tools that don't exist in the catalog.
tests/experimental/transforms/test_code_mode.py:224
Function
test_code_mode_get_schema_partial_match
get_schema returns schemas for found tools and reports missing ones.
tests/experimental/transforms/test_code_mode.py:240
Function
test_code_mode_get_schema_renders_enums_and_defaults
Detailed schemas surface enum values and defaults, not just types.
tests/experimental/transforms/test_code_mode.py:1092
Function
test_code_mode_get_tool_returns_meta_tools_and_passes_through
get_tool returns meta-tools by name and passes through backend tools.
tests/experimental/transforms/test_code_mode.py:603
Function
test_code_mode_is_error_result_raises_in_sandbox
A backend returning an is_error ToolResult interrupts the chain. Regression: proxied backend failures arrive as ToolResult(is_error=True) rat
tests/experimental/transforms/test_code_mode.py:1034
← previous
next →
6,901–7,000 of 13,374, ranked by callers