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_error_with_non_text_content_raises_with_fallback_message
(self)
tests/client/client/test_error_handling.py:308
Method
test_error_with_structured_content_does_not_parse_data
(self)
tests/client/client/test_error_handling.py:340
Method
test_error_with_text_content_raises_with_message
(self)
tests/client/client/test_error_handling.py:325
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:516
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:418
Method
test_errors_without_auth
(self)
tests/server/test_session_provider.py:125
Method
test_es256_issuer_supported_via_algorithm_config
( self, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_identity_assertion.py:816
Method
test_escaped_and_spaced_schema_names_survive_parsing
(self)
tests/utilities/openapi/test_parser.py:598
Function
test_escaped_reference_tokens
(definition: str, token: str)
tests/utilities/json_schema_type/test_advanced.py:317
Method
test_escapes_percent_encoding_and_subpointers_are_preserved
(self)
tests/utilities/test_json_schema.py:975
Method
test_escapes_rich_markup_and_control_chars
( self, capsys: pytest.CaptureFixture[str] )
tests/cli/test_client_commands.py:1139
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
Function
test_events_command_lives_under_experimental
()
tests/experimental/events/test_cli.py:205
Function
test_events_without_a_snapshot_publish_nothing
(monkeypatch, capsys)
tests/test_triage_floor_feed.py:136
Function
test_events_without_an_id_or_timestamp_get_generated_ones
()
tests/experimental/events/test_extension.py:171
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
Function
test_every_open_stream_receives_a_broadcast
(server: FastMCP)
tests/server/test_subscriptions.py:231
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:202
Method
test_exact_match
Test exact URI matching without wildcards.
tests/server/auth/test_redirect_validation.py:307
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_clients_only_ping_in_legacy_mode
()
tests/test_examples_ping.py:32
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:79
Method
test_example_section_excluded_no_params
(self)
tests/utilities/test_docstring_parsing.py:317
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:1543
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:1505
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:1584
Function
test_exchange_rejects_nonpositive_expires_in
(jwt_verifier, expires_in)
tests/server/auth/oauth_proxy/test_nonpositive_expires_in.py:45
Method
test_exchange_renews_client_registration_ttl
( self, idp_key: RSAKeyPair, config: IdentityAssertion, httpx_mock: HTTPXMock,
tests/server/auth/oauth_proxy/test_identity_assertion.py:296
Method
test_exclude_precedence
(self)
tests/server/providers/test_local_provider_resources.py:726
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:716
Method
test_exclude_tags_all_resources
(self)
tests/server/providers/test_local_provider_resources.py:928
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:721
Method
test_exclude_tags_some_resources
(self)
tests/server/providers/test_local_provider_resources.py:933
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:938
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:43
Method
test_excludes_none_fields
(self)
tests/test_apps.py:84
Method
test_excludes_none_fields
(self)
tests/test_apps.py:130
Method
test_excludes_none_fields
(self)
tests/test_apps.py:178
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_not_found_keeps_tool_name
(self, meter_provider, reader)
tests/server/middleware/test_usage.py:402
Method
test_execution_override_takes_precedence
Test that explicit override takes precedence over field value.
tests/tools/tool/test_tool.py:698
Function
test_execution_ttl_reads_from_env
FASTMCP_DOCKET_EXECUTION_TTL configures the execution TTL.
tests/tasks/server/test_task_ttl.py:91
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:812
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:53
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:568
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:32
Method
test_exits_with_helpful_error_for_memory_url
Test that it exits with helpful error for memory:// URLs.
tests/cli/test_tasks.py:48
Method
test_exits_with_subprocess_error_code
Test that non-zero exit codes from the module are propagated.
tests/cli/test_run.py:989
Method
test_expand_continuation_after_query
(self)
tests/resources/test_resource_template_level3.py:162
Method
test_expand_continuation_without_query_value
(self)
tests/resources/test_resource_template_level3.py:166
Method
test_expand_encodes_literals
(self, uri_template: str, expected: str)
tests/resources/test_resource_template.py:1744
Method
test_expand_encodes_reserved_characters
Path values are percent-encoded so the result round-trips through match.
tests/resources/test_resource_template.py:1508
Method
test_expand_ignores_extra_params
(self)
tests/resources/test_resource_template.py:1486
Method
test_expand_joins_blocks_into_one_query_string
(self)
tests/resources/test_resource_template_query_params.py:553
Method
test_expand_joins_list_with_literal_commas
(self, tags, expected)
tests/resources/test_resource_template.py:1856
Method
test_expand_match_round_trip_across_blocks
(self)
tests/resources/test_resource_template_query_params.py:565
Method
test_expand_match_roundtrip
(self)
tests/resources/test_resource_template.py:1758
Method
test_expand_query_params
(self)
tests/resources/test_resource_template.py:1465
Method
test_expand_query_params_none
(self)
tests/resources/test_resource_template.py:1482
Method
test_expand_query_params_partial
(self)
tests/resources/test_resource_template.py:1475
Method
test_expand_resolves_sanitized_keys
( self, template: str, params: dict[str, str], expected: str )
tests/resources/test_resource_template.py:2043
Method
test_expand_simple_params
( self, template: str, params: dict[str, str], expected: str )
tests/resources/test_resource_template.py:1441
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:1532
Method
test_expand_uri_template_with_hyphens
expand_uri_template maps underscored params to hyphenated placeholders.
tests/resources/test_resource_template.py:1046
Method
test_expand_wildcard_params
( self, template: str, params: dict[str, str], expected: str )
tests/resources/test_resource_template.py:1460
Method
test_expands_user_path
(self, skills_server: FastMCP, tmp_path: Path)
tests/utilities/test_skills.py:370
Method
test_experimental_capabilities_default_empty
(self)
tests/test_apps.py:425
Method
test_experimental_capabilities_in_initialize_result
(self)
tests/test_apps.py:415
Function
test_experimental_skills_refuses_subclasses
(tmp_path: Path)
tests/skills/test_deprecated_paths.py:227
Function
test_experimental_skills_returns_the_replacement
(tmp_path: Path)
tests/skills/test_deprecated_paths.py:93
Function
test_experimental_skills_still_rejects_custom_main_file
(tmp_path: Path)
tests/skills/test_deprecated_paths.py:114
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_cached_token_rediscovers_issuer
( self, provider_type, metadata_case )
tests/client/auth/test_client_credentials.py:832
Method
test_expired_client_info_removes_stale_registration
(self)
tests/client/auth/test_oauth_client.py:681
Method
test_expired_distinct_token_does_not_evict_valid_entry_when_full
(self)
tests/utilities/test_token_cache.py:172
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
Function
test_expired_keys_wait_for_successful_refresh
( key_data: dict[str, Any], clock: list[float] )
tests/server/auth/test_jwks_refresh.py:181
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:507
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:449
Method
test_expired_token
(self, mcp_server_url: str, rsa_key_pair: RSAKeyPair)
tests/server/auth/test_jwt_provider_bearer.py:533
← previous
next →
9,901–10,000 of 16,725, ranked by callers