MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_max_file_size_enforced_server_side
(self)
tests/apps/test_file_upload.py:161
Methodtest_max_items_accepts_valid
(self, max_items_array)
tests/utilities/json_schema_type/test_containers.py:65
Methodtest_max_items_rejects_too_many
(self, max_items_array)
tests/utilities/json_schema_type/test_containers.py:69
Methodtest_max_length_accepts_valid
(self, max_length_string)
tests/utilities/json_schema_type/test_constraints.py:46
Methodtest_max_length_rejects_long
(self, max_length_string)
tests/utilities/json_schema_type/test_constraints.py:50
Methodtest_max_results_caps_the_fitting_tools
(self)
tests/experimental/transforms/test_jev_search.py:195
Methodtest_max_rounds_exceeded_raises
A dependent chain needing two rounds under `max_rounds=1` raises.
tests/client/client/test_input_required_driver.py:190
Methodtest_max_rounds_exceeded_raises
A two-round guard under max_rounds=1 raises on the client driver.
tests/server/test_mrtr_guards.py:384
Methodtest_maximum_accepts_equal
(self, max_number)
tests/utilities/json_schema_type/test_constraints.py:121
Methodtest_maximum_rejects_greater
(self, max_number)
tests/utilities/json_schema_type/test_constraints.py:125
Methodtest_mcp_client_compatibility_requires_additional_properties
Test that compress_schema preserves additionalProperties: false for MCP clients. MCP clients like Claude require strict JSON schemas with add
tests/utilities/test_json_schema.py:885
Methodtest_mcp_config_dict
MCPConfig dicts are not HTTP targets — auth is per-server internally.
tests/cli/test_client_commands.py:548
Functiontest_mcp_config_file_io_uses_utf8
MCP config files must be read and written as UTF-8. On Windows, Path.read_text()/write_text() default to a locale encoding such as cp1252. Th
tests/test_mcp_config.py:459
Methodtest_mcp_config_no_auth
MCPConfig dicts handle auth per-server; no top-level auth applied.
tests/cli/test_client_commands.py:707
Functiontest_mcp_conformance
Run the full MCP conformance test suite against the server.
tests/conformance/test_conformance.py:79
Methodtest_mcp_endpoint_with_mounted_app
Test that MCP endpoint works correctly when mounted. This confirms the MCP functionality itself works with mounting.
tests/server/auth/test_oauth_mounting.py:115
Methodtest_mcp_error_is_alias
(self)
tests/test_compat.py:220
Methodtest_mcp_error_keyword_construction_works
(self)
tests/test_upgrade_from_v3.py:336
Methodtest_mcp_error_positional_construction_raises
(self)
tests/test_upgrade_from_v3.py:331
Functiontest_mcp_host_loop_exposes_ui_and_marks_backend_tools_app_only
( oembed: list[str], )
examples/apps/media_picker/test_media_picker.py:168
Methodtest_mcp_json_basic
Test basic mcp-json install command parsing.
tests/cli/test_install.py:359
Methodtest_mcp_json_minimal
Test that mcp-json works with minimal arguments.
tests/cli/test_install.py:545
Methodtest_mcp_json_with_copy
Test mcp-json install with copy to clipboard option.
tests/cli/test_install.py:369
Functiontest_mcp_method_and_name_headers_reach_server
`Mcp-Method` and `Mcp-Name` set by the SDK client arrive at the server.
tests/server/http/test_routable_headers.py:35
Functiontest_mcp_param_header_reaches_server
An `x-mcp-header` annotated parameter is mirrored into `Mcp-Param-*`. The SDK client only emits `Mcp-Param-*` once it has seen the tool's input
tests/server/http/test_routable_headers.py:46
Methodtest_mcp_prompt_rejects_unknown_param
(self)
tests/contrib/test_mcp_mixin.py:445
Functiontest_mcp_resource_generation
Test that resources are properly generated in MCP format.
tests/client/client/test_client.py:812
Methodtest_mcp_resource_rejects_unknown_param
(self)
tests/contrib/test_mcp_mixin.py:438
Methodtest_mcp_server_config_url_expects_the_project_level_issuer
Descope mints project-level issuers even for MCP server config URLs.
tests/server/auth/providers/test_descope.py:381
Functiontest_mcp_template_generation
Test that templates are properly generated in MCP format.
tests/client/client/test_client.py:828
Methodtest_mcp_tool_rejects_unknown_param
(self)
tests/contrib/test_mcp_mixin.py:431
Methodtest_mcp_types_import_path_restored_by_stable_sdk
(self)
tests/test_upgrade_from_v3.py:246
Methodtest_mcpconfigtransport_with_no_servers
Test that MCPConfigTransport raises a ValueError when initialized with an empty config.
tests/client/client/test_transport.py:107
Methodtest_media_type_without_schema
Media type declared without a schema still infers MIME type.
tests/server/providers/openapi/test_openapi_features.py:555
Methodtest_medium_schema_performance
Test parsing performance with a smaller synthetic schema. This test doesn't require network access and provides a baseline f
tests/server/providers/openapi/test_openapi_performance.py:74
Functiontest_memory_backend_does_not_request_credentials
()
tests/server/test_server_docket.py:176
Methodtest_memory_efficiency
Test that implementation doesn't significantly increase memory usage.
tests/server/providers/openapi/test_performance_comparison.py:252
Methodtest_merge_schema_with_defs_precedence
Test _merge_schema_with_precedence merges $defs correctly. Note: compress_schema no longer dereferences $ref by default. Used definit
tests/tools/tool_transform/test_schemas.py:431
Methodtest_merges_renderer_csp_with_user_csp
(self)
tests/test_apps.py:704
Methodtest_message_auto_serializes_dict
Test Message auto-serializes dicts to JSON.
tests/prompts/test_prompt.py:735
Methodtest_message_auto_serializes_list
Test Message auto-serializes lists to JSON.
tests/prompts/test_prompt.py:745
Methodtest_message_image_content_to_mcp_prompt_message
Test that ImageContent round-trips through to_mcp_prompt_message.
tests/prompts/test_prompt.py:783
Methodtest_message_is_printed_verbatim
( self, message: str, capsys: pytest.CaptureFixture[str] )
tests/cli/test_client_commands.py:1064
Methodtest_message_passthrough_audio_content
Test Message passes through AudioContent without JSON serialization.
tests/prompts/test_prompt.py:773
Methodtest_message_passthrough_image_content
Test Message passes through ImageContent without JSON serialization.
tests/prompts/test_prompt.py:763
Methodtest_message_passthrough_resource_link
Test Message passes through ResourceLink without JSON serialization.
tests/prompts/test_prompt.py:793
Methodtest_message_resource_link_reaches_client
Test a ResourceLink message is delivered as a resource_link block.
tests/prompts/test_prompt.py:806
Methodtest_message_string_content
Test Message with string content.
tests/prompts/test_prompt.py:717
Functiontest_message_to_create_message_result
()
tests/client/sampling/handlers/test_anthropic_handler.py:207
Functiontest_message_to_create_message_result_maps_stop_reason
Without tools, a reply cut off at max_tokens must say so too.
tests/client/sampling/handlers/test_anthropic_handler.py:241
Methodtest_message_to_mcp_prompt_message
Test conversion to MCP PromptMessage.
tests/prompts/test_prompt.py:753
Functiontest_message_to_result_with_tools
()
tests/client/sampling/handlers/test_anthropic_handler.py:261
Functiontest_message_to_result_with_tools_maps_stop_reason
( anthropic_stop_reason: Any, expected: str )
tests/client/sampling/handlers/test_anthropic_handler.py:308
Methodtest_message_with_role
Test Message with explicit role.
tests/prompts/test_prompt.py:726
Functiontest_meta_none_preserves_fastmcp_namespace
Clearing meta clears caller meta, not the framework namespace.
tests/tools/tool_transform/test_metadata.py:189
Functiontest_meta_override_can_extend_fastmcp_namespace
An override may add to the fastmcp namespace without dropping its keys.
tests/tools/tool_transform/test_metadata.py:196
Functiontest_meta_override_preserves_fastmcp_namespace
A meta override replaces caller meta but keeps framework-owned data. The fastmcp namespace carries app membership and the identity hash that
tests/tools/tool_transform/test_metadata.py:175
Methodtest_meta_parameter
Test that meta parameter is properly handled.
tests/tools/tool/test_tool.py:59
Methodtest_metadata_advertises_authorization_response_issuer_parameter
OAuth metadata should advertise RFC 9207 authorization response issuers.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:271
Methodtest_metadata_advertises_cimd_support
OAuth metadata should advertise CIMD and public-client auth support.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:213
Methodtest_metadata_advertises_only_public_client_auth
The proxy authenticates every client as public, so metadata must advertise `none` and must not claim secret-based methods it never enforces.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:243
Methodtest_metadata_endpoint
Test the OAuth 2.1 metadata endpoint.
tests/server/test_auth_integration.py:350
Methodtest_metadata_forwarding_error_handling
Test error handling when metadata forwarding fails. Note: This test is skipped because mocking httpx2.AsyncClient conflicts with the
tests/integration_tests/auth/test_keycloak_provider_integration.py:190
Methodtest_metadata_on_guard_arm_is_stripped
When only the guard arm carries metadata (``str | Annotated[InputRequiredResult, Field(...)]``), it is still recognized and stripped s
tests/server/test_mrtr_guards.py:1058
Methodtest_metadata_route_forwards_propelauth_response
Ensure PropelAuth metadata route proxies upstream JSON.
tests/server/auth/providers/test_propelauth.py:280
Methodtest_metadata_route_forwards_scalekit_response
Ensure Scalekit metadata route proxies upstream JSON.
tests/server/auth/providers/test_scalekit.py:224
Methodtest_method_and_params_key_isolate
Distinct method / params_key never collide in the derived string key.
tests/client/client/test_kv_response_cache.py:126
Functiontest_method_handler_reaches_server_registry
A method handler can reach the FastMCP component registry via the extension.
tests/server/test_extensions.py:138
Functiontest_method_protocol_version_gating
A version-gated method is rejected as METHOD_NOT_FOUND off its versions.
tests/server/test_extensions.py:174
Methodtest_method_rewrite_does_not_redirect_dispatch
Only the message is rewritable. Dispatch has already branched on the method to decide this message has no interior handler, so honoring a
tests/server/middleware/test_message_visibility.py:276
Functiontest_methods_claimed_unchanged_have_identical_signatures
(method: str)
tests/docs/test_upgrade_guide_api_claims.py:141
Functiontest_methods_with_known_signature_differences_still_differ
(method: str)
tests/docs/test_upgrade_guide_api_claims.py:153
Methodtest_middleware_allows_call_with_auth
AuthMiddleware should allow tool call with valid token.
tests/server/auth/test_authorization.py:956
Methodtest_middleware_allows_tools_with_token
(self)
tests/server/auth/test_authorization.py:569
Methodtest_middleware_blocks_call_with_wrong_scope
AuthMiddleware should block calls when scope requirements aren't met.
tests/server/auth/test_authorization.py:974
Methodtest_middleware_blocks_call_without_auth
AuthMiddleware should raise AuthorizationError on unauthorized call.
tests/server/auth/test_authorization.py:937
Methodtest_middleware_blocks_explicit_restricted_prompt_version
AuthMiddleware should check the requested prompt version.
tests/server/auth/test_authorization.py:1083
Methodtest_middleware_blocks_explicit_restricted_resource_version
AuthMiddleware should check the requested resource version.
tests/server/auth/test_authorization.py:1043
Methodtest_middleware_blocks_explicit_restricted_template_version
AuthMiddleware should check the requested resource template version.
tests/server/auth/test_authorization.py:1063
Methodtest_middleware_blocks_explicit_restricted_tool_version
AuthMiddleware should check the requested tool version.
tests/server/auth/test_authorization.py:1004
Methodtest_middleware_blocks_restricted_tool_version_selected_by_range
AuthMiddleware should check non-exact direct server version specs.
tests/server/auth/test_authorization.py:1024
Methodtest_middleware_calling_a_tool_keeps_the_client_opt_in
(self)
tests/tasks/server/test_task_catalog_transforms.py:207
Functiontest_middleware_can_access_initialize_result
Test that middleware can access the InitializeResult from call_next(). This verifies that the initialize response is returned through the middlew
tests/server/middleware/test_initialization_middleware.py:274
Methodtest_middleware_can_selectively_deny_tools
Test that middleware can deny specific tools while allowing others.
tests/server/middleware/test_middleware_nested.py:552
Methodtest_middleware_error_before_handler_emits_error_span
An unexpected error raised in FastMCP middleware, before the high-level path, propagates to the seam span, which records it as an erro
tests/server/telemetry/test_server_tracing.py:506
Methodtest_middleware_filters_tools_without_token
(self)
tests/server/auth/test_authorization.py:557
Functiontest_middleware_mcp_error_after_call_next
Test that MCPError raised after call_next doesn't break the connection. When an error is raised after call_next, the responder has already comple
tests/server/middleware/test_initialization_middleware.py:357
Functiontest_middleware_mcp_error_before_call_next
Test MCPError raised before calling next middleware.
tests/server/middleware/test_initialization_middleware.py:335
Functiontest_middleware_mcp_error_during_initialization
Test that MCPError raised in middleware during initialization is sent to client.
tests/server/middleware/test_initialization_middleware.py:311
Methodtest_middleware_modification_skipped_when_run_middleware_false
Middleware that modifies args/results is skipped.
tests/server/middleware/test_middleware.py:628
Methodtest_middleware_observes_ask_then_final_result_per_leg
A logging-style recording middleware sees the full chain run on every leg: the ask (`InputRequiredToolResult`) is the observed result on the
tests/server/test_mrtr_guards.py:826
Methodtest_middleware_owns_the_names_it_shadows
Binding describes the listing a client will see, so it has to run the middleware chain. An injected tool sharing a backend's name owns
tests/server/providers/test_prefab_roundtrip.py:531
Methodtest_middleware_produced_results_are_rebound
Middleware can answer a call itself, and such a result never reaches the core dispatch path — so rebinding belongs above the chain, no
tests/server/providers/test_prefab_roundtrip.py:565
Functiontest_middleware_receives_initialization
Test that middleware can intercept initialization requests.
tests/server/middleware/test_initialization_middleware.py:141
Functiontest_middleware_runs_on_both_eras
()
tests/server/test_protocol_eras.py:387
Methodtest_middleware_skips_prompt_on_authorization_error
(self)
tests/server/auth/test_authorization.py:703
Methodtest_middleware_skips_resource_on_authorization_error
(self)
tests/server/auth/test_authorization.py:661
Methodtest_middleware_skips_resource_template_on_authorization_error
(self)
tests/server/auth/test_authorization.py:681
Methodtest_middleware_skips_tool_on_authorization_error
(self)
tests/server/auth/test_authorization.py:641
Methodtest_middleware_with_restrict_tag
(self)
tests/server/auth/test_authorization.py:612
← previousnext →11,201–11,300 of 15,974, ranked by callers