Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
Method
test_send_multiple_notifications
Test sending multiple different notification types.
tests/client/test_notifications.py:98
Method
test_send_notification_async
Test that send_notification sends immediately in async context.
tests/client/test_notifications.py:77
Method
test_sends_bearer_token_to_userinfo
(self, httpx_mock: HTTPXMock)
tests/server/auth/providers/test_huggingface.py:226
Function
test_separate_clients_with_matching_timeouts_share_the_session
( sleepy_server: Path, )
tests/client/test_stdio_session_kwargs.py:134
Method
test_separate_input_output_schemas
Test that input and output schemas contain different schema definitions and don't overlap in the ultimate schema definitions.
tests/utilities/openapi/test_transitive_references.py:680
Method
test_serializable_state_still_persists_across_requests
Serializable state (default) still persists across requests.
tests/server/test_context.py:326
Method
test_serializable_write_clears_request_scoped_shadow
Writing serializable state clears any request-scoped shadow for the same key.
tests/server/test_context.py:337
Method
test_serialize_by_alias_false_uses_field_names
serialize_by_alias=False emits field names in schema, structured, and text.
tests/tools/tool/test_results.py:342
Method
test_serialize_by_alias_true_uses_alias
serialize_by_alias=True emits aliases.
tests/tools/tool/test_results.py:475
Function
test_serialize_tools_for_output_markdown_basic_tool
()
tests/experimental/transforms/test_code_mode_serialization.py:296
Function
test_serialize_tools_for_output_markdown_empty_list
()
tests/experimental/transforms/test_code_mode_serialization.py:292
Function
test_serialize_tools_for_output_markdown_includes_output_section_when_schema_present
()
tests/experimental/transforms/test_code_mode_serialization.py:328
Function
test_serialize_tools_for_output_markdown_multiple_tools_separated
()
tests/experimental/transforms/test_code_mode_serialization.py:373
Function
test_serialize_tools_for_output_markdown_omits_description_when_absent
()
tests/experimental/transforms/test_code_mode_serialization.py:343
Function
test_serialize_tools_for_output_markdown_omits_output_section_when_no_schema
()
tests/experimental/transforms/test_code_mode_serialization.py:313
Function
test_serialize_tools_for_output_markdown_optional_field_uses_question_mark
()
tests/experimental/transforms/test_code_mode_serialization.py:358
Method
test_serializes_with_aliases
(self)
tests/test_apps.py:38
Method
test_serializes_with_aliases
(self)
tests/test_apps.py:73
Method
test_serializes_with_aliases
(self)
tests/test_apps.py:125
Method
test_serializes_with_aliases
(self)
tests/test_apps.py:167
Method
test_server
()
tests/client/test_stdio.py:360
Function
test_server_accepts_a_matching_param_header
()
tests/experimental/events/test_param_headers.py:159
Function
test_server_accepts_raw_request_after_capability_discovery
()
tests/skills/test_extension.py:310
Method
test_server_add_tool_returns_the_existing_tool_when_ignoring
(self)
tests/server/providers/test_local_provider.py:654
Method
test_server_attribute
Test that provider exposes the wrapped server.
tests/server/providers/test_fastmcp_provider.py:287
Method
test_server_decorator_and_provider_tools_coexist
Test that server decorators and provider tools coexist.
tests/server/providers/test_local_provider.py:921
Method
test_server_default_applies_to_all_templates
A single server default screens every templated resource.
tests/resources/test_resource_security.py:261
Method
test_server_default_client_log_level
Server-wide client_log_level filters messages for all sessions.
tests/client/test_logs.py:146
Method
test_server_default_custom_exemption
(self)
tests/resources/test_resource_security.py:248
Method
test_server_default_disabled
(self)
tests/resources/test_resource_security.py:237
Function
test_server_deserialization_error
Test server error when JSON string cannot be converted to expected type. `_on_get_prompt` in fastmcp_slim/fastmcp/server/mixins/mcp_operations.py
tests/client/client/test_client.py:280
Method
test_server_enable_overrides_provider_disable
Server-level enable should override provider-level disable.
tests/server/providers/test_local_provider.py:378
Method
test_server_error_raises_http_status_error
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:193
Function
test_server_headers_take_precedence_over_client_headers
(shttp_server: str)
tests/client/test_openapi.py:164
Method
test_server_icons_and_website
Test that server-level icons and website_url are extracted.
tests/utilities/test_inspect_icons.py:22
Function
test_server_import_does_not_load_cli
()
tests/server/http/test_startup_imports.py:36
Function
test_server_info_custom_version
Test that custom version is properly set in serverInfo.
tests/client/client/test_client.py:408
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
Method
test_server_is_not_imported_in_the_invoking_environment
A dependency supplied only via --with must not be imported up front.
tests/cli/test_run.py:1290
Function
test_server_level_catalog_transform_keeps_hidden_task_tool
(transform)
tests/tasks/server/test_task_catalog_transforms.py:44
Method
test_server_level_disable_sends_no_notification
Server-level disable changes the list silently; a tool can notify itself.
tests/server/test_session_visibility.py:520
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:108
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:565
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_lists_skill_with_sequence_description
User-visible symptom: a directly registered provider returned [].
tests/server/providers/test_skills_provider.py:574
Method
test_server_match_short_circuits
When the server matches, verifiers are not consulted.
tests/server/auth/test_multi_auth.py:384
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:974
Method
test_server_name_with_quotes
Test that server names with quotes are properly escaped.
tests/cli/test_generate_cli.py:491
Method
test_server_no_instructions
Test get_fastmcp_info with a server that has no instructions.
tests/utilities/test_inspect.py:232
Method
test_server_only
(self)
tests/server/auth/test_multi_auth.py:80
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_port_option_sets_the_proxy_port
(self, http_config: Path)
tests/cli/test_run.py:1375
Function
test_server_rejects_a_param_header_that_disagrees_with_the_body
( headers: dict[str, str], )
tests/experimental/events/test_param_headers.py:147
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_rejects_events_method_on_legacy_protocol
()
tests/experimental/events/test_extension.py:625
Function
test_server_rejects_skills_method_on_legacy_protocol
()
tests/skills/test_extension.py:324
Method
test_server_runs_over_stdio
The Inspector connects over stdio, so the child must not serve HTTP.
tests/cli/test_run.py:1353
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_side_copy_is_logged_at_debug_level_when_enabled
( self, caplog: pytest.LogCaptureFixture, to_client_logger: logging.Logger, me
tests/server/test_context.py:685
Method
test_server_side_copy_is_not_logged_at_info_level
( self, caplog: pytest.LogCaptureFixture, to_client_logger: logging.Logger, me
tests/server/test_context.py:672
Method
test_server_span_has_jsonrpc_request_id
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:775
Method
test_server_span_includes_session_id
Server span should include session ID when called via HTTP.
tests/client/telemetry/test_client_tracing.py:643
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:407
Method
test_server_spec_and_command_exits
(self)
tests/cli/test_client_commands.py:455
Method
test_server_spec_and_command_together_is_an_error
( self, _resolved_targets: list[Any], capsys: pytest.CaptureFixture[str], )
tests/cli/test_client_commands.py:1097
Method
test_server_spec_is_unchanged_without_command
( self, _resolved_targets: list[Any], capsys: pytest.CaptureFixture[str], )
tests/cli/test_client_commands.py:1085
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
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
Function
test_server_without_extension_answers_method_not_found
()
tests/experimental/events/test_extension.py:616
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
← previous
next →
14,501–14,600 of 16,725, ranked by callers