MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

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:771
Methodtest_mcp_tool_rejects_unknown_param
(self)
tests/contrib/test_mcp_mixin.py:380
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:554
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:68
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:346
Methodtest_merges_renderer_csp_with_user_csp
(self)
tests/test_apps.py:689
Methodtest_message_auto_serializes_dict
Test Message auto-serializes dicts to JSON.
tests/prompts/test_prompt.py:669
Methodtest_message_auto_serializes_list
Test Message auto-serializes lists to JSON.
tests/prompts/test_prompt.py:679
Methodtest_message_image_content_to_mcp_prompt_message
Test that ImageContent round-trips through to_mcp_prompt_message.
tests/prompts/test_prompt.py:717
Methodtest_message_passthrough_audio_content
Test Message passes through AudioContent without JSON serialization.
tests/prompts/test_prompt.py:707
Methodtest_message_passthrough_image_content
Test Message passes through ImageContent without JSON serialization.
tests/prompts/test_prompt.py:697
Methodtest_message_string_content
Test Message with string content.
tests/prompts/test_prompt.py:651
Functiontest_message_to_create_message_result
()
tests/client/sampling/handlers/test_anthropic_handler.py:207
Methodtest_message_to_mcp_prompt_message
Test conversion to MCP PromptMessage.
tests/prompts/test_prompt.py:687
Functiontest_message_to_result_with_tools
()
tests/client/sampling/handlers/test_anthropic_handler.py:232
Methodtest_message_with_role
Test Message with explicit role.
tests/prompts/test_prompt.py:660
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:57
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:939
Methodtest_middleware_allows_tools_with_token
(self)
tests/server/auth/test_authorization.py:552
Methodtest_middleware_blocks_call_with_wrong_scope
AuthMiddleware should block calls when scope requirements aren't met.
tests/server/auth/test_authorization.py:957
Methodtest_middleware_blocks_call_without_auth
AuthMiddleware should raise AuthorizationError on unauthorized call.
tests/server/auth/test_authorization.py:920
Methodtest_middleware_blocks_explicit_restricted_prompt_version
AuthMiddleware should check the requested prompt version.
tests/server/auth/test_authorization.py:1066
Methodtest_middleware_blocks_explicit_restricted_resource_version
AuthMiddleware should check the requested resource version.
tests/server/auth/test_authorization.py:1026
Methodtest_middleware_blocks_explicit_restricted_template_version
AuthMiddleware should check the requested resource template version.
tests/server/auth/test_authorization.py:1046
Methodtest_middleware_blocks_explicit_restricted_tool_version
AuthMiddleware should check the requested tool version.
tests/server/auth/test_authorization.py:987
Methodtest_middleware_blocks_restricted_tool_version_selected_by_range
AuthMiddleware should check non-exact direct server version specs.
tests/server/auth/test_authorization.py:1007
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:504
Methodtest_middleware_filters_tools_without_token
(self)
tests/server/auth/test_authorization.py:540
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:599
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:498
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:532
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:686
Methodtest_middleware_skips_resource_on_authorization_error
(self)
tests/server/auth/test_authorization.py:644
Methodtest_middleware_skips_resource_template_on_authorization_error
(self)
tests/server/auth/test_authorization.py:664
Methodtest_middleware_skips_tool_on_authorization_error
(self)
tests/server/auth/test_authorization.py:624
Methodtest_middleware_with_restrict_tag
(self)
tests/server/auth/test_authorization.py:595
Methodtest_middleware_with_scope_check
(self)
tests/server/auth/test_authorization.py:568
Methodtest_migrated_tools_still_work
(self, pair)
tests/docs/test_upgrade_guide_equivalence.py:170
Methodtest_mime_type_from_format
Format aliases map to the same MIME type as the matching file extension.
tests/utilities/test_types.py:177
Methodtest_mime_type_from_format
Test MIME type normalization from audio format.
tests/utilities/test_types.py:302
Methodtest_min_items_accepts_valid
(self, min_items_array)
tests/utilities/json_schema_type/test_containers.py:52
Methodtest_min_items_rejects_too_few
(self, min_items_array)
tests/utilities/json_schema_type/test_containers.py:56
Methodtest_min_length_accepts_valid
(self, min_length_string)
tests/utilities/json_schema_type/test_constraints.py:37
Methodtest_min_length_rejects_short
(self, min_length_string)
tests/utilities/json_schema_type/test_constraints.py:41
Methodtest_minimal_config
Test creating a config with only required fields.
tests/cli/test_config.py:249
Methodtest_minimal_output
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:18
Methodtest_minimal_token_has_no_user_identity
Test that minimal tokens contain no user identity or custom claims.
tests/server/auth/test_jwt_issuer.py:105
Methodtest_minimum_accepts_equal
(self, min_number)
tests/utilities/json_schema_type/test_constraints.py:107
Methodtest_minimum_rejects_less
(self, min_number)
tests/utilities/json_schema_type/test_constraints.py:111
Methodtest_minted_token_iss_claim_is_base_url
(self)
tests/server/auth/test_issuer_url_identity.py:250
Methodtest_minted_token_iss_claim_is_issuer_url
(self)
tests/server/auth/test_issuer_url_identity.py:141
Methodtest_miss_for_unknown_token
(self, cache: TokenCache)
tests/utilities/test_token_cache.py:81
Functiontest_missing_annotation
Test that missing annotations don't cause errors
tests/utilities/test_typeadapter.py:148
Methodtest_missing_api_key_fails_at_construction
(self, monkeypatch)
tests/experimental/transforms/test_jev_search.py:407
Methodtest_missing_aud_returns_none
A 200 response without 'aud' is rejected.
tests/server/auth/providers/test_google.py:346
Methodtest_missing_auth_challenge_includes_supported_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:702
Methodtest_missing_auth_challenge_uses_required_scope_with_empty_catalog
(self)
tests/server/auth/test_enhanced_error_responses.py:738
Methodtest_missing_auth_no_error_attribute
Test that missing auth returns 401 without error attribute (RFC 6750 §3.1).
tests/server/auth/test_enhanced_error_responses.py:676
Methodtest_missing_bool_with_default_gets_backfilled
(self)
tests/apps/test_form.py:203
Functiontest_missing_capability
Requires the client to have declared the sampling capability (SEP-2575). A stateless server may not rely on a capability the client did not decla
tests/conformance/server.py:375
Functiontest_missing_capability_code_is_the_protocol_value
The code must track the SDK, not an early SEP-2663 draft. It shipped hardcoded as -32003, which no client recognizes: SEP-2575 assigns -32021
tests/tasks/server/test_extension.py:416
Methodtest_missing_cimd_document_raises
validate_private_key_jwt raises ValueError if client has no cimd_document.
tests/server/auth/test_cimd_validators.py:546
Methodtest_missing_colon_after_args_keyword
Malformed: 'Args' without colon is not a valid section.
tests/utilities/test_docstring_parsing.py:245
Methodtest_missing_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:235
Methodtest_missing_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:483
Methodtest_missing_config
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:551
Methodtest_missing_data_and_path_raises_error
Test that error is raised when neither path nor data is provided.
tests/utilities/test_types.py:183
Methodtest_missing_data_and_path_raises_error
Test that error is raised when neither path nor data is provided.
tests/utilities/test_types.py:322
Methodtest_missing_data_and_path_raises_error
Test that error is raised when neither path nor data is provided.
tests/utilities/test_types.py:445
Methodtest_missing_file
(self, tmp_path: Path)
tests/cli/test_discovery.py:120
← previousnext →9,401–9,500 of 13,374, ranked by callers