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
Method
test_error_with_non_text_content_raises_with_fallback_message
(self)
tests/client/client/test_error_handling.py:230
Method
test_error_with_structured_content_does_not_parse_data
(self)
tests/client/client/test_error_handling.py:262
Method
test_error_with_text_content_raises_with_message
(self)
tests/client/client/test_error_handling.py:247
Method
test_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
Method
test_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
Method
test_errors_without_auth
(self)
tests/server/test_session_provider.py:123
Method
test_es256_issuer_supported_via_algorithm_config
( self, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_identity_assertion.py:792
Method
test_escapes_rich_markup_and_control_chars
( self, capsys: pytest.CaptureFixture[str] )
tests/cli/test_client_commands.py:560
Method
test_event_entry_with_message
(self)
tests/server/test_event_store.py:20
Method
test_event_entry_without_message
(self)
tests/server/test_event_store.py:30
Method
test_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
Function
test_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
Method
test_evicted_classes_are_released
(self, monkeypatch: pytest.MonkeyPatch)
tests/utilities/json_schema_type/test_generated_classes.py:666
Method
test_evicts_oldest_when_full
(self)
tests/utilities/test_token_cache.py:165
Method
test_exact_match
Test exact URI matching without wildcards.
tests/server/auth/test_redirect_validation.py:247
Method
test_exact_page_size
List exactly matching page size should return no cursor.
tests/server/test_pagination.py:105
Method
test_exact_string_match
(self)
tests/server/versioning/test_versioning.py:98
Function
test_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
Method
test_example_section_excluded
(self)
tests/utilities/test_docstring_parsing.py:77
Method
test_except_mcp_error_catches_sdk_raised
(self)
tests/test_compat.py:224
Method
test_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
Method
test_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
Method
test_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
Function
test_exchange_rejects_nonpositive_expires_in
(jwt_verifier, expires_in)
tests/server/auth/oauth_proxy/test_nonpositive_expires_in.py:45
Method
test_exclude_precedence
(self)
tests/server/providers/test_local_provider_resources.py:725
Method
test_exclude_precedence
(self)
tests/server/providers/local_provider_tools/test_tags.py:80
Method
test_exclude_tags_all_prompts
(self)
tests/server/providers/test_local_provider_prompts.py:451
Method
test_exclude_tags_all_resources
(self)
tests/server/providers/test_local_provider_resources.py:715
Method
test_exclude_tags_all_resources
(self)
tests/server/providers/test_local_provider_resources.py:870
Method
test_exclude_tags_all_tools
(self)
tests/server/providers/local_provider_tools/test_tags.py:70
Method
test_exclude_tags_error_mentions_disable
(self)
tests/deprecated/server/test_include_exclude_tags.py:19
Method
test_exclude_tags_raises_type_error
(self)
tests/deprecated/server/test_include_exclude_tags.py:11
Method
test_exclude_tags_some_prompts
(self)
tests/server/providers/test_local_provider_prompts.py:456
Method
test_exclude_tags_some_resources
(self)
tests/server/providers/test_local_provider_resources.py:720
Method
test_exclude_tags_some_resources
(self)
tests/server/providers/test_local_provider_resources.py:875
Method
test_exclude_tags_some_tools
(self)
tests/server/providers/local_provider_tools/test_tags.py:75
Method
test_exclude_takes_precedence_over_include
(self)
tests/server/providers/test_local_provider_resources.py:880
Method
test_exclude_takes_precedence_over_include
(self)
tests/server/providers/test_local_provider_prompts.py:461
Method
test_excludes_none_fields
(self)
tests/test_apps.py:42
Method
test_excludes_none_fields
(self)
tests/test_apps.py:83
Method
test_excludes_none_fields
(self)
tests/test_apps.py:129
Method
test_excludes_none_fields
(self)
tests/test_apps.py:177
Method
test_exclusive_maximum_rejects_equal
(self, exclusive_max_number)
tests/utilities/json_schema_type/test_constraints.py:130
Method
test_exclusive_minimum_rejects_equal
(self, exclusive_min_number)
tests/utilities/json_schema_type/test_constraints.py:116
Method
test_execution_override_takes_precedence
Test that explicit override takes precedence over field value.
tests/tools/tool/test_tool.py:609
Method
test_exempt_params_skipped
(self)
tests/resources/test_resource_security.py:98
Method
test_existing_field_unchanged
Test that existing Field annotations are unchanged.
tests/utilities/test_types.py:730
Function
test_existing_maintainer_credit_is_preserved
( monkeypatch: pytest.MonkeyPatch, )
tests/scripts/test_release_contributor_credit.py:236
Method
test_existing_mcp_error_passes_through
An MCPError chosen upstream survives translation unchanged.
tests/test_exceptions.py:51
Method
test_exists
Test pruning a parameter that exists.
tests/utilities/test_json_schema.py:52
Function
test_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
Method
test_exits_when_no_tasks_extension_registered
A server with no TasksExtension has nothing for the CLI to serve.
tests/cli/test_tasks.py:25
Method
test_exits_with_helpful_error_for_memory_url
Test that it exits with helpful error for memory:// URLs.
tests/cli/test_tasks.py:41
Method
test_exits_with_subprocess_error_code
Test that non-zero exit codes from the module are propagated.
tests/cli/test_run.py:778
Method
test_expand_encodes_literals
(self, uri_template: str, expected: str)
tests/resources/test_resource_template.py:1489
Method
test_expand_encodes_reserved_characters
Path values are percent-encoded so the result round-trips through match.
tests/resources/test_resource_template.py:1272
Method
test_expand_ignores_extra_params
(self)
tests/resources/test_resource_template.py:1250
Method
test_expand_joins_list_with_literal_commas
(self, tags, expected)
tests/resources/test_resource_template.py:1601
Method
test_expand_match_roundtrip
(self)
tests/resources/test_resource_template.py:1503
Method
test_expand_query_params
(self)
tests/resources/test_resource_template.py:1229
Method
test_expand_query_params_none
(self)
tests/resources/test_resource_template.py:1246
Method
test_expand_query_params_partial
(self)
tests/resources/test_resource_template.py:1239
Method
test_expand_simple_params
( self, template: str, params: dict[str, str], expected: str )
tests/resources/test_resource_template.py:1205
Method
test_expand_then_match_is_identity
Extracting params from a URI and expanding them back reproduces the URI.
tests/resources/test_resource_template.py:1296
Method
test_expand_uri_template_with_hyphens
expand_uri_template maps underscored params to hyphenated placeholders.
tests/resources/test_resource_template.py:959
Method
test_expand_wildcard_params
( self, template: str, params: dict[str, str], expected: str )
tests/resources/test_resource_template.py:1224
Method
test_expands_user_path
(self, skills_server: FastMCP, tmp_path: Path)
tests/utilities/test_skills.py:344
Method
test_experimental_capabilities_default_empty
(self)
tests/test_apps.py:424
Method
test_experimental_capabilities_in_initialize_result
(self)
tests/test_apps.py:414
Method
test_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
Method
test_expired_client_info_removes_stale_registration
(self)
tests/client/auth/test_oauth_client.py:656
Function
test_expired_dynamic_registration_is_retried
()
tests/client/auth/test_oauth_client.py:175
Method
test_expired_entry_is_evicted_on_get
(self)
tests/utilities/test_token_cache.py:131
Method
test_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
Method
test_expired_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:483
Method
test_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
Method
test_expired_token
(self, mcp_server_url: str, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:505
Method
test_expired_token_rejection
Test rejection of expired tokens.
tests/server/auth/test_jwt_provider_bearer.py:124
Method
test_expired_token_returns_none
Test that expired tokens return None.
tests/server/auth/providers/test_introspection.py:159
Method
test_expires_at_computed_from_expires_in
expires_at is set from expires_in returned by tokeninfo.
tests/server/auth/providers/test_google.py:529
Method
test_expires_at_derived_from_expires_in
(self, httpx_mock: HTTPXMock)
tests/server/auth/oauth_proxy/test_upstream_client.py:118
Method
test_expires_at_from_introspection
expires_at is set from the 'exp' claim in the introspection response.
tests/server/auth/providers/test_clerk.py:405
Function
test_explain_prompt_levels
Test explain prompt with different detail levels
examples/testing_demo/tests/test_server.py:93
Method
test_explicit_app_config_not_overridden
(self)
tests/test_apps_prefab.py:179
Method
test_explicit_auth_none_disables_oauth
(self)
tests/cli/test_client_commands.py:381
Function
test_explicit_child_extension_added_after_mount_is_discovered
()
tests/server/test_provider_extensions.py:557
Function
test_explicit_configuration_suppresses_conflict_warning
( caplog: pytest.LogCaptureFixture, )
tests/server/test_provider_extensions.py:257
Function
test_explicit_configuration_wins_and_removes_optional_method
( explicit_first: bool, )
tests/server/test_provider_extensions.py:199
Method
test_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
Method
test_explicit_field_description_overrides_docstring
Field(description=...) takes precedence over docstring.
tests/prompts/test_prompt.py:555
Method
test_explicit_host_origin_protection_is_kept
( self, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_apps_dev_server.py:647
Method
test_explicit_issuer_enforced
With an explicit token_issuer, wrong issuers are rejected.
tests/server/auth/providers/test_azure.py:891
Function
test_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
Method
test_explicit_localhost_patterns
Test that explicitly passing DEFAULT_LOCALHOST_PATTERNS restricts to localhost.
tests/server/auth/test_redirect_validation.py:569
Method
test_explicit_mime_type_overrides_ui_default
(self)
tests/test_apps.py:303
Method
test_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
Method
test_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
Method
test_explicit_name_overrides_title
(self)
tests/utilities/json_schema_type/test_advanced.py:551
Method
test_explicit_none_disables
(self)
tests/resources/test_resource_security.py:324
Method
test_explicit_none_raises_type_error
(self)
tests/client/test_elicitation.py:642
← previous
next →
7,901–8,000 of 13,374, ranked by callers