MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Functiontest_to_mcp_skill_describes_every_file
(tmp_path: Path)
tests/skills/test_skill.py:189
Methodtest_to_mcp_text_contents
Text content converts to TextResourceContents.
tests/resources/test_resources.py:172
Methodtest_to_resource_content_encodes_name
(self, name: str, expected_uri: str)
tests/utilities/test_types.py:606
Methodtest_to_resource_content_error
Test error case in to_resource_content.
tests/utilities/test_types.py:624
Methodtest_to_resource_content_extension_follows_format
The URI extension comes from `format`, not the MIME subtype.
tests/utilities/test_types.py:587
Methodtest_to_resource_content_with_data
Test conversion to ResourceContent with data.
tests/utilities/test_types.py:549
Methodtest_to_resource_content_with_data_and_name_without_extension
Test data-backed File URI with a custom name that needs an extension.
tests/utilities/test_types.py:562
Methodtest_to_resource_content_with_data_preserves_name_extension
Test data-backed File URI preserves a custom name with an extension.
tests/utilities/test_types.py:570
Methodtest_to_resource_content_with_override_mime_type
Test conversion to ResourceContent with override MIME type.
tests/utilities/test_types.py:633
Methodtest_to_resource_content_with_path
Test conversion to ResourceContent with path.
tests/utilities/test_types.py:533
Methodtest_to_resource_content_with_text_data
Test conversion to ResourceContent with text data (TextResourceContents).
tests/utilities/test_types.py:613
Methodtest_toggle_enabled
(self)
tests/server/providers/test_local_provider_resources.py:746
Methodtest_toggle_enabled
(self)
tests/server/providers/test_local_provider_resources.py:961
Methodtest_toggle_enabled
(self)
tests/server/providers/test_local_provider_prompts.py:329
Methodtest_toggle_enabled
(self)
tests/server/providers/local_provider_tools/test_enabled.py:42
Methodtest_token_accepted_with_client_id_audience
Azure AD v2 tokens use the bare client_id as aud — must be accepted.
tests/server/auth/providers/test_azure.py:225
Methodtest_token_accepted_with_identifier_uri_audience
Azure AD v1 tokens use the identifier_uri as aud — must be accepted.
tests/server/auth/providers/test_azure.py:255
Methodtest_token_auth_method_initialization
Test different token endpoint auth methods.
tests/server/auth/oauth_proxy/test_tokens.py:41
Methodtest_token_auth_method_passed_to_client
Test that auth method is passed to AsyncOAuth2Client.
tests/server/auth/oauth_proxy/test_tokens.py:84
Methodtest_token_claim_creates_dependency
Test that TokenClaim creates a Dependency instance.
tests/server/test_dependencies.py:939
Methodtest_token_claim_excluded_from_tool_schema
Test that TokenClaim dependency is excluded from tool schema.
tests/server/test_dependencies.py:984
Methodtest_token_claim_exported_from_all
Test that TokenClaim is exported from __all__.
tests/server/test_dependencies.py:1008
Methodtest_token_claim_is_importable
Test that TokenClaim can be imported.
tests/server/test_dependencies.py:925
Methodtest_token_claim_raises_without_token
Test that TokenClaim raises when no token is available.
tests/server/test_dependencies.py:957
Methodtest_token_code_verifier_mismatch
Test token endpoint error - PKCE code verifier mismatch.
tests/server/test_auth_integration.py:501
Methodtest_token_endpoint_auth_method_override
(self)
tests/client/auth/test_client_credentials.py:177
Methodtest_token_endpoint_url_matches_advertised_metadata
A bare-authority base_url must not expect `aud` of `https://host//token`. CIMD is enabled by default, and a spec-following client binds its
tests/server/auth/oauth_proxy/test_oauth_proxy.py:633
Methodtest_token_error_surfaces
(self)
tests/client/auth/test_client_credentials.py:269
Methodtest_token_expired_auth_code
Test token endpoint error - authorization code has expired.
tests/server/test_auth_integration.py:423
Methodtest_token_expired_refresh_token
Test token endpoint error - refresh token has expired.
tests/server/test_auth_integration.py:540
Methodtest_token_expires_at_caps_ttl
(self)
tests/utilities/test_token_cache.py:143
Methodtest_token_hashing
Test that tokens are hashed consistently.
tests/server/auth/providers/test_introspection.py:852
Methodtest_token_introspection_overrides_cache
Test that cache overrides are passed to the verifier.
tests/server/auth/providers/test_propelauth.py:123
Methodtest_token_introspection_overrides_http_client
Test that http_client override is passed to the verifier.
tests/server/auth/providers/test_propelauth.py:140
Methodtest_token_introspection_overrides_ignores_disallowed_known_keys
Test that known IntrospectionTokenVerifier keys not in the allow list are ignored.
tests/server/auth/providers/test_propelauth.py:170
Methodtest_token_introspection_overrides_ignores_unknown_keys
Test that unknown override keys are silently ignored.
tests/server/auth/providers/test_propelauth.py:154
Methodtest_token_introspection_overrides_timeout
Test that timeout_seconds override is passed to the verifier.
tests/server/auth/providers/test_propelauth.py:110
Methodtest_token_invalid_auth_code
Test token endpoint error - authorization code does not exist.
tests/server/test_auth_integration.py:397
Methodtest_token_invalid_refresh_token
Test token endpoint error - refresh token does not exist.
tests/server/test_auth_integration.py:523
Methodtest_token_invalid_scope
Test token endpoint error - invalid scope in refresh token request.
tests/server/test_auth_integration.py:590
Functiontest_token_missing_provider_scope_is_rejected
(name: str)
tests/server/auth/test_remote_auth_required_scopes.py:103
Methodtest_token_redirect_uri_mismatch
Test token endpoint error - redirect URI mismatch.
tests/server/test_auth_integration.py:479
Methodtest_token_refresh_with_mock_provider
Test token refresh flow with mock provider.
tests/server/auth/oauth_proxy/test_e2e.py:79
Methodtest_token_rejected_with_wrong_audience
Tokens for a different application must be rejected.
tests/server/auth/providers/test_azure.py:285
Methodtest_token_round_trips_through_background_task
E2E: token set at submit time is available inside the worker.
tests/tasks/server/test_context_background_task.py:422
Methodtest_token_storage_preserves_refresh_token
Refresh token should not be lost when access token would expire.
tests/client/auth/test_oauth_client.py:552
Methodtest_token_storage_uses_long_ttl
Token storage should use a long TTL, not access token expiry. This is the ianw case: IdP returns expires_in=300 (5 min access token)
tests/client/auth/test_oauth_client.py:511
Methodtest_token_validation_error
Test token endpoint error - missing client_id returns auth error.
tests/server/test_auth_integration.py:379
Methodtest_token_verification_with_invalid_auth_fails
Test that the provider correctly rejects invalid tokens.
tests/server/auth/test_remote_auth_provider.py:424
Methodtest_token_verification_with_valid_auth_succeeds
Test that requests with valid auth token succeed.
tests/server/auth/test_remote_auth_provider.py:394
Methodtest_token_verifier_checks_client_id_not_aud
Cognito verifier should check client_id claim, not aud.
tests/server/auth/providers/test_aws.py:106
Methodtest_token_verifier_initialization
Test token verifier initialization.
tests/server/auth/test_oidc_proxy.py:492
Methodtest_token_verifier_is_bound_to_provider_client_id
Test DiscordProvider binds token verifier to the configured client ID.
tests/server/auth/providers/test_discord.py:88
Methodtest_token_verifier_preserves_legacy_positional_required_scopes
Legacy positional super().__init__(base_url, required_scopes) should keep working.
tests/server/auth/test_auth_provider.py:52
Methodtest_token_verifier_supports_audience_override
Audience param maps to client_id validation in Cognito verifier.
tests/server/auth/providers/test_aws.py:122
Methodtest_token_with_bad_signature
( self, mcp_server_url: str, rsa_key_pair_2: RSAKeyPair )
tests/server/auth/test_jwt_provider_bearer.py:546
Methodtest_token_with_insufficient_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:556
Methodtest_token_with_only_extra_scopes_returns_401
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:932
Methodtest_token_with_only_server_scopes_returns_403
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:915
Methodtest_token_with_server_and_extra_scopes_applies_change
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:948
Methodtest_token_with_server_scope_allowed
(self, rsa_key_pair: RSAKeyPair)
tests/contrib/test_component_manager.py:809
Methodtest_token_with_sufficient_scopes
(self, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:577
Methodtest_token_without_expiration
Test token without expiration field.
tests/server/auth/providers/test_introspection.py:178
Methodtest_token_without_scopes
Test token without scope field.
tests/server/auth/providers/test_introspection.py:197
Methodtest_token_without_server_scope_returns_401
( self, rsa_key_pair: RSAKeyPair )
tests/contrib/test_component_manager.py:795
Functiontest_tokens
Standard test tokens fixture.
tests/server/auth/test_oauth_mounting.py:23
Functiontest_tokens
Standard test tokens fixture for all auth tests.
tests/server/auth/test_remote_auth_provider.py:13
Functiontest_tool
(context: Context)
tests/client/test_elicitation.py:118
Functiontest_tool
()
tests/contrib/test_component_manager.py:691
Functiontest_tool
(progress: Progress = Progress())
tests/tasks/server/test_progress_dependency.py:24
Functiontest_tool
(x: int)
tests/server/middleware/test_initialization_middleware.py:148
Methodtest_tool
( unstructured: str | None = None, structured: dict[str, Any] | None = None,
tests/tools/tool/test_results.py:24
Methodtest_tool
Test tool for tool management routes.
tests/contrib/test_component_manager.py:29
Methodtest_tool
Test tool for auth testing.
tests/contrib/test_component_manager.py:268
Methodtest_tool
()
tests/contrib/test_component_manager.py:474
Methodtest_tool
()
tests/contrib/test_component_manager.py:553
Methodtest_tool
A test tool.
tests/utilities/test_inspect_icons.py:371
Methodtest_tool
()
tests/utilities/test_inspect.py:246
Methodtest_tool
()
tests/utilities/test_inspect.py:545
Methodtest_tool
()
tests/server/test_session_visibility.py:320
Methodtest_tool
(self)
tests/server/middleware/test_caching_guards.py:90
Methodtest_tool
(message: str)
tests/server/auth/test_oauth_mounting.py:130
Methodtest_tool
()
tests/server/auth/test_enhanced_error_responses.py:718
Methodtest_tool_added_after_first_call_is_reachable
Tools added to an already-mounted app after the first call are still reachable via their hashed name — get_tool_by_hash does a live wa
tests/server/providers/test_prefab_roundtrip.py:675
Methodtest_tool_added_to_server
Tool created by @tool should work when added to a server.
tests/tools/test_standalone_decorator.py:187
Methodtest_tool_annotations_bridged
(self, camel, snake, value)
tests/test_compat.py:68
Functiontest_tool_annotations_in_client_api
Test that tool annotations are correctly accessible via client API.
tests/server/test_tool_annotations.py:60
Functiontest_tool_annotations_in_mcp_protocol
Test that tool annotations are correctly propagated to MCP tools list.
tests/server/test_tool_annotations.py:36
Functiontest_tool_annotations_in_tool_manager
Test that tool annotations are correctly stored in the tool manager.
tests/server/test_tool_annotations.py:12
Methodtest_tool_annotations_title_fallback
Test that annotations.title is used when no explicit title is provided.
tests/tools/tool/test_title.py:112
Functiontest_tool_argument_validation_maps_to_invalid_params
( mode: Literal["auto", "legacy"], tool: str, arguments: dict[str, object] )
tests/server/middleware/test_error_handling.py:829
Methodtest_tool_auth_allows_injected_tool_with_scope
(self)
tests/server/middleware/test_tool_injection.py:343
Methodtest_tool_auth_denies_injected_tool_call_without_scope
(self)
tests/server/middleware/test_tool_injection.py:336
Methodtest_tool_auth_hides_injected_tool_without_scope
(self)
tests/server/middleware/test_tool_injection.py:328
Methodtest_tool_auth_on_injected_tool_matches_registered_tool
An injected tool and a registered tool with the same auth agree.
tests/server/middleware/test_tool_injection.py:353
Methodtest_tool_auth_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:535
Methodtest_tool_bare_decorator
(self)
tests/test_fastmcp_app.py:44
Methodtest_tool_body_validation_error_returns_error_result
( self, mask_error_details: bool, tool_path: str, caplog )
tests/server/test_input_validation.py:542
Methodtest_tool_bool_coercion
Test that string bools are coerced by default.
tests/server/providers/local_provider_tools/test_parameters.py:137
Methodtest_tool_call_emits_single_server_span
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:371
← previousnext →14,601–14,700 of 15,974, ranked by callers