MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_error_with_non_text_content_raises_with_fallback_message
(self)
tests/client/client/test_error_handling.py:230
Methodtest_error_with_structured_content_does_not_parse_data
(self)
tests/client/client/test_error_handling.py:262
Methodtest_error_with_text_content_raises_with_message
(self)
tests/client/client/test_error_handling.py:247
Methodtest_error_with_unsafe_transaction_redirect_returns_html_error
IdP errors must not redirect to unsafe stored callback URIs.
tests/server/auth/oauth_proxy/test_oauth_proxy.py:477
Methodtest_error_with_valid_transaction_redirects_to_client
When the IdP returns an error and the transaction exists, the proxy must forward the error to the client's redirect_uri rather than showing
tests/server/auth/oauth_proxy/test_oauth_proxy.py:379
Methodtest_errors_without_auth
(self)
tests/server/test_session_provider.py:123
Methodtest_es256_issuer_supported_via_algorithm_config
( self, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_identity_assertion.py:792
Methodtest_escapes_rich_markup_and_control_chars
( self, capsys: pytest.CaptureFixture[str] )
tests/cli/test_client_commands.py:560
Methodtest_event_entry_with_message
(self)
tests/server/test_event_store.py:20
Methodtest_event_entry_without_message
(self)
tests/server/test_event_store.py:30
Methodtest_every_issuer_form_is_accepted
Both config URL forms accept all three issuer forms of the project.
tests/server/auth/providers/test_descope.py:431
Functiontest_every_mcpserver_constructor_param_is_mapped
The SDK v2 guide claims an exhaustive constructor mapping — hold it to that. A parameter added to ``MCPServer`` upstream should fail here rather
tests/docs/test_upgrade_guide_api_claims.py:224
Methodtest_evicted_classes_are_released
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:666
Methodtest_evicts_oldest_when_full
(self)
tests/utilities/test_token_cache.py:165
Methodtest_exact_match
Test exact URI matching without wildcards.
tests/server/auth/test_redirect_validation.py:247
Methodtest_exact_page_size
List exactly matching page size should return no cursor.
tests/server/test_pagination.py:105
Methodtest_exact_string_match
(self)
tests/server/versioning/test_versioning.py:98
Functiontest_example_executes
Every non-skipped example runs top to bottom without raising. Examples are executed under a module name other than ``__main__`` so an ``if __
tests/docs/test_upgrade_guide_examples.py:89
Methodtest_example_section_excluded
(self)
tests/utilities/test_docstring_parsing.py:77
Methodtest_except_mcp_error_catches_sdk_raised
(self)
tests/test_compat.py:224
Methodtest_exchange_authorization_code_preserves_external_scopes
External resource URIs (e.g. Microsoft Graph) and OIDC scopes don't carry the identifier_uri prefix, so the translation must leave them
tests/server/auth/providers/test_azure.py:1311
Methodtest_exchange_authorization_code_unprefixes_echoed_scopes
OAuthToken.scope returned to the client must use the unprefixed form advertised on /.well-known, not the prefixed form Azure echoes back.
tests/server/auth/providers/test_azure.py:1273
Methodtest_exchange_refresh_token_unprefixes_echoed_scopes
The same translation must apply on refresh — otherwise the cosmetic scope mismatch reappears after the first refresh.
tests/server/auth/providers/test_azure.py:1352
Functiontest_exchange_rejects_nonpositive_expires_in
(jwt_verifier, expires_in)
tests/server/auth/oauth_proxy/test_nonpositive_expires_in.py:45
Methodtest_exclude_precedence
(self)
tests/server/providers/test_local_provider_resources.py:725
Methodtest_exclude_precedence
(self)
tests/server/providers/local_provider_tools/test_tags.py:80
Methodtest_exclude_tags_all_prompts
(self)
tests/server/providers/test_local_provider_prompts.py:451
Methodtest_exclude_tags_all_resources
(self)
tests/server/providers/test_local_provider_resources.py:715
Methodtest_exclude_tags_all_resources
(self)
tests/server/providers/test_local_provider_resources.py:870
Methodtest_exclude_tags_all_tools
(self)
tests/server/providers/local_provider_tools/test_tags.py:70
Methodtest_exclude_tags_error_mentions_disable
(self)
tests/deprecated/server/test_include_exclude_tags.py:19
Methodtest_exclude_tags_raises_type_error
(self)
tests/deprecated/server/test_include_exclude_tags.py:11
Methodtest_exclude_tags_some_prompts
(self)
tests/server/providers/test_local_provider_prompts.py:456
Methodtest_exclude_tags_some_resources
(self)
tests/server/providers/test_local_provider_resources.py:720
Methodtest_exclude_tags_some_resources
(self)
tests/server/providers/test_local_provider_resources.py:875
Methodtest_exclude_tags_some_tools
(self)
tests/server/providers/local_provider_tools/test_tags.py:75
Methodtest_exclude_takes_precedence_over_include
(self)
tests/server/providers/test_local_provider_resources.py:880
Methodtest_exclude_takes_precedence_over_include
(self)
tests/server/providers/test_local_provider_prompts.py:461
Methodtest_excludes_none_fields
(self)
tests/test_apps.py:42
Methodtest_excludes_none_fields
(self)
tests/test_apps.py:83
Methodtest_excludes_none_fields
(self)
tests/test_apps.py:129
Methodtest_excludes_none_fields
(self)
tests/test_apps.py:177
Methodtest_exclusive_maximum_rejects_equal
(self, exclusive_max_number)
tests/utilities/json_schema_type/test_constraints.py:130
Methodtest_exclusive_minimum_rejects_equal
(self, exclusive_min_number)
tests/utilities/json_schema_type/test_constraints.py:116
Methodtest_execution_override_takes_precedence
Test that explicit override takes precedence over field value.
tests/tools/tool/test_tool.py:609
Methodtest_exempt_params_skipped
(self)
tests/resources/test_resource_security.py:98
Methodtest_existing_field_unchanged
Test that existing Field annotations are unchanged.
tests/utilities/test_types.py:730
Functiontest_existing_maintainer_credit_is_preserved
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:236
Methodtest_existing_mcp_error_passes_through
An MCPError chosen upstream survives translation unchanged.
tests/test_exceptions.py:51
Methodtest_exists
Test pruning a parameter that exists.
tests/utilities/test_json_schema.py:52
Functiontest_exit_under_cancelled_scope_disconnects_members
A group exited by a cancelled scope must release its hold and disconnect its members, as Client does.
tests/client/group/test_client_group.py:424
Methodtest_exits_when_no_tasks_extension_registered
A server with no TasksExtension has nothing for the CLI to serve.
tests/cli/test_tasks.py:25
Methodtest_exits_with_helpful_error_for_memory_url
Test that it exits with helpful error for memory:// URLs.
tests/cli/test_tasks.py:41
Methodtest_exits_with_subprocess_error_code
Test that non-zero exit codes from the module are propagated.
tests/cli/test_run.py:778
Methodtest_expand_encodes_literals
(self, uri_template: str, expected: str)
tests/resources/test_resource_template.py:1489
Methodtest_expand_encodes_reserved_characters
Path values are percent-encoded so the result round-trips through match.
tests/resources/test_resource_template.py:1272
Methodtest_expand_ignores_extra_params
(self)
tests/resources/test_resource_template.py:1250
Methodtest_expand_joins_list_with_literal_commas
(self, tags, expected)
tests/resources/test_resource_template.py:1601
Methodtest_expand_match_roundtrip
(self)
tests/resources/test_resource_template.py:1503
Methodtest_expand_query_params
(self)
tests/resources/test_resource_template.py:1229
Methodtest_expand_query_params_none
(self)
tests/resources/test_resource_template.py:1246
Methodtest_expand_query_params_partial
(self)
tests/resources/test_resource_template.py:1239
Methodtest_expand_simple_params
( self, template: str, params: dict[str, str], expected: str )
tests/resources/test_resource_template.py:1205
Methodtest_expand_then_match_is_identity
Extracting params from a URI and expanding them back reproduces the URI.
tests/resources/test_resource_template.py:1296
Methodtest_expand_uri_template_with_hyphens
expand_uri_template maps underscored params to hyphenated placeholders.
tests/resources/test_resource_template.py:959
Methodtest_expand_wildcard_params
( self, template: str, params: dict[str, str], expected: str )
tests/resources/test_resource_template.py:1224
Methodtest_expands_user_path
(self, skills_server: FastMCP, tmp_path: Path)
tests/utilities/test_skills.py:344
Methodtest_experimental_capabilities_default_empty
(self)
tests/test_apps.py:424
Methodtest_experimental_capabilities_in_initialize_result
(self)
tests/test_apps.py:414
Methodtest_expired_cache_entry_triggers_new_introspection
Test that expired cache entries are evicted and a new call is made.
tests/server/auth/providers/test_introspection.py:890
Methodtest_expired_client_info_removes_stale_registration
(self)
tests/client/auth/test_oauth_client.py:656
Functiontest_expired_dynamic_registration_is_retried
()
tests/client/auth/test_oauth_client.py:175
Methodtest_expired_entry_is_evicted_on_get
(self)
tests/utilities/test_token_cache.py:131
Methodtest_expired_or_invalid_token_returns_none
HTTP 400 from tokeninfo endpoint causes verify_token to return None.
tests/server/auth/providers/test_google.py:330
Methodtest_expired_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:483
Methodtest_expired_stored_token_is_refetched
Recreating a provider against a store holding an already-expired token re-fetches instead of trusting the stale token as if it never expires.
tests/client/auth/test_client_credentials.py:404
Methodtest_expired_token
(self, mcp_server_url: str, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:505
Methodtest_expired_token_rejection
Test rejection of expired tokens.
tests/server/auth/test_jwt_provider_bearer.py:124
Methodtest_expired_token_returns_none
Test that expired tokens return None.
tests/server/auth/providers/test_introspection.py:159
Methodtest_expires_at_computed_from_expires_in
expires_at is set from expires_in returned by tokeninfo.
tests/server/auth/providers/test_google.py:529
Methodtest_expires_at_derived_from_expires_in
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:118
Methodtest_expires_at_from_introspection
expires_at is set from the 'exp' claim in the introspection response.
tests/server/auth/providers/test_clerk.py:405
Functiontest_explain_prompt_levels
Test explain prompt with different detail levels
examples/testing_demo/tests/test_server.py:93
Methodtest_explicit_app_config_not_overridden
(self)
tests/test_apps_prefab.py:179
Methodtest_explicit_auth_none_disables_oauth
(self)
tests/cli/test_client_commands.py:381
Functiontest_explicit_child_extension_added_after_mount_is_discovered
()
tests/server/test_provider_extensions.py:557
Functiontest_explicit_configuration_suppresses_conflict_warning
( caplog: pytest.LogCaptureFixture, )
tests/server/test_provider_extensions.py:257
Functiontest_explicit_configuration_wins_and_removes_optional_method
( explicit_first: bool, )
tests/server/test_provider_extensions.py:199
Methodtest_explicit_description_keeps_docstring_arg_descriptions
Overriding the prompt description does not drop docstring-sourced argument descriptions — they come from separate parsing paths.
tests/prompts/test_prompt.py:581
Methodtest_explicit_field_description_overrides_docstring
Field(description=...) takes precedence over docstring.
tests/prompts/test_prompt.py:555
Methodtest_explicit_host_origin_protection_is_kept
( self, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_apps_dev_server.py:647
Methodtest_explicit_issuer_enforced
With an explicit token_issuer, wrong issuers are rejected.
tests/server/auth/providers/test_azure.py:891
Functiontest_explicit_list_tools_refreshes_past_client_response_cache
A cache-hinted server must not leave group.list_tools() serving a stale catalog: the explicit call is the documented refresh mechanism.
tests/client/group/test_client_group.py:326
Methodtest_explicit_localhost_patterns
Test that explicitly passing DEFAULT_LOCALHOST_PATTERNS restricts to localhost.
tests/server/auth/test_redirect_validation.py:569
Methodtest_explicit_mime_type_overrides_ui_default
(self)
tests/test_apps.py:303
Methodtest_explicit_mode_overrides_mirroring
An explicit ``create_proxy(mode=...)`` pins the backend era regardless of the front connection's era, overriding mirroring.
tests/server/test_mrtr_guards.py:611
Methodtest_explicit_mode_overrides_mirroring
An explicit ``create_proxy(mode=...)`` pins the era all the way down, overriding what the front negotiated.
tests/server/test_mrtr_guards.py:693
Methodtest_explicit_name_overrides_title
(self)
tests/utilities/json_schema_type/test_advanced.py:551
Methodtest_explicit_none_disables
(self)
tests/resources/test_resource_security.py:324
Methodtest_explicit_none_raises_type_error
(self)
tests/client/test_elicitation.py:642
← previousnext →7,901–8,000 of 13,374, ranked by callers