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
Function
test_github_malformed_user_json_raises_typed_error
()
tests/server/auth/providers/test_github_transient_failures.py:139
Function
test_github_missing_user_id_raises_typed_error
()
tests/server/auth/providers/test_github_transient_failures.py:150
Function
test_github_oauth_authorization_redirect
Test that GitHub OAuth authorization redirects to GitHub correctly through consent flow. Since HeadlessOAuth can't handle real GitHub redirects,
tests/integration_tests/auth/test_github_provider_integration.py:207
Function
test_github_oauth_credentials_available
Test that GitHub OAuth credentials are available for testing.
tests/integration_tests/auth/test_github_provider_integration.py:199
Function
test_github_oauth_mock_only_accepts_mock_tokens
Test that the mock token verifier only accepts mock tokens, not real ones.
tests/integration_tests/auth/test_github_provider_integration.py:376
Function
test_github_oauth_server_metadata
Test OAuth server metadata discovery.
tests/integration_tests/auth/test_github_provider_integration.py:310
Function
test_github_oauth_unauthorized_access
Test that unauthenticated requests are rejected. SDK v2 surfaces the server's 401 as an MCPError ("Server returned an error response") rather
tests/integration_tests/auth/test_github_provider_integration.py:339
Function
test_github_oauth_with_mock
Test complete GitHub OAuth flow with mocked callback.
tests/integration_tests/auth/test_github_provider_integration.py:358
Function
test_github_operational_http_failure_raises_typed_error
(status_code, headers)
tests/server/auth/providers/test_github_transient_failures.py:102
Function
test_github_permanent_client_error_is_an_invalid_token
A forbidden or missing user is a final answer, so the client re-authenticates.
tests/server/auth/providers/test_github_transient_failures.py:172
Function
test_github_provider_scope_401_stays_invalid
()
tests/server/auth/providers/test_github_transient_failures.py:415
Function
test_github_provider_scope_outage_propagates_operational_error
()
tests/server/auth/providers/test_github_transient_failures.py:367
Function
test_github_provider_secondary_rate_limit_recovers
()
tests/server/auth/providers/test_github_transient_failures.py:385
Method
test_github_provider_threads_http_client
(self)
tests/server/auth/providers/test_http_client.py:278
Function
test_github_transport_failure_raises_typed_error
()
tests/server/auth/providers/test_github_transient_failures.py:127
Method
test_global_and_project_combined
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:369
Method
test_global_rate_limiting
Test global rate limiting.
tests/server/middleware/test_rate_limiting.py:333
Method
test_global_rate_limiting
Test global rate limiting across all clients.
tests/server/middleware/test_rate_limiting.py:682
Method
test_global_servers
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:298
Method
test_google_configuration
Test Google configuration.
tests/server/auth/test_oidc_proxy.py:348
Method
test_google_provider_threads_http_client
(self)
tests/server/auth/providers/test_http_client.py:313
Method
test_google_specific_scopes
Test handling of Google-specific scope formats.
tests/server/auth/providers/test_google.py:92
Method
test_goose_basic
Test basic goose install command parsing.
tests/cli/test_install.py:312
Method
test_goose_skills_provider_path
Test GooseSkillsProvider uses correct path.
tests/server/providers/test_skills_vendor_providers.py:63
Method
test_goose_with_options
Test goose install with various options.
tests/cli/test_install.py:322
Method
test_goose_with_python
Test goose install with --python option.
tests/cli/test_install.py:342
Method
test_grant_rejected_when_not_configured
( self, idp_key: RSAKeyPair, )
tests/server/auth/oauth_proxy/test_identity_assertion.py:362
Function
test_greet_tool_custom
Test the greet tool with custom greeting
examples/testing_demo/tests/test_server.py:40
Function
test_greet_tool_default
Test the greet tool with default greeting
examples/testing_demo/tests/test_server.py:34
Function
test_greet_with_dirty_equals
Test greet tool using dirty-equals for pattern matching
examples/testing_demo/tests/test_server.py:141
Function
test_greet_with_progress_tool
Test calling the greet tool.
tests/client/test_streamable_http.py:195
Function
test_greeting_resource_template
Test the greeting resource template
examples/testing_demo/tests/test_server.py:74
Function
test_group_context_does_not_close_caller_owned_client
()
tests/client/group/test_client_group.py:188
Function
test_group_context_is_reentrant
()
tests/client/group/test_client_group.py:428
Function
test_group_keeps_one_connection_per_server
()
tests/client/group/test_client_group.py:216
Function
test_group_reconnects_after_last_exit
()
tests/client/group/test_client_group.py:468
Function
test_group_requires_each_client_to_be_connected
()
tests/client/group/test_client_group.py:202
Method
test_guard_prompt_round_trips_through_proxy
A guard prompt behind a proxy surfaces its ask instead of the proxy trying to answer it. The proxy has no back-channel to the real user, so
tests/server/test_mrtr_guards_components.py:198
Method
test_guard_resource_round_trips_through_proxy
Concrete resources and templates forward the ask the same way.
tests/server/test_mrtr_guards_components.py:216
Method
test_guard_result_from_task_parks_for_input
(self)
tests/server/test_mrtr_guards.py:1179
Function
test_guard_return_multiple_rounds_use_distinct_keys
A tool that asks twice surfaces distinct keys across rounds (SEP-2663 L350). The second round's key must differ from the first's — a client that
tests/tasks/server/test_guard_reentrant.py:153
Function
test_guard_return_single_round_completes
A tool that returns InputRequiredResult once is driven to completion.
tests/tasks/server/test_guard_reentrant.py:126
Method
test_guard_round_trips_through_create_proxy_mode_auto
The standard create_proxy(target, mode="auto") path round-trips a guard without a hand-built ProxyClient factory. The default stays ha
tests/server/test_mrtr_guards.py:468
Method
test_guard_tool_round_trips_through_proxy
A guard tool behind a proxy completes end-to-end: the backend's ask round-trips into an `InputRequiredToolResult` on the parent (rather than
tests/server/test_mrtr_guards.py:425
Method
test_guard_tool_through_parent
A guard tool on a mounted child completes when called through the parent's namespaced name — the InputRequiredToolResult forwards through
tests/server/test_mrtr_guards.py:398
Function
test_guides_have_examples
Guard against the extractor silently matching nothing.
tests/docs/test_upgrade_guide_examples.py:58
Function
test_handler_passes_max_completion_tokens
Verify the handler uses max_completion_tokens (not max_tokens).
tests/client/sampling/handlers/test_openai_handler.py:321
Function
test_handler_preserves_temperature_on_the_wire
(temperature: float | None)
tests/client/sampling/handlers/test_anthropic_handler.py:533
Method
test_handlers_and_tools_agree
The rewritten tool returns what the hand-written handler returned.
tests/docs/test_upgrade_guide_equivalence.py:229
Method
test_handles_invalid_versions
Handles invalid version strings gracefully.
tests/utilities/test_version_check.py:295
Method
test_handles_missing_def_gracefully
Test that missing definition in $defs doesn't cause error.
tests/utilities/test_json_schema.py:1214
Method
test_handshake_version_pin_rejected
A legacy-era version string is not a valid pin; the error steers to 'legacy'.
tests/client/client/test_mode_negotiation.py:42
Method
test_happy_path_issues_token
( self, idp_key: RSAKeyPair, config: IdentityAssertion, httpx_mock: HTTPXMock,
tests/server/auth/oauth_proxy/test_identity_assertion.py:276
Method
test_hash_differs_for_same_name_different_description
Hash must change when a tool's description changes, not just its name.
tests/server/transforms/test_search.py:585
Method
test_hash_encoded
(self, director, path_route)
tests/utilities/openapi/test_director.py:1208
Method
test_hash_is_64_hex_chars
(self)
tests/utilities/test_token_cache.py:260
Method
test_hash_is_fixed_length_hex
(self)
tests/server/providers/test_addressing.py:16
Function
test_hash_shaped_name_without_a_matching_identity_is_unchanged
()
tests/server/providers/test_prefab_payload.py:26
Function
test_hash_shaped_user_name_round_trip
(tool_name: str, composition: str)
tests/server/providers/test_prefab_roundtrip.py:179
Method
test_hashed_call_reaches_app_tool_sharing_injected_name
An injected tool owns its display name, not an app tool's hashed name.
tests/server/middleware/test_tool_injection.py:462
Function
test_hashed_lookup_checks_authorization_of_the_same_tool_as_the_listed_name
( build: Callable[[list[str]], FastMCP], listed_name: str, allowed: bool )
tests/server/test_hashed_tool_dispatch.py:494
Method
test_hashed_name_auth_blocks_unauthorized
Auth checks run on the hashed-name dispatch path too.
tests/test_fastmcp_app.py:527
Method
test_hashed_name_call_is_denied_by_backend_component_auth
(self)
tests/server/auth/test_authorization.py:1724
Method
test_hashed_name_call_with_insufficient_scope_is_denied
(self)
tests/server/auth/test_authorization.py:1710
Method
test_hashed_name_call_with_sufficient_scope_executes_tool
(self)
tests/server/auth/test_authorization.py:1697
Function
test_hashed_name_falls_back_past_a_disabled_highest_version
()
tests/server/test_hashed_tool_dispatch.py:324
Method
test_hashed_name_from_result_is_callable
The hashed name that appears in structured_content actually resolves when called back — the full round-trip works.
tests/server/providers/test_prefab_roundtrip.py:95
Function
test_hashed_name_is_unknown_when_listed_name_is_unknown
( build: Callable[[list[str]], FastMCP], )
tests/server/test_hashed_tool_dispatch.py:171
Function
test_hashed_name_resolves_renamed_tools
( build: Callable[[list[str]], FastMCP], )
tests/server/test_hashed_tool_dispatch.py:232
Function
test_hashed_name_resolves_tools_renamed_with_replaced_meta
( meta: dict[str, str] | None, on_provider: bool )
tests/server/test_hashed_tool_dispatch.py:521
Function
test_hashed_name_respects_a_version_filter
()
tests/server/test_hashed_tool_dispatch.py:336
Method
test_hashed_name_survives_namespace_mount
The hash identifies a tool independently of its name. A FastMCPApp mounted under a Namespace transform still has its backend tools rea
tests/test_fastmcp_app.py:493
Method
test_hashes_user_by_default
(self, meter_provider, reader, monkeypatch)
tests/server/middleware/test_usage.py:471
Method
test_hashing_requires_a_salt
(self, salt)
tests/server/middleware/test_usage.py:528
Function
test_header_array_serialization
()
tests/server/providers/openapi/test_header_path_serialization.py:74
Function
test_header_nested_array_flattens_one_level
()
tests/server/providers/openapi/test_header_path_serialization.py:208
Function
test_header_object_serialization
(explode: bool | None, expected: str)
tests/server/providers/openapi/test_header_path_serialization.py:97
Function
test_header_scalar_serialization
(value: Any, expected: str)
tests/server/providers/openapi/test_header_path_serialization.py:59
Method
test_headers
(self, transport_cls: type)
tests/cli/test_generate_cli_remote.py:65
Function
test_hello_prompt_custom
Test hello prompt with custom name
examples/testing_demo/tests/test_server.py:87
Function
test_hello_prompt_default
Test hello prompt with default parameter
examples/testing_demo/tests/test_server.py:81
Method
test_helper_emits_by_default
( self, helper: str, helpers, trace_exporter: InMemorySpanExporter )
tests/telemetry/test_interop.py:142
Method
test_helper_emits_nothing
( self, helper: str, value: str, helpers, mode, trace_exporter
tests/telemetry/test_interop.py:119
Method
test_helper_emits_nothing_under_suppress
( self, helper: str, helpers, trace_exporter: InMemorySpanExporter )
tests/telemetry/test_interop.py:133
Method
test_heterogeneous_accepts_boolean
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:63
Method
test_heterogeneous_accepts_null
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:67
Method
test_heterogeneous_accepts_number
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:59
Method
test_heterogeneous_accepts_string
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:55
Method
test_heterogeneous_rejects_array
(self, heterogeneous_union)
tests/utilities/json_schema_type/test_unions.py:71
Function
test_hidden_arg_with_constant_default
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:198
Function
test_hidden_arg_without_default_uses_parent_default
Test that hidden argument without default uses parent's default.
tests/tools/tool_transform/test_tool_transform.py:207
Function
test_hidden_folders_are_not_walked
(tmp_path: Path)
tests/skills/test_directory_provider.py:90
Function
test_hidden_param_prunes_defs
()
tests/tools/tool_transform/test_tool_transform.py:279
Function
test_hidden_parent_resource_hides_mounted_folder_file
(tmp_path: Path)
tests/skills/test_composition.py:193
Function
test_hidden_rename_does_not_leak_factory_into_visible_sibling
A hidden parameter renamed to a visible sibling's name must not override that sibling's schema default with its factory value.
tests/tools/tool_transform/test_args.py:274
Method
test_hidden_twins_stay_hidden
(self)
tests/server/mount/test_filtering.py:153
Function
test_hide_required_param_with_user_default_works
Test that hiding a required parameter works when user provides a default.
tests/tools/tool_transform/test_tool_transform.py:259
Function
test_hide_required_param_without_default_raises_error
Test that hiding a required parameter without providing default raises error.
tests/tools/tool_transform/test_tool_transform.py:241
Method
test_hides_passwords
(self, url: str, expected: str)
tests/cli/test_tasks.py:222
Method
test_hinted_list_tools_served_from_cache
(self)
tests/server/test_cache_hints.py:148
← previous
next →
10,701–10,800 of 16,725, ranked by callers