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_websocket_connections_are_closed
(self)
tests/cli/test_apps_dev_server.py:154
Method
test_well_known_routes_delegate_to_server
get_well_known_routes delegates to the server's implementation.
tests/server/auth/test_multi_auth.py:348
Method
test_well_known_routes_empty_without_server
(self)
tests/server/auth/test_multi_auth.py:363
Method
test_well_known_with_direct_deployment
Test that .well-known routes work when app is deployed directly (not mounted). This is the baseline - it should work as expected. Per
tests/server/auth/test_oauth_mounting.py:36
Method
test_well_known_with_mounted_app
Test that .well-known routes work when explicitly mounted at root. This test uses the CANONICAL pattern for mounting: - base_url incl
tests/server/auth/test_oauth_mounting.py:66
Function
test_whoami_does_not_clear_a_newer_host_credential
( use_horizon_api: Callable[[HorizonAuthAPI], None], capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_command.py:322
Function
test_whoami_uses_the_stored_key_after_a_restart
( use_horizon_api: Callable[[HorizonAuthAPI], None], capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_command.py:252
Function
test_whole_body_and_http_parameter_reach_their_locations
( openapi_version: str, location: str, schema: dict[str, Any], body_name: str, payload: An
tests/server/providers/openapi/test_whole_body_parameter_collisions.py:42
Function
test_whole_body_is_sent_unchanged
( schema: dict[str, Any], )
tests/server/providers/openapi/test_undeclared_arguments.py:167
Method
test_wide_pass_is_chunked_and_shortlisted
(self)
tests/experimental/transforms/test_jev_search.py:205
Method
test_wide_pass_repeats_until_the_close_read_fits
(self)
tests/experimental/transforms/test_jev_search.py:247
Method
test_wide_pass_uses_first_paragraph_only
(self)
tests/experimental/transforms/test_jev_search.py:274
Method
test_wildcard_bind_accepts_literal_addresses
(self, host: str, status: int)
tests/cli/test_apps_dev_server.py:352
Method
test_wildcard_bind_accepts_loopback_names_and_ipv6_literals
(self, host: str)
tests/cli/test_apps_dev_server.py:297
Method
test_wildcard_bind_rejects_non_literal_and_malformed_hosts
(self, host: str)
tests/cli/test_apps_dev_server.py:286
Method
test_wildcard_param_can_create_resource
Test that wildcard parameters are valid.
tests/resources/test_resource_template.py:303
Method
test_wildcard_param_matches
(self)
tests/resources/test_resource_template.py:320
Method
test_wildcard_param_with_regular_param
Test that a wildcard parameter can be used with a regular parameter.
tests/resources/test_resource_template.py:348
Method
test_wildcard_segments_screened_element_wise
List values (from wildcard {path*}) are screened per element.
tests/resources/test_resource_security.py:118
Method
test_wildcard_with_query_params
Test combining wildcard path params with query params.
tests/resources/test_resource_template_query_params.py:232
Function
test_windows_acl_replaces_the_existing_access_list
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, )
tests/cli/deploy/test_credentials.py:233
Function
test_windows_credential_state_allows_only_the_current_user
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:269
Method
test_windows_path_parsing_with_colon
Test parsing Windows paths with drive letters and colons.
tests/cli/test_cli.py:517
Method
test_wire_request_state_is_sealed
The requestState the client receives is the sealed token, never the plaintext the tool minted.
tests/server/test_mrtr_guards.py:739
Method
test_with_argv_empty_list
Test that with_argv([]) clears arguments but keeps script name.
tests/cli/test_with_argv.py:36
Method
test_with_argv_nested
Test nested with_argv contexts.
tests/cli/test_with_argv.py:60
Method
test_with_argv_none_does_nothing
Test that with_argv(None) doesn't change sys.argv.
tests/cli/test_with_argv.py:27
Method
test_with_argv_replaces_args
Test that with_argv properly replaces sys.argv.
tests/cli/test_with_argv.py:14
Method
test_with_argv_restores_on_exception
Test that sys.argv is restored even if an exception occurs.
tests/cli/test_with_argv.py:47
Method
test_with_argv_with_existing_args
Test with_argv when sys.argv already has arguments.
tests/cli/test_with_argv.py:79
Method
test_with_client_id
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:32
Method
test_with_client_uri
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:75
Method
test_with_collision_spec
Test RequestDirector with collision spec.
tests/utilities/openapi/test_director.py:1054
Method
test_with_deepobject_spec
Test RequestDirector with deepObject parameters.
tests/utilities/openapi/test_director.py:1087
Method
test_with_inline_types
(self)
tests/utilities/test_docstring_parsing.py:31
Method
test_with_logo_uri
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:84
Method
test_with_meta
Meta is passed through to content.
tests/resources/test_resources.py:167
Method
test_with_output_file
(self, tmp_path)
tests/cli/test_cimd_cli.py:41
Method
test_with_output_schema
(self)
tests/cli/test_client_commands.py:211
Method
test_with_packages
(self)
tests/cli/test_goose.py:55
Method
test_with_packages
(self, mock_print, mock_open)
tests/cli/test_goose.py:244
Method
test_with_parsed_routes
Test RequestDirector with routes parsed from real spec.
tests/utilities/openapi/test_director.py:1039
Method
test_with_permissions
(self)
tests/test_apps.py:182
Method
test_with_python_version
(self)
tests/cli/test_goose.py:44
Method
test_with_requirements_option
Test --with-requirements option for all install commands.
tests/cli/test_install.py:430
Method
test_with_scope
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:66
Method
test_with_server_object
(self, mock_print, mock_open)
tests/cli/test_goose.py:229
Method
test_with_type_directive
(self)
tests/utilities/test_docstring_parsing.py:169
Method
test_with_types
(self)
tests/utilities/test_docstring_parsing.py:132
Function
test_without_wrap_task_fields_are_stripped
Baseline: the stock serializer drops the task fields (the gap we close).
tests/tasks/server/test_wire_production.py:40
Method
test_worker_command_parsing
Test that worker command parses arguments correctly.
tests/cli/test_tasks.py:54
Function
test_worker_executes_background_tasks
Verify that the Docket Worker is running and executes tasks.
tests/server/test_server_docket.py:77
Function
test_worker_hooks_survive_sibling_server_shutdown
One server's shutdown must not strand another server's workers. The worker-side hooks core exposes are process-global; two sibling servers ea
tests/tasks/server/test_extension.py:388
Function
test_worker_keeps_running_after_cancel_before_task_starts
A cancel that lands before the worker starts a task must not stop the worker.
tests/tasks/server/test_task_methods.py:116
Method
test_worker_still_sees_the_submitting_caller
( self, echo_token_server: FastMCP, encryption_key: str )
tests/tasks/server/test_snapshot_encryption.py:221
Method
test_workos_provider_threads_http_client
(self)
tests/server/auth/providers/test_http_client.py:330
Method
test_works_with_namespace_on_provider
ResourcesAsTools works when provider has Namespace transform.
tests/server/transforms/test_resources_as_tools.py:196
Method
test_works_with_namespace_on_provider
PromptsAsTools works when provider has Namespace transform.
tests/server/transforms/test_prompts_as_tools.py:176
Method
test_wrap_and_unwrap
(self)
tests/server/middleware/test_caching.py:707
Method
test_wrap_and_unwrap_preserves_is_error
(self)
tests/server/middleware/test_caching.py:720
Function
test_wrap_delegates_non_diverted_calls
Only a task-tagged tools/call is diverted; everything else delegates. A `tools/list` call is never routed to task production, so its payload is
tests/tasks/server/test_wire_production.py:61
Function
test_wrap_leaves_ordinary_tool_result_untouched
A normal (non-task) tools/call result serializes exactly as before.
tests/tasks/server/test_wire_production.py:53
Function
test_wrap_preserves_task_result
(installed)
tests/tasks/server/test_wire_production.py:46
Method
test_wrapped_result_includes_meta_flag
Wrapped results include wrap_result in meta.
tests/server/providers/local_provider_tools/test_output_schema.py:271
Method
test_wraps_other_failures_with_cause
(self)
tests/client/client/test_session.py:184
Method
test_write_cache_creates_file
Writing cache creates the cache file.
tests/utilities/test_version_check.py:93
Method
test_writes_file
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:595
Method
test_writes_skill_file
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:644
Method
test_writes_text_resources_as_utf8
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/utilities/test_skills.py:272
Method
test_writing_state_does_not_clobber_the_marker
(self)
tests/server/test_sessions.py:200
Method
test_wrong_app_returns_none
(self)
tests/test_fastmcp_app.py:338
Method
test_wrong_audience_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:461
Method
test_wrong_auth_method_raises
validate_private_key_jwt raises ValueError if auth method is not private_key_jwt.
tests/server/auth/test_cimd_validators.py:562
Method
test_wrong_client_binding_does_not_consume_jti
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:652
Method
test_wrong_resource_binding_does_not_consume_jti
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:676
Method
test_wrong_signature_rejected
( self, config: IdentityAssertion, rsa_key_pair_2: RSAKeyPair )
tests/server/auth/oauth_proxy/test_identity_assertion.py:507
Method
test_wrong_startup_token_starts_no_session
(self, token: str)
tests/cli/test_apps_dev_server.py:86
Method
test_wrong_tool_returns_none
(self)
tests/test_fastmcp_app.py:347
Method
test_wrong_typ_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:472
Method
test_wrong_type_is_argument_error
(self)
tests/tools/tool/test_argument_validation.py:43
Method
test_www_authenticate_header_points_to_base_url
Test that WWW-Authenticate header points to RFC 9728-compliant metadata URL. The WWW-Authenticate header includes the resource path per RFC 9
tests/server/auth/test_auth_provider.py:55
Function
test_x_mcp_header_annotation_survives_schema_generation
FastMCP preserves `x-mcp-header` in a tool's advertised input schema. This is the annotation the SDK client reads to decide which arguments to
tests/server/http/test_routable_headers.py:80
Method
test_yields_in_memory_server
(self)
tests/utilities/test_asgi_transport.py:252
Function
test_youtube_video_id
(url: str, expected: str | None)
examples/apps/media_picker/test_media_picker.py:70
Method
test_zero_page_size_raises
Zero page size should raise ValueError.
tests/server/test_pagination.py:383
Method
test_zero_rate_deprecation_points_to_omitting_burst_capacity
The reject-all setup keeps its behavior and gets a migration that preserves it.
tests/server/middleware/test_rate_limiting.py:199
Method
test_zero_rate_keeps_rejecting_every_request
A rate of 0 has no default burst, so it still closes the endpoint.
tests/server/middleware/test_rate_limiting.py:182
Method
test_zero_threshold_only_refreshes_on_actual_expiry
With threshold=0, token that's not yet expired is not refreshed.
tests/server/auth/oauth_proxy/test_tokens.py:1858
Method
test_zero_ttl_server_not_cached_on_modern
A modern server that emits `ttlMs: 0` (no hint) is not cached even though the connection is modern.
tests/client/client/test_response_cache.py:154
Method
test_zero_values_disable_timeout
(self)
tests/utilities/test_timeout.py:22
Method
testserver_url_has_query
Test detection of query parameters in server URLs.
tests/server/auth/oauth_proxy/test_config.py:61
Function
text_encoding
(encoding: str | None, stacklevel: int = 2)
tests/cli/test_config_encoding.py:39
Function
text_me
Send a text message to a phone number via https://surgemsg.com/
examples/text_me.py:48
Method
text_plain_spec
OpenAPI spec with a text/plain resource template endpoint.
tests/server/providers/openapi/test_openapi_features.py:568
Method
thing
(ctx: Context)
tests/tasks/server/test_task_catalog_transforms.py:176
Method
tick
()
tests/tools/test_tool_run_in_thread.py:150
Function
ticket_breakdown
Show open tickets by category as a donut chart.
examples/apps/patterns_server.py:265
Function
timed_out
()
tests/server/test_legacy_httpx_errors.py:28
Function
timed_out_call_leaves_connection_usable
()
tests/downstream/smoke_pydantic_ai.py:187
Function
timed_out_call_leaves_connection_usable
()
tests/downstream/smoke_langchain_mcp.py:199
← previous
next →
13,001–13,100 of 13,374, ranked by callers