Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,224 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,224
◇
Types & classes
2,249
↳
Endpoints
189
Method
test_preserves_passthrough_exception
(self, failure: Exception)
tests/client/client/test_session.py:285
Method
test_preserves_property_named_discriminator
A field *named* 'discriminator' inside properties must survive.
tests/utilities/test_json_schema.py:366
Method
test_preserves_refs_by_default
Test that compress_schema preserves $refs by default.
tests/utilities/test_json_schema.py:556
Method
test_preserves_return_annotation_in_signature
Test that return annotation is preserved in both annotations and signature.
tests/utilities/test_types.py:694
Method
test_preserves_sibling_keywords
Test that sibling keywords (default, description) are preserved. Pydantic places description, default, examples as siblings to $ref.
tests/utilities/test_json_schema.py:202
Method
test_preserves_siblings_in_lists
Test that siblings are preserved for $refs inside lists (allOf, anyOf, etc).
tests/utilities/test_json_schema.py:232
Method
test_preserves_siblings_when_stripping
(self)
tests/utilities/test_json_schema.py:1334
Method
test_preserves_underscores
(self)
tests/cli/test_generate_cli.py:211
Method
test_preserves_valueless_param_and_non_utf8_bytes
(self)
tests/server/auth/test_redirect_validation.py:32
Method
test_preserves_valueless_param_and_non_utf8_bytes_alongside_existing_iss
Exact end-to-end reproduction of the worked example from the P2 review comment: registered redirect_uri already has `iss`, a valueless
tests/server/auth/test_redirect_validation.py:195
Function
test_previous_public_assessment_reused_without_credentials
( ranking_module, tmp_path )
tests/test_issue_ranking.py:255
Method
test_primary_version_order_still_descending
(self)
tests/server/versioning/test_versioning.py:446
Method
test_principal_is_the_isolation_wall
(self)
tests/server/test_sessions.py:72
Method
test_principal_not_embedded_verbatim
(self)
tests/server/test_sessions.py:89
Method
test_prior_discover_is_exposed
(self, fastmcp_server)
tests/client/client/test_mode_negotiation.py:245
Method
test_private_arguments
(self)
tests/tools/tool/test_tool.py:414
Method
test_private_ip_blocked
Fetch to private IP should be blocked.
tests/server/auth/test_ssrf_protection.py:211
Method
test_private_ip_rejected
URLs resolving to private IPs should be rejected.
tests/server/auth/test_ssrf_protection.py:179
Method
test_private_ipv4_blocked
Private IPv4 addresses should be blocked.
tests/server/auth/test_ssrf_protection.py:69
Method
test_private_key_jwt_auth_method_allowed
Test that private_key_jwt is allowed for CIMD.
tests/server/auth/test_cimd.py:54
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
← previous
next →
12,701–12,800 of 16,224, ranked by callers