MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_run_dev_apps_log_panel_propagation
Test run command can run a dev app with below new options for issue 4121. - toggle log-panel option to hide log/debug message in normal cases.
tests/cli/test_run.py:1546
Methodtest_run_dev_apps_with_host
Test run command can run a dev app with below new options for issue 4121. - host option to support binding specific address other than localho
tests/cli/test_run.py:1489
Functiontest_run_forwards_server_initiated_requests_to_handshake_front
( monkeypatch: pytest.MonkeyPatch, )
tests/cli/test_fastmcp_remote.py:345
Methodtest_run_http_accepts_log_level
Test that run_http_async accepts log_level parameter.
tests/server/test_log_level.py:35
Methodtest_run_http_passes_sockets_to_uvicorn
Test that run_http_async forwards pre-bound sockets to Uvicorn.
tests/server/test_log_level.py:54
Methodtest_run_in_thread_false_blocks_other_tasks
A sync tool with run_in_thread=False blocks the event loop. This documents the tradeoff: while the tool runs inline, no other task on
tests/tools/test_tool_run_in_thread.py:132
Methodtest_run_mcp_config
Test creating a server from an MCPConfig file.
tests/cli/test_run.py:114
Methodtest_run_module_mode_delegates_to_run_module_command
Test that module mode calls run_module_command with correct args.
tests/cli/test_run.py:1051
Methodtest_run_module_mode_requires_server_spec
Test that module mode exits with error when server_spec is None.
tests/cli/test_run.py:1024
Methodtest_run_module_mode_warns_ignored_options
Test that ignored options produce a warning in module mode.
tests/cli/test_run.py:1031
Methodtest_run_module_mode_with_reload
Test that --reload in module mode delegates to run_with_reload.
tests/cli/test_run.py:1068
Functiontest_run_server_async_raises_when_lifespan_fails
()
tests/utilities/test_run_server_async_startup.py:20
Methodtest_run_server_forwards_port_zero
(self, tmp_path)
tests/cli/test_mcp_server_config_integration.py:298
Functiontest_run_server_on_path
Test running server on a custom path.
tests/client/test_sse.py:141
Methodtest_run_stdio_accepts_log_level
Test that run_stdio_async accepts log_level parameter.
tests/server/test_log_level.py:13
Methodtest_run_v1_server_applies_log_level
Test that --log-level is applied to the SDK server settings.
tests/cli/test_run.py:656
Methodtest_run_v1_server_default_transport
Test that v1 server uses streamable-http by default.
tests/cli/test_run.py:428
Methodtest_run_v1_server_forwards_cli_options
Test that run_command threads every parsed option into the v1 runner.
tests/cli/test_run.py:620
Methodtest_run_v1_server_http
Test that v1 server uses async http method.
tests/cli/test_run.py:328
Methodtest_run_v1_server_http_with_path_and_stateless
Test that v1 Streamable HTTP receives --path and --stateless.
tests/cli/test_run.py:527
Methodtest_run_v1_server_keeps_default_log_level
Test that the SDK log level is untouched when --log-level is absent.
tests/cli/test_run.py:681
Methodtest_run_v1_server_sse
Test that v1 server uses async sse method.
tests/cli/test_run.py:395
Methodtest_run_v1_server_sse_with_path
Test that v1 SSE receives --path (and no unsupported stateless kwarg).
tests/cli/test_run.py:596
Methodtest_run_v1_server_stateless_without_path
Test that --stateless alone leaves the SDK path default untouched.
tests/cli/test_run.py:575
Methodtest_run_v1_server_stdio
Test that v1 server uses async stdio method.
tests/cli/test_run.py:295
Methodtest_run_v1_server_streamable_http
Test that v1 server uses async streamable-http method.
tests/cli/test_run.py:362
Methodtest_run_v1_server_streamable_http_with_path
Test that v1 Streamable HTTP receives --path.
tests/cli/test_run.py:552
Methodtest_run_v1_server_transport_is_fourth_positional
The documented positional call must keep binding ``transport`` fourth. ``run_v1_server_async(server, host, port, "sse")`` previously bound
tests/cli/test_run.py:497
Methodtest_run_v1_server_with_host_port
Test that v1 server receives host/port settings.
tests/cli/test_run.py:461
Methodtest_run_with_needs_uv_forwards_skip_source_flag
`--skip-source` should survive the uv-wrapped subprocess path.
tests/cli/test_run.py:1212
Methodtest_run_with_needs_uv_forwards_stateless_flag
`--stateless` should survive the uv-wrapped subprocess path.
tests/cli/test_run.py:1175
Methodtest_run_with_reload_does_not_mutate_command
Test for issue 4081: Verify that run_with_reload does NOT mutate the command arguments. The command used for restart must be
tests/cli/test_run.py:1122
Functiontest_running_aggregate_accepts_bundle_supported_by_root
()
tests/server/test_provider_extensions.py:636
Functiontest_running_aggregate_accepts_components_without_new_extensions
()
tests/server/test_provider_extensions.py:645
Functiontest_running_aggregate_rejects_new_extension_without_exposing_components
( wrapped: bool, )
tests/server/test_provider_extensions.py:610
Functiontest_running_mounted_child_accepts_root_supported_bundle
( bundle: BundledLocalProvider, wrapped: bool )
tests/server/test_extension_runtime.py:52
Methodtest_runs_python_m_module
Test that run_module_command invokes python -m <module>.
tests/cli/test_run.py:929
Functiontest_runtime_catalog_changes_are_visible
()
tests/skills/test_provider.py:136
Methodtest_runtime_toggle_on_off_on
(self, monkeypatch)
tests/test_compat.py:199
Methodtest_safe_create_model_keeps_field_metadata
(self)
tests/utilities/json_schema_type/test_generated_classes.py:345
Methodtest_safe_only_headers
(self)
tests/server/providers/openapi/test_openapi_features.py:1435
Methodtest_safe_uris_pass_by_default
(self, server: FastMCP, uri: str)
tests/resources/test_resource_security.py:229
Functiontest_safety_filtered_response_on_non_tool_path_raises
A safety-filtered response on the non-tool path should include finish_reason in the error.
tests/client/sampling/handlers/test_google_genai_handler.py:761
Functiontest_safety_filtered_response_on_tool_path_raises
A safety-filtered response (no parts) should raise with the finish_reason included in the error message.
tests/client/sampling/handlers/test_google_genai_handler.py:746
Functiontest_same_bundled_configuration_is_deduplicated
(caplog: pytest.LogCaptureFixture)
tests/server/test_provider_extensions.py:234
Functiontest_same_client_can_access_all_its_tasks
A single authenticated caller can resolve every task it created.
tests/tasks/server/test_task_security.py:40
Functiontest_same_client_reuses_session_and_per_call_timeout_overrides_default
( sleepy_server: Path, )
tests/client/test_stdio_session_kwargs.py:83
Methodtest_same_function_names_do_not_collide
(self)
tests/tasks/server/test_task_mount.py:309
Methodtest_same_id_different_principals_are_isolated
(self)
tests/server/test_sessions.py:156
Methodtest_same_inputs_same_hash
(self)
tests/server/providers/test_addressing.py:21
Methodtest_same_key_reuses_one_codec
(self, encryption_key: str)
tests/tasks/server/test_snapshot_encryption.py:118
Methodtest_same_name_in_path_and_query_is_rejected
(self)
tests/server/providers/proxy/test_proxy_server.py:844
Functiontest_same_origin_does_not_clear_credentials
(tmp_path: Path)
tests/cli/deploy/test_configuration.py:96
Methodtest_same_origin_requests_work
(self, headers: dict[str, str])
tests/cli/test_apps_dev_server.py:521
Methodtest_same_proxy_serves_both_eras_without_bleed
The SAME proxy instance serves a legacy front and a modern front (and a legacy front again); each gets its matching backend era. This is the
tests/server/test_mrtr_guards.py:591
Methodtest_same_request_is_still_silently_approved
The same client, redirect URI and scopes stay remembered, in any scope order.
tests/server/auth/test_oauth_consent_remembered_key.py:154
Methodtest_same_stem_files_get_independent_modules
Two files with the same stem in different directories must not collide in sys.modules. The first-imported file keeps the bare stem key; the s
tests/fs/test_discovery.py:557
Methodtest_same_surface
(self, pair)
tests/docs/test_upgrade_guide_equivalence.py:131
Methodtest_same_surface
(self, pair)
tests/docs/test_upgrade_guide_equivalence.py:189
Functiontest_sampler_added_attribute_survives_alongside_fastmcp_attributes
A sampler that forwards attributes unchanged and adds its own must keep both: its own attribute and every FastMCP attribute.
tests/telemetry/test_span_attributes.py:343
Functiontest_sampling
Requests LLM sampling via the client. `Context` has no `sample()` — server-initiated sampling is not part of FastMCP's server API. The handsh
tests/conformance/server.py:177
Functiontest_sampling_content_to_google_genai_part_tool_result
Test converting ToolResultContent to Google GenAI Part with FunctionResponse.
tests/client/sampling/handlers/test_google_genai_handler.py:260
Functiontest_sampling_content_to_google_genai_part_tool_result_empty
Test converting empty ToolResultContent to Google GenAI Part.
tests/client/sampling/handlers/test_google_genai_handler.py:277
Functiontest_sampling_content_to_google_genai_part_tool_result_requires_matching_call
()
tests/client/sampling/handlers/test_google_genai_handler.py:310
Functiontest_sampling_content_to_google_genai_part_tool_result_uses_paired_name
Tool-use IDs are opaque and must resolve through their paired call.
tests/client/sampling/handlers/test_google_genai_handler.py:294
Functiontest_sampling_content_to_google_genai_part_tool_use
Test converting ToolUseContent to Google GenAI Part with FunctionCall.
tests/client/sampling/handlers/test_google_genai_handler.py:244
Methodtest_sampling_handler_resolves_from_its_submodule
(self)
tests/test_upgrade_from_v3.py:193
Methodtest_sampling_params_max_tokens_bridged
(self)
tests/test_compat.py:103
Functiontest_sampling_with_image
(fastmcp_server: FastMCP)
tests/client/test_sampling.py:152
Functiontest_sampling_with_messages
(fastmcp_server: FastMCP)
tests/client/test_sampling.py:128
Functiontest_sampling_with_system_prompt
(fastmcp_server: FastMCP)
tests/client/test_sampling.py:112
Methodtest_sanitize_untrusted_text
(self)
tests/cli/test_client_commands.py:1038
Functiontest_sanitized_diagnostics_and_bounded_retry
( triage, monkeypatch, failure, expected_kind, status, expected_calls )
tests/test_public_triage.py:249
Methodtest_sanitized_name_collision
Properties that collide after sanitization get deduplicated.
tests/utilities/json_schema_type/test_json_schema_type.py:404
Methodtest_sanitizes_param_name
(self)
tests/cli/test_generate_cli.py:231
Methodtest_sanitizes_tool_name
(self)
tests/cli/test_generate_cli.py:222
Functiontest_scalar_elicitation_schema_omits_wrapper_title
Scalar/list wrappers must not leak the internal class name on the wire.
tests/client/test_elicitation_enums.py:631
Methodtest_scalar_handler_return_is_auto_wrapped
Scalar handler returns are wrapped as {"value": ...} for scalar schemas.
tests/client/test_elicitation.py:287
Functiontest_scalar_json_body_reaches_http_endpoint
( media_type: str, schema_type: str, value: str | int | float | bool )
tests/server/providers/openapi/test_json_request_bodies.py:35
Methodtest_scalar_query_param_rejects_explode
Explode always produces a list, so a scalar-only parameter is invalid.
tests/resources/test_resource_template.py:1327
Methodtest_scalar_query_param_unaffected_by_explode
Non-list values pass through regardless of explode setting.
tests/utilities/openapi/test_director.py:750
Methodtest_scalar_role_claim_is_one_role
A provider storing one role as a string must not be iterated. `str` satisfies `Iterable[str]`, so a bare "admin" would otherwise beco
tests/server/auth/test_authorization.py:190
Functiontest_schema_has_correct_id
Test that the schema has the correct $id field.
tests/cli/test_mcp_server_config_schema.py:11
Functiontest_schema_has_required_fields
Test that the schema specifies the required fields correctly.
tests/cli/test_mcp_server_config_schema.py:23
Functiontest_schema_is_inlined
(defs_key: str, pointer: str)
tests/utilities/test_json_schema_expansion.py:76
Functiontest_schema_log_level_enum
Test that log_level field has correct enum values.
tests/cli/test_mcp_server_config_schema.py:120
Functiontest_schema_nested_structure
Test that the schema has the correct nested structure.
tests/cli/test_mcp_server_config_schema.py:37
Methodtest_schema_over_size_budget_is_not_cached
( self, monkeypatch: pytest.MonkeyPatch )
tests/utilities/json_schema_type/test_generated_classes.py:633
Methodtest_schema_refs_resolution
Test that schema references are resolved correctly.
tests/server/providers/openapi/test_comprehensive.py:672
Functiontest_schema_section_fallbacks
(schema: Any, expected_lines: list[str])
tests/experimental/transforms/test_code_mode_serialization.py:77
Functiontest_schema_section_handles_deep_shared_definitions
()
tests/experimental/transforms/test_code_mode_serialization.py:246
Functiontest_schema_section_ignores_unresolvable_refs
()
tests/experimental/transforms/test_code_mode_serialization.py:272
Functiontest_schema_section_lists_fields_with_required_marker
()
tests/experimental/transforms/test_code_mode_serialization.py:81
Functiontest_schema_section_lists_nested_field_names_through_defs
Object-valued fields show their own field names one level down.
tests/experimental/transforms/test_code_mode_serialization.py:96
Functiontest_schema_section_preserves_order_through_mutually_recursive_refs
()
tests/experimental/transforms/test_code_mode_serialization.py:218
Functiontest_schema_section_stops_on_recursive_refs
`Json = list[Json] | int` refers to itself through anyOf and items and must not loop.
tests/experimental/transforms/test_code_mode_serialization.py:152
Functiontest_schema_section_truncates_long_nested_objects
()
tests/experimental/transforms/test_code_mode_serialization.py:262
Functiontest_schema_section_unions_fields_across_object_branches
A | B lists the fields of both models; allOf merges inherited and inline fields.
tests/experimental/transforms/test_code_mode_serialization.py:128
Functiontest_schema_section_visits_shared_definitions_once
(union: str)
tests/experimental/transforms/test_code_mode_serialization.py:183
Functiontest_schema_transport_enum
Test that transport field has correct enum values.
tests/cli/test_mcp_server_config_schema.py:83
← previousnext →13,601–13,700 of 15,974, ranked by callers