Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
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:374
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:395
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:774
Function
test_request_without_read_only_properties_is_sent
()
tests/server/providers/openapi/test_read_only_requests.py:92
Method
test_request_without_token_returns_401
( self, rsa_key_pair: RSAKeyPair, kind: ComponentKind, key: str, route
tests/contrib/test_component_manager.py:752
Method
test_request_without_token_returns_401
(self, rsa_key_pair: RSAKeyPair)
tests/contrib/test_component_manager.py:862
Method
test_requests_without_session_are_rejected
(self, method: str, path: str)
tests/cli/test_apps_dev_server.py:121
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:345
Method
test_required_bool_without_default_gets_false
(self)
tests/apps/test_form.py:214
Function
test_required_in_sibling_all_of_member_loses_write_only_name
()
tests/server/providers/openapi/test_write_only_responses.py:271
Function
test_required_is_cleared_when_every_property_is_write_only
()
tests/server/providers/openapi/test_write_only_responses.py:121
Function
test_required_json_array_preserves_empty_value
()
tests/cli/test_generate_cli_empty_arrays.py:24
Function
test_required_json_object_with_omitted_properties_sends_empty_object
A required object body is {} when every property is left out. Optional bodies stay absent. Supplying a property still sends that object.
tests/server/providers/openapi/test_object_request_bodies.py:595
Function
test_required_json_parameter_preserves_null
( value: str, expected: dict[str, str] | None )
tests/cli/test_generate_cli_arguments.py:34
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
Function
test_required_names_covered_by_additional_properties_stay_required
()
tests/server/providers/openapi/test_write_only_responses.py:232
Function
test_required_names_defined_by_all_of_stay_required
()
tests/server/providers/openapi/test_write_only_responses.py:214
Method
test_required_nullable_field_is_rejected
(self)
tests/client/test_elicitation.py:772
Method
test_required_param
(self)
tests/cli/test_client_commands.py:334
Method
test_required_param
(self)
tests/cli/test_generate_cli.py:152
Method
test_required_params_in_path
Test that required parameters must be in path.
tests/resources/test_resource_template_query_params.py:161
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:125
Method
test_required_properties_with_additional
Test BaseModel with required fields and additional properties
tests/utilities/json_schema_type/test_advanced.py:1412
Method
test_required_rejects_missing
(self, required_object)
tests/utilities/json_schema_type/test_containers.py:351
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_are_enforced_by_the_provider
( self, provider: WorkOSProvider )
tests/server/auth/providers/test_workos.py:479
Method
test_required_scopes_default_to_empty
(self, memory_storage: MemoryStore)
tests/server/auth/providers/test_workos.py:486
Method
test_required_scopes_explicit_empty_list
Passing required_scopes=[] explicitly clears inherited scopes.
tests/server/auth/test_multi_auth.py:445
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:151
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:386
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
Method
test_required_scopes_support
Test that required_scopes are supported and passed to JWT verifier.
tests/server/auth/providers/test_descope.py:519
Method
test_required_scopes_validation
Test that required scopes are validated.
tests/server/auth/providers/test_introspection.py:215
Method
test_required_scopes_validation_success
Test successful validation with required scopes.
tests/server/auth/providers/test_introspection.py:236
Method
test_required_scopes_with_oidc_filters_validation
Test that OIDC scopes in required_scopes are filtered from token validation.
tests/server/auth/providers/test_azure_scopes.py:142
Method
test_required_scopes_with_old_api
Test that required_scopes work with the old API (project_id + descope_base_url).
tests/server/auth/providers/test_descope.py:531
Method
test_required_task_tool_refuses_nested_call
(self)
tests/tasks/server/test_task_catalog_transforms.py:157
Method
test_required_tool_exposes_task_support
Tools with mode=required expose task_support='required'.
tests/tasks/server/test_task_config.py:231
Function
test_required_tool_tasks_when_opted_in
()
tests/tasks/server/test_extension.py:141
Function
test_required_tool_without_opt_in_raises_missing_capability
()
tests/tasks/server/test_extension.py:151
Method
test_requirements_path_resolution
Test that requirements path is resolved correctly.
tests/cli/test_mcp_server_config_integration.py:222
Method
test_requires_all_roles
(self)
tests/server/auth/test_authorization.py:141
Method
test_requires_config_url_or_project_id_and_descope_base_url
Test that either config_url or both project_id and descope_base_url are required.
tests/server/auth/providers/test_descope.py:303
Method
test_requires_server_or_verifiers
MultiAuth with neither server nor verifiers raises ValueError.
tests/server/auth/test_multi_auth.py:75
Method
test_requires_trusted_issuers
(self)
tests/server/auth/oauth_proxy/test_identity_assertion.py:177
Function
test_reseed_after_removal_sorts_versions_semantically
Regression (#5666 review repro 2): re-seeding after a version-scoped removal must pick the surviving version the way dispatch does (PEP 440),
tests/server/test_mcp_param_schema_cache.py:259
Method
test_reserved_names_become_aliased_fields
(self, name: str)
tests/utilities/json_schema_type/test_generated_classes.py:286
Function
test_resolve_allowed_hosts_for_run_merges_configured_hosts_with_loopback_host
()
tests/server/test_transport.py:26
Function
test_resolve_allowed_hosts_for_run_preserves_configured_hosts_when_disabled
()
tests/server/test_transport.py:35
Function
test_resolve_allowed_hosts_for_run_preserves_explicit_hosts
()
tests/server/test_transport.py:44
Method
test_resolve_callable_no_context
Without context, callables resolve to their bare __name__.
tests/test_fastmcp_app.py:305
Method
test_resolve_hostname_preserves_resolver_order
Resolved addresses should keep getaddrinfo order after deduplication.
tests/server/auth/test_ssrf_protection.py:145
Method
test_resolve_owning_server_recovers_mounted_child
(self, parent_server)
tests/tasks/server/test_task_mount.py:124
Method
test_resolve_owning_server_respects_version
Two versions of a mounted tool name resolve to their own child server.
tests/tasks/server/test_task_mount.py:160
Function
test_resolve_param_hints_handles_partials
Resolve partials via their function when direct introspection is empty. Argument coercion must not raise for partial-wrapped callables — it shoul
tests/tasks/server/test_task_tools.py:248
Method
test_resolve_string_no_context
Without a running Context the resolver returns bare names.
tests/test_fastmcp_app.py:291
Method
test_resolve_string_with_app_name
With an app name the resolver produces a hashed backend name.
tests/test_fastmcp_app.py:297
Method
test_resolve_unresolvable_raises
(self)
tests/test_fastmcp_app.py:315
Method
test_resolved_session_exposes_its_id
A session resolved from a `session_id` argument carries that id.
tests/server/test_session_provider.py:352
Method
test_resolver_receives_effective_timeout
A `None` per-call timeout falls back to the client timeout.
tests/client/test_client_extensions.py:304
Method
test_resolves_self_referential_model
Test resolving schema for self-referential models like Issue.
tests/utilities/test_json_schema.py:1111
Method
test_resolves_simple_root_ref
Test that simple $ref at root is resolved.
tests/utilities/test_json_schema.py:1084
Function
test_resource
()
tests/contrib/test_component_manager.py:695
Function
test_resource
()
tests/server/middleware/test_middleware_nested.py:133
Function
test_resource
()
tests/server/middleware/test_middleware.py:131
Function
test_resource
A resource that takes time to read.
tests/server/middleware/test_timing.py:167
Function
test_resource
A test resource for logging.
tests/server/middleware/test_logging.py:424
Method
test_resource
Test resource for tool management routes.
tests/contrib/test_component_manager.py:35
Method
test_resource
Test resource for auth testing.
tests/contrib/test_component_manager.py:273
Method
test_resource
()
tests/contrib/test_component_manager.py:478
Method
test_resource
()
tests/contrib/test_component_manager.py:557
Method
test_resource
()
tests/utilities/test_inspect.py:250
Method
test_resource
(self)
tests/server/middleware/test_caching_guards.py:102
Method
test_resource
()
tests/server/middleware/test_middleware_nested.py:185
Method
test_resource
()
tests/server/middleware/test_middleware.py:541
Method
test_resource
A test resource for logging.
tests/server/middleware/test_logging.py:462
Method
test_resource
()
tests/server/providers/test_local_provider.py:89
Method
test_resource
()
tests/server/providers/test_local_provider.py:203
Method
test_resource
()
tests/server/providers/local_provider_tools/test_context.py:98
Function
test_resource_accepts_integral_json_number
()
tests/skills/test_models.py:227
Method
test_resource_added_to_server
Resource created by @resource should work when added to a server.
tests/resources/test_standalone_decorator.py:132
Method
test_resource_and_prompt_get_task_tool_result
(self)
tests/tasks/server/test_task_catalog_transforms.py:172
Function
test_resource_and_prompt_input_through_pinned_backend
( backend: FastMCP, elicit: bool, expected: str )
tests/server/providers/proxy/test_relayed_capabilities.py:139
Method
test_resource_app_metadata
(self)
tests/test_apps.py:314
Method
test_resource_auth_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:574
Method
test_resource_base_url_from_server
(self)
tests/server/auth/test_multi_auth.py:123
Method
test_resource_base_url_override
(self)
tests/server/auth/test_multi_auth.py:134
Function
test_resource_cache_accepts_existing_text_entries
()
tests/server/middleware/test_caching.py:916
Method
test_resource_completes_with_responses
(self)
tests/server/test_mrtr_guards_components.py:166
← previous
next →
13,901–14,000 of 16,725, ranked by callers