MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

Methodtest_combined_error_handling_and_retry_middleware
Test error handling and retry middleware working together.
tests/server/middleware/test_error_handling.py:728
Methodtest_combined_operations
Test all pruning operations together.
tests/utilities/test_json_schema.py:609
Methodtest_combines_sources
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:700
Methodtest_comma_separated_in_continuation
Test that {&a,b} splits into multiple params.
tests/resources/test_resource_template_level3.py:53
Methodtest_command_replaces_server_spec
( self, argv: list[str], _resolved_targets: list[Any], capsys: pytest.CaptureF
tests/cli/test_client_commands.py:1032
Methodtest_command_resource_and_prompt
( self, target_and_arguments: list[str], expected: str, capsys: pytest.Capture
tests/cli/test_client_commands.py:1075
Methodtest_command_returns_stdio_transport
(self)
tests/cli/test_client_commands.py:443
Methodtest_command_single_word
(self)
tests/cli/test_client_commands.py:449
Methodtest_command_tool_arguments
( self, target_and_arguments: list[str], expected: dict[str, int], capsys: pyt
tests/cli/test_client_commands.py:1054
Methodtest_command_with_path
(self)
tests/cli/test_goose.py:174
Functiontest_comment_carries_an_excerpt_and_the_items_author
()
tests/test_triage_floor_feed.py:257
Functiontest_common_xss_vectors
Test that common XSS attack vectors are properly escaped.
tests/client/test_oauth_callback_xss.py:123
Methodtest_compare_versions
Test compare_versions function.
tests/server/versioning/test_versioning.py:72
Methodtest_compiles
(self)
tests/cli/test_generate_cli.py:439
Methodtest_compiles_with_backslashes_and_quotes_in_server_spec
The server spec lands in the header docstring, so it must be escaped.
tests/cli/test_generate_cli.py:540
Methodtest_compiles_with_stdio_transport
(self)
tests/cli/test_generate_cli.py:553
Methodtest_compiles_with_unusual_names
(self)
tests/cli/test_generate_cli.py:510
Functiontest_complete_parity_both_eras
FastMCP registers no completion handler, so `completion/complete` is method-not-found. The point of this cell is parity: the *same* -32601 sur
tests/server/test_protocol_eras.py:150
Methodtest_completed_flow_final_result_not_served_to_fresh_call
A continuation leg's final result must not enter the cache: its key is built from name+arguments only, identical to a fresh call's — so a
tests/server/test_mrtr_guards.py:999
Methodtest_completes_with_error_and_broad_except_middleware
An ask is a result, not an error, so error-handling middleware and a broad ``except Exception`` are simply irrelevant — `call_next` returns
tests/server/test_mrtr_guards.py:799
Methodtest_completing_a_flow_removes_only_its_own_state
Approve clears the transaction it completed and nothing else.
tests/server/auth/test_oauth_consent_flow.py:768
Methodtest_completing_one_flow_leaves_another_submittable
Approving one transaction must not clear a different pending one. A browser can have two consent flows open — two clients connecting, or
tests/server/auth/test_oauth_consent_flow.py:718
Functiontest_completion_argument_and_context_types_importable
The completion authoring types are importable from mcp_types.
tests/server/test_completions.py:281
Functiontest_completion_context_reaches_handler
The already-supplied argument values arrive as the handler's context.
tests/server/test_completions.py:119
Functiontest_completion_decorator_called_form_registers_handler
`@mcp.completion()` (called) registers the handler too.
tests/server/test_completions.py:225
Functiontest_completion_decorator_registers_handler
`@mcp.completion` (bare) registers the handler and the wire capability.
tests/server/test_completions.py:213
Functiontest_completion_does_not_poison_a_response_cache
A completion must not make a caching layer store a listing that a generic-hook filter never saw (4.0.7 served hidden prompts this way).
tests/server/test_completions.py:290
Methodtest_completion_has_more_bridged
(self)
tests/test_compat.py:93
Functiontest_completion_object_passes_through_pagination_hints
Returning a Completion preserves its total / has_more hints.
tests/server/test_completions.py:146
Functiontest_complex_function_runtime_arg_validation_non_json
Test that basic non-JSON arguments are validated correctly using a simpler function
tests/utilities/test_typeadapter.py:127
Methodtest_complex_json_param
(self)
tests/cli/test_generate_cli.py:889
Methodtest_complex_nested_array
(self)
tests/cli/test_generate_cli.py:75
Methodtest_complex_object
(self)
tests/cli/test_generate_cli.py:70
Methodtest_complex_object_parameter
(self)
tests/cli/test_generate_cli.py:290
Functiontest_complex_parameter_preserves_parsed_suffix_parameter
( parsed_type: str, use_default: bool )
tests/cli/test_generate_cli_arguments.py:105
Methodtest_complex_request_with_body_and_parameters
Test complex request with both parameters and body.
tests/server/providers/openapi/test_comprehensive.py:552
Methodtest_complex_return_annotation
(self, annotation)
tests/tools/tool/test_output_schema.py:92
Methodtest_complex_type_with_default
Test that complex types with defaults are JSON-serialized.
tests/cli/test_generate_cli.py:344
Methodtest_complex_types
(self)
tests/tools/test_tool_future_annotations.py:78
Methodtest_complex_union_nullable_scenarios
Test various complex union type scenarios.
tests/utilities/openapi/test_nullable_fields.py:182
Methodtest_component_annotation_inferred
(self)
tests/test_apps_prefab.py:217
Methodtest_component_disable_overrides_server_default
(self)
tests/resources/test_resource_security.py:279
Methodtest_component_enables_over_disabled_server_default
A per-component policy overrides a server default of None.
tests/resources/test_resource_security.py:303
Methodtest_component_exemption_overrides_server_default
(self)
tests/resources/test_resource_security.py:290
Functiontest_component_failure_records_exception_once_per_span
( trace_exporter: InMemorySpanExporter, operation: Literal["tool", "resource", "template", "prompt"],
tests/telemetry/test_exception_recording.py:56
Functiontest_component_identifier_with_colons_is_recovered
()
tests/tasks/server/test_task_keys.py:97
Functiontest_component_import_works_in_fresh_interpreter
(statement: str)
tests/tools/test_standalone_decorator.py:33
Methodtest_component_meta_propagates_to_content
Template-level meta reaches content items, as it does for resources.
tests/resources/test_resource_template.py:1644
Methodtest_component_return_no_output_schema
(self)
tests/test_apps_prefab.py:331
Methodtest_component_subclass_union_inferred
(self)
tests/test_apps_prefab.py:295
Methodtest_component_with_complex_meta
Test component with nested meta structures.
tests/utilities/test_components.py:364
Methodtest_components_hint_limits_notifications
Test that the components hint limits which notifications are sent.
tests/server/test_session_visibility.py:490
Methodtest_composed_alias_arm_stripped
A composed alias arm — `str | Value` where `Value = int | InputRequiredResult` — is recursively unwrapped so the hidden guard is strip
tests/server/test_mrtr_guards.py:206
Methodtest_composed_lifespans_async_teardown_under_cancellation
Both server and provider async teardown completes under cancellation.
tests/server/test_server_lifespan.py:623
Functiontest_composed_providers_preserve_bundled_extensions
(wrapper: str)
tests/server/test_provider_extensions.py:133
Functiontest_composition_dependency_budget
(monkeypatch)
tests/utilities/openapi/test_composition_graphs.py:129
Functiontest_composition_visit_budget
(monkeypatch)
tests/utilities/openapi/test_composition_graphs.py:138
Methodtest_comprehensive_server
Test get_fastmcp_info with a server that has all component types.
tests/utilities/test_inspect.py:179
Methodtest_comprehensive_server_initialization
Test server initialization with comprehensive spec.
tests/server/providers/openapi/test_comprehensive.py:371
Functiontest_compress_preserves_validation
(schema, instances, titles, deref)
tests/pbt/test_json_schema.py:282
Methodtest_compress_schema_preserves_defaults
Test that compress_schema() doesn't strip default values.
tests/client/test_elicitation_enums.py:617
Methodtest_compresses_schema_nested_far_beyond_the_recursion_limit
Deeply nested schemas must compress rather than raise RecursionError. Copying the schema is what sets the depth ceiling, so it must not
tests/utilities/test_json_schema.py:512
Functiontest_concrete_resource_auth_shadows_template
( placement: str, allowed: bool )
tests/server/auth/test_resource_auth_shadowing.py:43
Functiontest_concurrent_background_tasks_with_context
Multiple concurrent background tasks sharing Context() should not raise ValueError from ContextVar token resets (#3654).
tests/tasks/server/test_concurrent_dependencies.py:82
Functiontest_concurrent_background_tasks_with_progress
Multiple concurrent background tasks sharing Progress() should not raise AssertionError from _impl being None (#3656).
tests/tasks/server/test_concurrent_dependencies.py:106
Functiontest_concurrent_batches_share_capacity
()
tests/apps/test_file_upload_retention.py:202
Methodtest_concurrent_bindings_are_independent_and_order_independent
Two responses from one cookie snapshot preserve both browser bindings.
tests/server/auth/test_oauth_consent_page.py:158
Methodtest_concurrent_bindings_from_one_snapshot_fit_cookie_header
Concurrent Set-Cookie responses keep every compact binding.
tests/server/auth/test_oauth_consent_page.py:205
Functiontest_concurrent_calls_maintain_isolation
Multiple concurrent calls each get the same Docket instance.
tests/server/test_server_docket.py:113
Functiontest_concurrent_calls_reconnect_once
(monkeypatch: pytest.MonkeyPatch)
examples/smart_home/tests/test_fire_tv.py:177
Functiontest_concurrent_client_context_managers
Test that concurrent client usage doesn't cause cross-task cancel scope issues. https://github.com/PrefectHQ/fastmcp/pull/643
tests/client/client/test_client.py:730
Functiontest_concurrent_cold_calls_share_tool_discovery
()
tests/client/group/test_client_group.py:125
Methodtest_concurrent_elicitation_no_mixing
Test that concurrent elicitation requests don't mix handlers (fixes #1068).
tests/server/providers/proxy/test_proxy_client.py:664
Methodtest_concurrent_exchanges_redeem_code_once
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_single_use.py:101
Functiontest_concurrent_first_calls_share_one_connection
( monkeypatch: pytest.MonkeyPatch, )
examples/smart_home/tests/test_fire_tv.py:151
Functiontest_concurrent_foreground_tools_with_context
Multiple concurrent tool calls sharing the same Context() default should not raise ValueError from ContextVar token resets (#3654).
tests/tasks/server/test_concurrent_dependencies.py:27
Functiontest_concurrent_foreground_tools_with_progress
Multiple concurrent tool calls sharing the same Progress() default should not raise AssertionError from _impl being None (#3656).
tests/tasks/server/test_concurrent_dependencies.py:51
Functiontest_concurrent_group_entries_share_one_connection
()
tests/client/group/test_client_group.py:444
Functiontest_concurrent_group_entry_does_not_double_connect
()
tests/client/group/test_client_group.py:291
Methodtest_concurrent_log_requests_no_mixing
Test that concurrent log requests don't mix handlers (fixes #1068).
tests/server/providers/proxy/test_stateful_proxy_client.py:119
Methodtest_concurrent_log_requests_no_mixing
Test that concurrent log requests don't mix handlers (fixes #1068).
tests/server/providers/proxy/test_proxy_client.py:635
Functiontest_concurrent_lookups_share_one_load
()
tests/skills/test_provider.py:112
Functiontest_concurrent_pinned_calls_leave_the_schema_cache_intact
Pinning is per call: concurrent calls must not disturb the shared cache. A pinned call is a property of one request, so it must not be expressed
tests/client/test_versioned_call_tool_validation.py:139
Methodtest_concurrent_reader_never_sees_empty
A reader during reload should see either old or new components, never empty.
tests/fs/test_provider.py:400
Methodtest_concurrent_refreshes_rotate_once
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_single_use.py:149
Methodtest_concurrent_requests_during_crash
Multiple concurrent callers fail cleanly when subprocess dies, then recovery works.
tests/client/test_stdio.py:779
Methodtest_concurrent_sessions_isolated
Test that two concurrent clients don't leak session transforms.
tests/server/test_session_visibility.py:558
Methodtest_concurrent_stores_on_one_stream
Concurrent stores must not lose events or evict the same ID twice. A live session stores events from more than one task (the SSE writer and
tests/server/test_event_store.py:274
Functiontest_concurrent_subscribes_both_stay_in_the_index
(receiver)
tests/events/test_webhooks.py:396
Functiontest_concurrent_subscribes_respect_the_per_client_limit
(receiver)
tests/events/test_webhooks.py:941
Functiontest_concurrent_update_enqueues_a_single_next_leg
Two racing tasks/update answers re-enter the task exactly once.
tests/tasks/server/test_extension.py:449
Functiontest_conditional_clear_preserves_newer_state
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:186
Methodtest_config_and_env_file_values_reach_wrapper_literally
( self, installer: Installer, run: Mock, monkeypatch: pytest.MonkeyPatch,
tests/cli/test_install_cli_arguments.py:425
Functiontest_config_meta_override_preserves_identity_hash
The fastmcp.json `tools:` path goes through the same preservation.
tests/tools/tool_transform/test_metadata.py:205
Methodtest_config_server_example
Test the actual config_server.py example.
tests/cli/test_server_args.py:112
Methodtest_config_server_with_client
Test that a server loaded from config works with a client.
tests/cli/test_mcp_server_config_integration.py:88
Functiontest_config_subset_independence
Test that config subsets can be used independently.
tests/cli/test_run_config.py:251
Functiontest_config_symlink_keeps_its_own_name
A symlinked config keeps the link's name, so the spec is still read as JSON.
tests/cli/test_run_config.py:335
Methodtest_config_url_parsing
Test that config_url is parsed correctly to extract base URL and project ID.
tests/server/auth/providers/test_descope.py:54
Methodtest_config_url_takes_precedence_over_old_api
Test that config_url takes precedence when both APIs are provided.
tests/server/auth/providers/test_descope.py:347
← previousnext →9,401–9,500 of 17,519, ranked by callers