Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Method
test_private_scope_respected
(self)
tests/server/test_cache_hints.py:193
Method
test_private_scope_roundtrips
(self)
tests/client/client/test_kv_response_cache.py:97
Method
test_private_use_scheme_redirect_uris
A native client's private-use scheme redirect resolves and is enforced. RFC 8252 section 7.1 schemes have no host, and unsafe schemes in the
tests/server/auth/test_cimd_validators.py:825
Method
test_proactive_refresh_when_validated_but_within_threshold
Token that passes validation but is within threshold gets proactively refreshed.
tests/server/auth/oauth_proxy/test_tokens.py:2245
Method
test_process_common_args_reads_json_spec_as_utf8
A fastmcp.json spec with a non-ASCII path must survive the read.
tests/cli/test_install.py:266
Method
test_profile_data_fetched_from_userinfo
Profile data (name, picture, locale) comes from the v2 userinfo endpoint.
tests/server/auth/providers/test_google.py:554
Function
test_progress_aenter_returns_fresh_instances
Progress.__aenter__ returns independent per-invocation objects, not the shared default.
tests/tasks/server/test_concurrent_dependencies.py:163
Method
test_progress_forwards_through_modern_proxy
A backend tool's `ctx.report_progress()` reaches the caller's progress handler even when the proxy backend negotiates the modern era — the
tests/server/test_mrtr_guards.py:487
Function
test_progress_handler
(fastmcp_server: FastMCP)
tests/client/test_progress.py:45
Function
test_progress_handler_can_be_supplied_on_tool_call
(fastmcp_server: FastMCP)
tests/client/test_progress.py:52
Function
test_progress_handler_supplied_on_tool_call_overrides_default
( fastmcp_server: FastMCP, )
tests/client/test_progress.py:59
Function
test_progress_in_background_task
Progress dependency works inside a background task.
tests/tasks/server/test_progress_dependency.py:35
Function
test_progress_in_immediate_execution
Progress dependency works when a tool runs synchronously.
tests/tasks/server/test_progress_dependency.py:19
Function
test_progress_status_message_in_background_task
A working task surfaces the current progress message as statusMessage.
tests/tasks/server/test_progress_dependency.py:71
Function
test_progress_tracks_multiple_increments
Progress correctly tracks multiple increment calls.
tests/tasks/server/test_progress_dependency.py:55
Method
test_project_level_config
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_discovery.py:499
Method
test_project_level_config_url_parsing
Test project-level well-known URLs without the agentic path segment.
tests/server/auth/providers/test_descope.py:80
Method
test_project_level_metadata_failure_is_not_retried
Identical project-level primary and fallback URLs are fetched once.
tests/server/auth/providers/test_descope.py:217
Method
test_project_option
Test --project option for all install commands.
tests/cli/test_install.py:591
Method
test_project_prepare_auto_detect
Test project prepare with auto-detected config.
tests/cli/test_project_prepare.py:194
Method
test_project_prepare_config_not_exists
Test project prepare when specified config doesn't exist.
tests/cli/test_project_prepare.py:267
Method
test_project_prepare_explicit_path
Test project prepare with explicit config path.
tests/cli/test_project_prepare.py:225
Method
test_project_prepare_failure
Test project prepare when prepare() fails.
tests/cli/test_project_prepare.py:287
Method
test_project_prepare_no_config_found
Test project prepare when no config is found.
tests/cli/test_project_prepare.py:248
Method
test_project_servers
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:309
Method
test_project_servers_match_posix_path_key
Claude Code on Windows stores project keys with forward slashes.
tests/cli/test_discovery.py:325
Method
test_project_url_normalization
Test that project_url handles trailing slashes correctly.
tests/server/auth/providers/test_supabase.py:38
Function
test_prompt
()
tests/contrib/test_component_manager.py:703
Function
test_prompt
(x: str)
tests/server/middleware/test_middleware_nested.py:141
Function
test_prompt
(x: str)
tests/server/middleware/test_middleware.py:139
Function
test_prompt
A prompt that takes time to generate.
tests/server/middleware/test_timing.py:173
Function
test_prompt
A test prompt for logging.
tests/server/middleware/test_logging.py:429
Method
test_prompt
Test prompt for tool management routes.
tests/contrib/test_component_manager.py:47
Method
test_prompt
Test prompt for auth testing.
tests/contrib/test_component_manager.py:278
Method
test_prompt
()
tests/contrib/test_component_manager.py:482
Method
test_prompt
()
tests/contrib/test_component_manager.py:561
Method
test_prompt
Test prompt.
tests/utilities/test_inspect_icons.py:411
Method
test_prompt
()
tests/utilities/test_inspect.py:254
Method
test_prompt
(self)
tests/server/middleware/test_caching_guards.py:96
Method
test_prompt
(x: str)
tests/server/middleware/test_middleware_nested.py:193
Method
test_prompt
A test prompt for logging.
tests/server/middleware/test_logging.py:467
Method
test_prompt
(name: str, greeting: str = "Hello")
tests/server/providers/test_local_provider_prompts.py:119
Method
test_prompt
(self)
tests/server/providers/test_local_provider_prompts.py:153
Method
test_prompt
(message: str)
tests/prompts/test_prompt.py:685
Method
test_prompt_added_to_server
Prompt created by @prompt should work when added to a server.
tests/prompts/test_standalone_decorator.py:139
Function
test_prompt_and_template_resolve_annotated_dependencies
()
tests/server/test_annotated_dependencies.py:50
Function
test_prompt_argument_completion_returns_candidates
(completion_server, mode)
tests/server/test_completions.py:59
Method
test_prompt_auth_param_forwarded
(self)
tests/contrib/test_mcp_mixin.py:589
Method
test_prompt_completes_with_responses
Answering the ask renders the prompt on the next round.
tests/server/test_mrtr_guards_components.py:96
Method
test_prompt_context
(self)
tests/server/providers/test_local_provider_prompts.py:16
Method
test_prompt_context_with_callable_object
(self)
tests/server/providers/test_local_provider_prompts.py:30
Method
test_prompt_decorator
(self)
tests/server/providers/test_local_provider_prompts.py:52
Method
test_prompt_decorator_async_function
(self)
tests/server/providers/test_local_provider_prompts.py:209
Method
test_prompt_decorator_classmethod
(self)
tests/server/providers/test_local_provider_prompts.py:165
Method
test_prompt_decorator_classmethod_error
(self)
tests/server/providers/test_local_provider_prompts.py:183
Method
test_prompt_decorator_conflicting_names_error
Test that providing both positional and keyword names raises an error.
tests/server/providers/test_local_provider_prompts.py:283
Method
test_prompt_decorator_delegates_to_local_provider
Test that @mcp.prompt registers with the local provider.
tests/server/test_server.py:81
Method
test_prompt_decorator_instance_method
(self)
tests/server/providers/test_local_provider_prompts.py:146
Method
test_prompt_decorator_registers
Prompt decorator should register in _components.
tests/server/providers/test_local_provider.py:521
Method
test_prompt_decorator_staticmethod
(self)
tests/server/providers/test_local_provider_prompts.py:194
Method
test_prompt_decorator_staticmethod_order
Test that both decorator orders work for static methods
tests/server/providers/test_local_provider_prompts.py:296
Method
test_prompt_decorator_with_description
(self)
tests/server/providers/test_local_provider_prompts.py:99
Method
test_prompt_decorator_with_meta
Test that meta parameter is passed through the prompt decorator.
tests/server/providers/test_local_provider_prompts.py:312
Method
test_prompt_decorator_with_name
(self)
tests/server/providers/test_local_provider_prompts.py:83
Method
test_prompt_decorator_with_parameters
(self)
tests/server/providers/test_local_provider_prompts.py:115
Method
test_prompt_decorator_with_string_name
Test that @prompt(\"custom_name\") syntax works correctly.
tests/server/providers/test_local_provider_prompts.py:235
Method
test_prompt_decorator_with_tags
Test that the prompt decorator properly sets tags.
tests/server/providers/test_local_provider_prompts.py:222
Method
test_prompt_decorator_without_parentheses
(self)
tests/server/providers/test_local_provider_prompts.py:68
Function
test_prompt_dependency_cannot_be_overridden_externally
Test that external callers cannot override prompt dependencies. This is a security test - dependencies should NEVER be overridable from outsi
tests/server/test_dependencies.py:612
Method
test_prompt_direct_function_call
Test that prompts can be registered via direct function call.
tests/server/providers/test_local_provider_prompts.py:253
Method
test_prompt_disabled
(self)
tests/server/providers/test_local_provider_prompts.py:349
Method
test_prompt_emits_input_required
The asking round reaches the wire as an InputRequiredResult.
tests/server/test_mrtr_guards_components.py:86
Method
test_prompt_enable_raises_not_implemented
Test that Prompt.enable() raises NotImplementedError.
tests/utilities/test_components.py:311
Method
test_prompt_enabled_false
Prompt with enabled=False should add a Visibility transform.
tests/server/providers/test_local_provider.py:542
Method
test_prompt_enabled_false_not_listed
Disabled prompt should not appear in get_prompts (filtering at server level).
tests/server/providers/test_local_provider.py:561
Method
test_prompt_enabled_false_skips_registration
(self)
tests/contrib/test_mcp_mixin.py:501
Function
test_prompt_error_masked_when_masking_enabled
Masking still applies: prompts leak no more than tools already do.
tests/server/test_protocol_eras.py:494
Function
test_prompt_error_message_reaches_client
A PromptError's message must reach the wire on every era.
tests/server/test_protocol_eras.py:449
Method
test_prompt_error_with_custom_log_level
PromptError with custom log_level should log at specified level.
tests/client/client/test_error_handling.py:451
Method
test_prompt_errors_are_sent_to_client
(self, mask_error_details: bool)
tests/client/client/test_error_handling.py:246
Method
test_prompt_fallback_respects_auth
Disabling v2 should not expose auth-protected v1 prompt.
tests/server/versioning/test_visibility_version_fallback.py:338
Method
test_prompt_from_function_with_icons
Test creating a prompt from a function with icons.
tests/server/test_icons.py:237
Method
test_prompt_function_still_callable
Decorated function should still be directly callable.
tests/prompts/test_standalone_decorator.py:92
Method
test_prompt_guard_rejected_on_handshake_era
The result type only exists at 2026-07-28, so an older connection gets the era named rather than a generic invalid-result failure.
tests/server/test_mrtr_guards_components.py:115
Function
test_prompt_handler_failure_remains_internal
( mode: Literal["auto", "legacy"], mask_error_details: bool, transform_errors: bool )
tests/server/middleware/test_error_handling.py:793
Method
test_prompt_has_prompt_prefix
Test that Prompt has 'prompt' KEY_PREFIX.
tests/utilities/test_components.py:216
Method
test_prompt_icons
Test that prompt icons are extracted.
tests/utilities/test_inspect_icons.py:163
Function
test_prompt_json_preserves_embedded_resource
( capsys: pytest.CaptureFixture[str], )
tests/cli/test_content_json.py:133
Method
test_prompt_key_property
Test that Prompt.key returns prefixed key with version sentinel.
tests/utilities/test_components.py:226
Method
test_prompt_meta_parameter
Test that meta parameter is properly handled.
tests/prompts/test_prompt.py:682
Method
test_prompt_middleware_three_levels
Middleware runs at parent, child, and grandchild levels for prompts.
tests/server/providers/test_fastmcp_provider.py:376
Method
test_prompt_mixing_rejected
Cannot mix versioned and unversioned prompts with the same name.
tests/server/versioning/test_calls.py:33
Method
test_prompt_not_found_uses_invalid_params
(self)
tests/test_exceptions.py:89
Method
test_prompt_prefixes_preserved_after_cache_hit
Prompt names should retain prefix after being served from cache.
tests/server/middleware/test_caching.py:881
Method
test_prompt_reaches_azure_not_the_consent_url
With the consent screen in the loop, prompt belongs on the Azure URL.
tests/server/auth/providers/test_azure.py:876
Method
test_prompt_registration
Test prompt registration with prefix and separator variations.
tests/contrib/test_mcp_mixin.py:152
Method
test_prompt_rejects_classmethod_decorator
@prompt should reject classmethod-decorated functions.
tests/prompts/test_standalone_decorator.py:121
Method
test_prompt_roundtrip
Prompt should execute correctly via Client.
tests/server/providers/test_local_provider.py:580
Method
test_prompt_sent_once_when_consent_disabled
Without the consent screen, authorize() returns the Azure URL directly.
tests/server/auth/providers/test_azure.py:912
Method
test_prompt_span_includes_auth_attributes_when_authenticated
( self, trace_exporter: InMemorySpanExporter )
tests/server/telemetry/test_server_tracing.py:281
← previous
next →
12,501–12,600 of 15,974, ranked by callers