MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

Methodtest_returns_stale_cache_if_fetch_fails
Returns stale cache if fetch fails.
tests/utilities/test_version_check.py:225
Methodtest_returns_true_with_all_required_scopes
(self)
tests/server/auth/test_authorization.py:87
Methodtest_returns_true_with_matching_scope
(self)
tests/server/auth/test_authorization.py:81
Methodtest_returns_version_if_newer
Returns new version if available.
tests/utilities/test_version_check.py:269
Methodtest_reuse_after_grace_ends_the_grant
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_refresh_reuse.py:56
Methodtest_reuse_by_another_client_does_not_end_the_grant
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_refresh_reuse.py:86
Methodtest_reuse_within_grace_is_only_rejected
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_refresh_reuse.py:76
Methodtest_reuses_client_across_calls
Same client instance should be reused across multiple verify_token calls.
tests/server/auth/providers/test_http_client.py:94
Functiontest_review_provenance_requires_pr_head_and_current_target_baseline
( triage, monkeypatch, review, expected )
tests/test_public_triage.py:321
Functiontest_revocation_answers_when_upstream_check_is_unavailable
( proxy: OAuthProxy, jwt_verifier, issue_token: Callable[[str], Awaitable[str]], httpx_mock: H
tests/server/auth/oauth_proxy/test_revocation.py:416
Functiontest_revocation_keeps_body_limit_and_cors
( proxy: OAuthProxy, jwt_verifier, httpx_mock: HTTPXMock )
tests/server/auth/oauth_proxy/test_revocation.py:267
Methodtest_revoke_expired_refresh_token_warns_and_skips_upstream
Refresh JWT verification failure is warned about after local deletion.
tests/server/auth/oauth_proxy/test_tokens.py:2542
Methodtest_revoke_invalid_token
Test revoking an invalid token.
tests/server/test_auth_integration.py:875
Methodtest_revoke_refresh_token_posts_upstream_token
The upstream POST contains the provider's refresh token, not the FastMCP JWT.
tests/server/auth/oauth_proxy/test_tokens.py:2364
Methodtest_revoke_refresh_token_without_mapping_skips_upstream
A missing JTI mapping warns and never sends the FastMCP JWT upstream.
tests/server/auth/oauth_proxy/test_tokens.py:2442
Methodtest_revoke_refresh_token_without_upstream_record_skips_upstream
A mapping to an absent upstream record warns and skips the POST.
tests/server/auth/oauth_proxy/test_tokens.py:2486
Methodtest_revoke_refresh_token_without_upstream_refresh_skips_upstream
A missing or empty upstream refresh token never falls back to the JWT.
tests/server/auth/oauth_proxy/test_tokens.py:2586
Functiontest_revoke_uses_the_current_authenticated_key
()
tests/cli/deploy/test_horizon_client.py:194
Methodtest_revoke_with_malformed_token
(self, test_client, registered_client)
tests/server/test_auth_integration.py:888
Methodtest_revoked_id_jag_token_rejected
( self, idp_key: RSAKeyPair, httpx_mock: HTTPXMock, )
tests/server/auth/oauth_proxy/test_identity_assertion.py:909
Functiontest_revoking_a_token_whose_upstream_is_gone_still_retires_it
( proxy: OAuthProxy, jwt_verifier, issue_token: Callable[[str], Awaitable[str]], httpx_mock: H
tests/server/auth/oauth_proxy/test_revocation.py:203
Functiontest_revoking_one_access_token_keeps_other_grants
( proxy: OAuthProxy, issue_token: Callable[[str], Awaitable[str]], httpx_mock: HTTPXMock, )
tests/server/auth/oauth_proxy/test_revocation.py:182
Functiontest_revoking_refresh_token_ends_grant_without_upstream_endpoint
( proxy: OAuthProxy, issue_token: Callable[[str], Awaitable[str]], httpx_mock: HTTPXMock, )
tests/server/auth/oauth_proxy/test_revocation.py:399
Functiontest_revoking_refresh_token_ends_its_access_tokens
( proxy: OAuthProxy, issue_token: Callable[[str], Awaitable[str]], httpx_mock: HTTPXMock, )
tests/server/auth/oauth_proxy/test_revocation.py:374
Methodtest_rfc6598_cgnat_blocked
RFC6598 Carrier-Grade NAT addresses should be blocked.
tests/server/auth/test_ssrf_protection.py:84
Methodtest_rfc6901_escapes_are_decoded
(self)
tests/utilities/test_json_schema.py:937
Methodtest_role_denial_suppresses_scope_challenge
A caller blocked by their role is not told to obtain a scope.
tests/server/auth/test_authorization.py:203
Functiontest_room_and_scene_routing
(bridge)
examples/smart_home/tests/test_lights.py:107
Functiontest_room_filtered_discovery_and_unknown_room
(bridge)
examples/smart_home/tests/test_lights.py:148
Functiontest_root_import_does_not_load_mcp_sdk
()
tests/server/http/test_startup_imports.py:13
Methodtest_root_level_nullable_boolean
Test nullable boolean at root level.
tests/utilities/openapi/test_nullable_fields.py:33
Methodtest_root_level_nullable_integer
Test nullable integer at root level.
tests/utilities/openapi/test_nullable_fields.py:26
Methodtest_root_level_nullable_string
Test nullable string at root level.
tests/utilities/openapi/test_nullable_fields.py:19
Methodtest_root_middleware_wraps_task_submission
For a tasked call, the root's middleware wraps submission. The interceptor composes at the registering (parent) server and short-circ
tests/tasks/server/test_task_mount.py:484
Methodtest_root_path_cimd_url_rejected
(self)
tests/client/auth/test_oauth_cimd.py:63
Methodtest_root_path_rejected
(self, capsys: pytest.CaptureFixture[str])
tests/cli/test_cimd_cli.py:161
Methodtest_root_path_rejected_when_required
Root paths should be rejected when require_path=True.
tests/server/auth/test_ssrf_protection.py:190
Methodtest_root_pattern_matches_only_root
(self)
tests/server/auth/test_redirect_validation.py:953
Methodtest_root_ref_to_boolean_schema_does_not_fail_listing
A tool whose schema has a root $ref to a boolean schema is listed. `true` is a valid JSON Schema, but dereferencing it replaces the w
tests/server/middleware/test_dereference.py:138
Functiontest_root_reference_context
(model: bool)
tests/utilities/json_schema_type/test_caching.py:47
Methodtest_roots_handler_answers_a_legacy_server
A callable `roots=` handler still answers a legacy server's request.
tests/client/test_roots.py:57
Functiontest_rotated_key_resolves_after_refresh_interval
( key_data: dict[str, Any], clock: list[float] )
tests/server/auth/test_jwks_refresh.py:70
Functiontest_round_trip_preserves_all_fields
( scope: str | None, task_id: str, task_type: str, identifier: str )
tests/tasks/server/test_task_keys.py:44
Methodtest_round_trips_a_payload
(self)
tests/tasks/server/test_snapshot_encryption.py:87
Functiontest_roundtrip
(t: DrawnTemplate)
tests/pbt/test_uri_template.py:34
Methodtest_roundtrip_jsonrpc_message
(self)
tests/server/test_event_store.py:357
Methodtest_roundtrip_preserves_schema
Ensure schema_ field survives dump/reconstruct cycle.
tests/cli/test_config.py:494
Methodtest_roundtrip_with_all_fields
Full config survives dump/reconstruct.
tests/cli/test_config.py:501
Methodtest_route
(request)
tests/server/mount/test_advanced.py:81
Methodtest_route_defaults
Test route default values.
tests/utilities/openapi/test_models.py:320
Methodtest_route_pre_calculated_fields
Test route with pre-calculated fields.
tests/utilities/openapi/test_models.py:270
Methodtest_route_serialization
Test HTTPRoute serialization.
tests/utilities/openapi/test_models.py:416
Methodtest_route_validation
Test HTTPRoute validation.
tests/utilities/openapi/test_models.py:354
Methodtest_route_with_all_fields
Test creating route with all fields.
tests/utilities/openapi/test_models.py:211
Methodtest_route_with_empty_collections
Test route with empty collections.
tests/utilities/openapi/test_models.py:300
Methodtest_route_with_only_request_body
Test route with only request body, no parameters.
tests/utilities/openapi/test_schemas.py:575
Methodtest_route_without_request_body
Test route with only parameters, no request body.
tests/utilities/openapi/test_schemas.py:550
Methodtest_routes_from_server
(self)
tests/server/auth/test_multi_auth.py:408
Functiontest_routing_headers_survive_host_origin_protection
The Host/Origin request guard does not strip the routing headers.
tests/server/http/test_routable_headers.py:61
Methodtest_rules_isolated_between_sessions
Test that session rules are isolated between different sessions.
tests/server/test_session_visibility.py:175
Methodtest_rules_persist_across_requests
Test that session rules persist across multiple requests.
tests/server/test_session_visibility.py:140
Methodtest_run_async_explicit_transport_overrides_setting
(self)
tests/utilities/test_tests.py:42
Methodtest_run_async_passes_log_level
Test that run_async passes log_level to transport methods.
tests/server/test_log_level.py:74
Methodtest_run_async_uses_transport_setting
(self)
tests/utilities/test_tests.py:33
Functiontest_run_cli_command_passes_argument_list
(run: Mock)
tests/cli/test_install_cli_arguments.py:469
Methodtest_run_command_calls_prepare_by_default
Test that run_command calls source.prepare() by default.
tests/cli/test_run.py:710
Methodtest_run_command_parsing_basic
Test basic run command parsing.
tests/cli/test_cli.py:163
Methodtest_run_command_parsing_partial_options
Test run command parsing with only some options.
tests/cli/test_cli.py:206
Methodtest_run_command_parsing_project_and_skip_source
Test run command parsing with --project and --skip-source flags.
tests/cli/test_cli.py:380
Methodtest_run_command_parsing_project_flag
Test run command parsing with --project flag.
tests/cli/test_cli.py:353
Methodtest_run_command_parsing_server_args_require_delimiter
Test that server args without -- delimiter are rejected.
tests/cli/test_cli.py:340
Methodtest_run_command_parsing_skip_source_flag
Test run command parsing with --skip-source flag.
tests/cli/test_cli.py:367
Methodtest_run_command_parsing_with_mixed_args
Test run command parsing with both FastMCP options and server args.
tests/cli/test_cli.py:298
Methodtest_run_command_parsing_with_new_options
Test run command parsing with new uv options.
tests/cli/test_cli.py:228
Methodtest_run_command_parsing_with_options
Test run command parsing with various options.
tests/cli/test_cli.py:177
Methodtest_run_command_parsing_with_positional_server_args
Test run command parsing with positional server arguments.
tests/cli/test_cli.py:322
Methodtest_run_command_parsing_with_server_args
Test run command parsing with server arguments after --.
tests/cli/test_cli.py:280
Methodtest_run_command_skips_prepare_with_flag
Test that run_command skips source.prepare() when skip_source=True.
tests/cli/test_run.py:741
Methodtest_run_command_transport_aliases
Test that both 'http' and 'streamable-http' are accepted as valid transport options.
tests/cli/test_cli.py:254
Methodtest_run_creates_mcp_config_server
(self, tmp_path: Path)
tests/cli/test_config_encoding.py:71
Methodtest_run_dev_apps_log_panel_propagation
Test run command can run a dev app with below new options for issue 4121. - toggle log-panel option to hide log/debug message in normal cases.
tests/cli/test_run.py:1546
Methodtest_run_dev_apps_with_host
Test run command can run a dev app with below new options for issue 4121. - host option to support binding specific address other than localho
tests/cli/test_run.py:1489
Functiontest_run_forwards_server_initiated_requests_to_handshake_front
( monkeypatch: pytest.MonkeyPatch, )
tests/cli/test_fastmcp_remote.py:345
Methodtest_run_http_accepts_log_level
Test that run_http_async accepts log_level parameter.
tests/server/test_log_level.py:35
Methodtest_run_http_passes_sockets_to_uvicorn
Test that run_http_async forwards pre-bound sockets to Uvicorn.
tests/server/test_log_level.py:54
Methodtest_run_in_thread_false_blocks_other_tasks
A sync tool with run_in_thread=False blocks the event loop. This documents the tradeoff: while the tool runs inline, no other task on
tests/tools/test_tool_run_in_thread.py:132
Methodtest_run_mcp_config
Test creating a server from an MCPConfig file.
tests/cli/test_run.py:114
Methodtest_run_module_mode_delegates_to_run_module_command
Test that module mode calls run_module_command with correct args.
tests/cli/test_run.py:1051
Methodtest_run_module_mode_requires_server_spec
Test that module mode exits with error when server_spec is None.
tests/cli/test_run.py:1024
Methodtest_run_module_mode_warns_ignored_options
Test that ignored options produce a warning in module mode.
tests/cli/test_run.py:1031
Methodtest_run_module_mode_with_reload
Test that --reload in module mode delegates to run_with_reload.
tests/cli/test_run.py:1068
Functiontest_run_server_async_raises_when_lifespan_fails
()
tests/utilities/test_run_server_async_startup.py:20
Methodtest_run_server_forwards_port_zero
(self, tmp_path)
tests/cli/test_mcp_server_config_integration.py:298
Functiontest_run_server_on_path
Test running server on a custom path.
tests/client/test_sse.py:141
Methodtest_run_stdio_accepts_log_level
Test that run_stdio_async accepts log_level parameter.
tests/server/test_log_level.py:13
Methodtest_run_v1_server_applies_log_level
Test that --log-level is applied to the SDK server settings.
tests/cli/test_run.py:656
Methodtest_run_v1_server_default_transport
Test that v1 server uses streamable-http by default.
tests/cli/test_run.py:428
Methodtest_run_v1_server_forwards_cli_options
Test that run_command threads every parsed option into the v1 runner.
tests/cli/test_run.py:620
Methodtest_run_v1_server_http
Test that v1 server uses async http method.
tests/cli/test_run.py:328
Methodtest_run_v1_server_http_with_path_and_stateless
Test that v1 Streamable HTTP receives --path and --stateless.
tests/cli/test_run.py:527
← previousnext →14,201–14,300 of 16,725, ranked by callers