Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Function
test_removed_server_initiated_methods_are_absent
FastMCP 4 targets the modern protocol, so the capabilities SEP-2577 removed are not in the server-authoring API — not deprecated, not era-gated,
tests/server/test_protocol_eras.py:301
Method
test_removes_params_from_both_annotations_and_signature
Test that excluded parameters are removed from __annotations__ AND __signature__.
tests/utilities/test_types.py:592
Method
test_removing_tool_after_mounting
Test that tools removed from mounted servers are no longer accessible.
tests/server/mount/test_advanced.py:43
Function
test_renamed_arg_description_is_maintained
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:117
Method
test_renamed_field_does_not_collide_with_existing_property
(self)
tests/utilities/json_schema_type/test_generated_classes.py:324
Method
test_renamed_tool_is_callable_via_mount
Test that renamed tools can be called by new name via mount.
tests/server/providers/test_transforming_provider.py:105
Function
test_renaming_transforms_still_apply_alongside_search
()
tests/tasks/server/test_task_catalog_transforms.py:85
Method
test_render_nonexistent_prompt_sets_error
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:206
Method
test_render_prompt_calls_prompt
(self, proxy_server)
tests/server/providers/proxy/test_proxy_server.py:874
Method
test_render_prompt_creates_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:174
Method
test_render_prompt_default_implementation
Test that default render_prompt uses get_prompt and renders it.
tests/server/test_providers.py:431
Method
test_render_prompt_same_as_original
( self, fastmcp_server: FastMCP, proxy_server: FastMCPProxy )
tests/server/providers/proxy/test_proxy_server.py:860
Method
test_render_prompt_via_client
Test rendering a prompt through a server using the provider.
tests/server/providers/test_fastmcp_provider.py:267
Method
test_render_prompt_with_run_middleware_false
Middleware is NOT applied when run_middleware=False.
tests/server/middleware/test_middleware.py:577
Method
test_render_prompt_with_run_middleware_true
Middleware is applied when run_middleware=True (default).
tests/server/middleware/test_middleware.py:558
Method
test_render_prompt_with_version
render_prompt should use specified version.
tests/server/versioning/test_calls.py:230
Method
test_renderer_resource_has_correct_mime_type
(self)
tests/test_apps_prefab.py:137
Method
test_renderer_resource_has_csp
(self)
tests/test_apps_prefab.py:149
Method
test_renderer_resource_readable
(self)
tests/test_apps_prefab.py:434
Method
test_repeat_schema_maps_to_one_type
The client converts a tool's output schema on every call, so repeats must hit its adapter cache.
tests/utilities/json_schema_type/test_constraints.py:179
Function
test_repeated_large_examples_keep_defs
()
tests/utilities/test_json_schema_expansion.py:158
Function
test_repeated_long_description_keeps_defs
()
tests/utilities/test_json_schema_expansion.py:149
Method
test_repeated_type_lists_are_rejected
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:536
Method
test_replace_ref_with_defs
Test replacing $ref with $defs for JSON Schema compatibility.
tests/utilities/openapi/test_schemas.py:300
Method
test_replace_ref_with_defs_does_not_mutate_input
_replace_ref_with_defs must not mutate its input dict's lists.
tests/utilities/openapi/test_circular_references.py:27
Method
test_replace_ref_with_defs_in_additional_properties
Test replacing $ref deeply in 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:357
Method
test_replace_ref_with_defs_nested
Test replacing $ref in deeply nested structures.
tests/utilities/openapi/test_schemas.py:320
Function
test_replace_ref_with_defs_preserves_boolean_prefix_items
()
tests/utilities/openapi/test_prefixitems_ref_rewrite.py:30
Method
test_replace_ref_with_defs_produces_independent_results
Calling _replace_ref_with_defs twice on the same input must produce independent dict trees with no shared mutable objects.
tests/utilities/openapi/test_circular_references.py:44
Function
test_replace_ref_with_defs_rewrites_nested_prefix_items
()
tests/utilities/openapi/test_prefixitems_ref_rewrite.py:6
Function
test_replace_ref_with_defs_rewrites_propertyNames_ref
Regression test for issue #3303. When using dict[StrEnum, Model], Pydantic generates: { "type": "object", "
tests/utilities/openapi/test_propertynames_ref_rewrite.py:4
Method
test_replace_ref_with_defs_with_bool_additional_properties
Test replacing a bool 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:388
Method
test_replace_ref_with_defs_with_inner_schema_additional_properties
Test replacing a inner schema 'additionalProperties'.
tests/utilities/openapi/test_schemas.py:419
Method
test_replace_type
Test replacing a type with another type.
tests/utilities/test_types.py:584
Function
test_replaced_task_session_is_not_removed_by_old_weakref
A stale weakref for a replaced session does not evict the new session.
tests/tasks/server/test_context_background_task.py:125
Method
test_replacement_symbols_are_bound
(self)
tests/test_upgrade_from_v3.py:146
Method
test_replaces_existing_value_in_place_preserving_other_bytes
(self)
tests/server/auth/test_redirect_validation.py:79
Method
test_replaces_iss_already_present_in_registered_redirect_uri
A registered redirect_uri may legitimately carry its own `iss` query parameter (e.g. a multi-tenant client encoding its tenant in the
tests/server/auth/test_redirect_validation.py:136
Method
test_replay_events_after_returns_stream_id
( self, event_store, sample_message )
tests/server/test_event_store.py:78
Method
test_replay_events_after_skips_priming_events
Priming events (message=None) should not be replayed.
tests/server/test_event_store.py:99
Method
test_replay_events_after_unknown_event_id
(self, event_store)
tests/server/test_event_store.py:119
Method
test_replayed_jti_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:494
Method
test_report_progress_in_background_task
report_progress() should complete without error in a background task.
tests/tasks/server/test_context_background_task.py:343
Method
test_report_progress_request
Test that the proxy client correctly forwards the `report_progress` request.
tests/server/providers/proxy/test_proxy_client.py:335
Method
test_repr
(self)
tests/test_fastmcp_app.py:774
Method
test_repr
Test string representation of component.
tests/utilities/test_components.py:153
Method
test_repr
Transform has useful repr.
tests/server/transforms/test_resources_as_tools.py:225
Method
test_repr
Transform has useful repr.
tests/server/transforms/test_prompts_as_tools.py:206
Method
test_repr
Test string representation.
tests/server/versioning/test_versioning.py:63
Method
test_repr
Test VersionFilter string representation.
tests/server/versioning/test_filtering.py:335
Method
test_repr_disable
Repr shows disable action and criteria.
tests/server/transforms/test_visibility.py:210
Method
test_repr_enable
Repr shows enable action.
tests/server/transforms/test_visibility.py:217
Method
test_repr_match_all
Repr shows match_all.
tests/server/transforms/test_visibility.py:222
Method
test_request_approval_returns_structured_content
(self)
tests/apps/test_approval.py:8
Method
test_request_approval_with_details
(self)
tests/apps/test_approval.py:17
Method
test_request_body_and_headers_reach_the_app
(self)
tests/utilities/test_asgi_transport.py:59
Method
test_request_body_defaults
Test request body default values.
tests/utilities/openapi/test_models.py:125
Method
test_request_body_multiple_content_types
Test request body with multiple content types.
tests/utilities/openapi/test_models.py:133
Method
test_request_body_multiple_content_types
Test request body with multiple content types.
tests/utilities/openapi/test_schemas.py:622
Method
test_request_body_properties_in_tool
Test that request body properties are included in tool parameters.
tests/server/providers/openapi/test_openapi_features.py:307
Method
test_request_body_with_content_schema
Test request body with content schema.
tests/utilities/openapi/test_models.py:105
Method
test_request_building_and_execution
Test that requests are built and executed correctly.
tests/server/providers/openapi/test_comprehensive.py:478
Function
test_request_context_attributes_the_guides_route_to_exist
The guides send people to ``ctx.request_context`` for several attributes. ``FastMCPRequestContext`` resolves its attributes dynamically, so this
tests/docs/test_upgrade_guide_api_claims.py:100
Method
test_request_context_meta_access
Test that the lifted _meta dict is accessible from request context. In the v2 SDK port the wrapper's ``meta`` is the raw ``_meta`` block
tests/server/test_context.py:325
Method
test_request_context_meta_none
Test that context handles None meta gracefully.
tests/server/test_context.py:363
Method
test_request_for_required_scope_only
Requesting only the required scope keeps it and narrows away the rest.
tests/server/auth/oauth_proxy/test_identity_assertion.py:418
Method
test_request_includes_correct_headers
Test that the request includes correct headers and auth.
tests/server/auth/providers/test_introspection.py:317
Method
test_request_includes_token_and_hint
Test that the request includes token and token_type_hint.
tests/server/auth/providers/test_introspection.py:338
Method
test_request_narrowing_preserves_required_scope
A configured `required_scope` the assertion grants must always ride on the issued token; the request `scope` may only narrow the optional
tests/server/auth/oauth_proxy/test_identity_assertion.py:392
Method
test_request_scope_cannot_widen_assertion_scope
A client whose assertion grants only `readonly` cannot obtain `admin` by asking for it at the token endpoint. The request `scope` is not cover
tests/server/auth/oauth_proxy/test_identity_assertion.py:350
Method
test_request_scope_narrows_assertion_scope
When the request `scope` is a subset of the assertion's granted scopes, the issued token carries only the intersection.
tests/server/auth/oauth_proxy/test_identity_assertion.py:371
Method
test_request_uses_localhost_fallback_when_no_base_url
Test that tool uses localhost fallback when client has no base_url.
tests/server/providers/openapi/test_comprehensive.py:519
Method
test_request_with_token_applies_change
( self, rsa_key_pair: RSAKeyPair, kind: ComponentKind, key: str, route
tests/contrib/test_component_manager.py:722
Method
test_request_without_token_returns_401
( self, rsa_key_pair: RSAKeyPair, kind: ComponentKind, key: str, route
tests/contrib/test_component_manager.py:700
Method
test_request_without_token_returns_401
(self, rsa_key_pair: RSAKeyPair)
tests/contrib/test_component_manager.py:810
Method
test_requests_without_session_are_rejected
(self, method: str, path: str)
tests/cli/test_apps_dev_server.py:58
Method
test_require_docket_error_mentions_version_when_too_old
``require_docket()`` distinguishes "missing" from "too old". When pydocket is installed but pinned below the floor, the install instr
tests/server/test_dependencies.py:839
Method
test_require_docket_passes_when_installed
Test require_docket doesn't raise when docket is installed.
tests/server/test_dependencies.py:833
Method
test_required_accepts_valid
(self, required_object)
tests/utilities/json_schema_type/test_containers.py:187
Method
test_required_bool_without_default_gets_false
(self)
tests/apps/test_form.py:213
Method
test_required_mode_with_opt_in_tasks
Required mode tasks when the caller opts in.
tests/tasks/server/test_task_config.py:176
Method
test_required_mode_with_task_through_mount
(self, parent_with_modes)
tests/tasks/server/test_task_mount.py:436
Method
test_required_mode_without_opt_in_raises
Required mode raises -32021 when called without a tasks opt-in.
tests/tasks/server/test_task_config.py:168
Function
test_required_mode_without_optin_raises_32021
A legacy client never negotiates the tasks capability, so a required-mode tool call is rejected with the -32021 missing-capability error.
tests/tasks/client/test_client_tool_tasks.py:138
Method
test_required_mode_without_task_through_mount
(self, parent_with_modes)
tests/tasks/server/test_task_mount.py:447
Method
test_required_param
(self)
tests/cli/test_client_commands.py:181
Method
test_required_param
(self)
tests/cli/test_generate_cli.py:150
Method
test_required_params_in_path
Test that required parameters must be in path.
tests/resources/test_resource_template_query_params.py:159
Method
test_required_params_subset_of_uri_params
Test validation rule: Required function parameters must be in URI parameters.
tests/resources/test_resource_template.py:121
Method
test_required_properties_with_additional
Test BaseModel with required fields and additional properties
tests/utilities/json_schema_type/test_advanced.py:773
Method
test_required_rejects_missing
(self, required_object)
tests/utilities/json_schema_type/test_containers.py:193
Method
test_required_scopes_all_oidc_raises_value_error
Test that providing only OIDC scopes raises ValueError.
tests/server/auth/providers/test_azure_scopes.py:160
Method
test_required_scopes_explicit_empty_list
Passing required_scopes=[] explicitly clears inherited scopes.
tests/server/auth/test_multi_auth.py:368
Method
test_required_scopes_from_env
Test that required_scopes can be set via environment variable.
tests/server/auth/providers/test_descope.py:544
Method
test_required_scopes_from_server
(self)
tests/server/auth/test_multi_auth.py:112
Method
test_required_scopes_hooks_into_verifier
Token verifier should enforce required scopes when provided.
tests/server/auth/providers/test_scalekit.py:105
Method
test_required_scopes_not_satisfied_returns_none
Token without required scopes is rejected before userinfo.
tests/server/auth/providers/test_clerk.py:346
Method
test_required_scopes_not_satisfied_returns_none
Token without required scopes is rejected.
tests/server/auth/providers/test_google.py:457
Method
test_required_scopes_passed_to_verifier
Test that required_scopes are passed through to the token verifier.
tests/server/auth/providers/test_propelauth.py:70
Method
test_required_scopes_satisfied
Token with required scopes passes the scope check.
tests/server/auth/providers/test_google.py:433
← previous
next →
11,001–11,100 of 13,374, ranked by callers