Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Function
test_secret_is_not_sent_to_a_different_authorization_server
()
tests/client/auth/test_oauth_static_client_issuer.py:43
Function
test_seed_serves_highest_version_not_last_registered
Regression (#5666 review repro 1): registering an older version after a newer one must not seed the older version's schema. Dispatch serves the
tests/server/test_mcp_param_schema_cache.py:234
Function
test_seed_skipped_when_server_transform_rewrites_schema
Regression (#5666 review repro 3): with a server-level ToolTransform renaming arguments, the pre-transform schema must not be seeded. The cach
tests/server/test_mcp_param_schema_cache.py:288
Function
test_select_model_from_preferences
(prefs: Any, expected: str)
tests/client/sampling/handlers/test_openai_handler.py:315
Function
test_select_model_from_preferences
(prefs: Any, expected: str)
tests/client/sampling/handlers/test_anthropic_handler.py:199
Method
test_selected_variant_field_reaches_the_request_body
The reported failure: meowVolume must reach the upstream API.
tests/server/providers/openapi/test_openapi_discriminator.py:229
Method
test_selection_is_registration_order_independent
End-to-end: registering two PEP 440-equivalent spellings of the same tool must select the same one regardless of registration order (e
tests/server/versioning/test_versioning.py:159
Method
test_self_is_member
Test that a class is a member of itself.
tests/utilities/test_types.py:39
Method
test_self_mount_raises
(self)
tests/server/test_server_safety.py:7
Method
test_self_ref_multiple_levels
(self, self_referential)
tests/utilities/json_schema_type/test_advanced.py:302
Method
test_self_ref_single_level
(self, self_referential)
tests/utilities/json_schema_type/test_advanced.py:293
Method
test_self_referencing_dataclass_not_wrapped
Test that self-referencing dataclasses are not wrapped in result field.
tests/tools/tool/test_content.py:322
Method
test_self_referencing_model_outputschema_mcp_compliant
Test that self-referencing model schemas are MCP spec compliant. The MCP spec requires: - type: "object" at root level - prop
tests/tools/tool/test_content.py:377
Method
test_self_referencing_pydantic_model_has_type_object_at_root
Test that self-referencing Pydantic models have type: object at root. MCP spec requires outputSchema to have "type": "object" at the root lev
tests/tools/tool/test_content.py:347
Method
test_semantic_version_sorting
Versions should sort semantically, not lexicographically.
tests/server/versioning/test_mounting.py:17
Method
test_semver_sorting
Full semver versions should sort correctly.
tests/server/versioning/test_mounting.py:50
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_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
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_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:454
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_transforms_disable_discovery_without_failing_mount
()
tests/skills/test_composition.py:135
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
← previous
next →
13,801–13,900 of 15,974, ranked by callers