MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

Methodtest_transitive_refs_in_request_body_schemas
Transitive $refs in request body schemas must be preserved and converted.
tests/utilities/openapi/test_transitive_references.py:226
Methodtest_translate_scopes_from_idp_is_inverse_of_prefix
The new hook should be the exact inverse of _prefix_scopes_for_azure for any input the provider would have sent upstream.
tests/server/auth/providers/test_azure.py:1474
Methodtest_translates_arbitrary_challenge_scopes
(self)
tests/server/auth/providers/test_azure_scopes.py:527
Methodtest_transparent_refresh_on_expired_upstream
load_access_token refreshes upstream token when validation fails.
tests/server/auth/oauth_proxy/test_tokens.py:1477
Methodtest_transparent_refresh_triggered_by_threshold
Token within expiry threshold is treated as expired and refreshed.
tests/server/auth/oauth_proxy/test_tokens.py:1729
Methodtest_transparent_refresh_unprefixes_echoed_scopes
Transparent refresh stores client-facing scopes too. Otherwise the scope mismatch can reappear when an expired upstream token is refr
tests/server/auth/providers/test_azure.py:1425
Methodtest_transparent_refresh_updates_stored_token
After transparent refresh, the stored upstream token is updated.
tests/server/auth/oauth_proxy/test_tokens.py:1502
Methodtest_transport_default_is_stdio
(self)
tests/utilities/test_tests.py:19
Methodtest_transport_http_leaves_url_unchanged
(self)
tests/cli/test_client_commands.py:311
Methodtest_transport_in_tool_via_client
Test that transport is accessible from within a tool via Client.
tests/server/test_context.py:432
Functiontest_transport_repr_includes_server_name
()
tests/client/transports/test_memory_transport.py:17
Methodtest_transport_reset
Test that transport resets correctly.
tests/server/test_context.py:420
Methodtest_transport_returns_none_outside_server_context
Test that transport returns None when not in a server context.
tests/server/test_context.py:392
Methodtest_transport_returns_sse
Test that transport returns 'sse' when set.
tests/server/test_context.py:404
Methodtest_transport_returns_stdio
Test that transport returns 'stdio' when set.
tests/server/test_context.py:396
Methodtest_transport_returns_streamable_http
Test that transport returns 'streamable-http' when set.
tests/server/test_context.py:412
Methodtest_transport_set_manually_is_visible_in_tool
Test that manually set transport is visible from within a tool.
tests/server/test_context.py:452
Methodtest_transport_set_via_http_middleware
Test that transport is set per-request via HTTP middleware.
tests/server/test_context.py:475
Methodtest_transport_setting_can_be_changed
(self)
tests/utilities/test_tests.py:22
Methodtest_transport_sse_no_duplicate_suffix
(self)
tests/cli/test_client_commands.py:303
Methodtest_transport_sse_rewrites_url
(self)
tests/cli/test_client_commands.py:299
Methodtest_transport_sse_trailing_slash
(self)
tests/cli/test_client_commands.py:307
Methodtest_transport_summary_remote
(self)
tests/cli/test_discovery.py:85
Methodtest_transport_summary_remote_sse
(self)
tests/cli/test_discovery.py:94
Methodtest_transport_summary_stdio
(self)
tests/cli/test_discovery.py:76
Functiontest_transport_values_accepted
Test that all valid transport values are accepted.
tests/cli/test_mcp_server_config_schema.py:169
Methodtest_traversal_read_gets_clean_not_found
A traversal attempt over the wire surfaces a non-leaky error. `resource://..` survives `AnyUrl` normalisation (the `..` sits in the a
tests/resources/test_resource_security.py:340
Methodtest_traversal_rejected_by_default
(self, server: FastMCP, uri: str)
tests/resources/test_resource_security.py:215
Methodtest_traversal_segments_rejected
(self)
tests/server/auth/test_redirect_validation.py:448
Methodtest_trivial_noop
Temporary probe: does merely adding a 7th test destabilize the run?
tests/server/middleware/test_message_visibility.py:434
Methodtest_true_property_schema_accepts_any_value
A property with schema `true` should accept any value.
tests/utilities/json_schema_type/test_json_schema_type.py:119
Functiontest_truncated_metadata_fails_visibly
( monkeypatch: pytest.MonkeyPatch, connection: str )
tests/scripts/test_release_contributor_credit.py:162
Functiontest_truncated_pr_commit_metadata_fails_visibly
( monkeypatch: pytest.MonkeyPatch, nested: bool )
tests/scripts/test_release_contributor_credit.py:269
Methodtest_truncation_does_not_break_output_schema_tools
Truncating a tool with outputSchema must not cause client validation errors. Regression test for #4926: an end-to-end client rejects truncate
tests/server/middleware/test_response_limiting.py:159
Methodtest_tspicer_reported_case_profile_with_nested_refs
Test the specific case reported by tspicer with Profile->countryCode->AccountInfo.
tests/utilities/openapi/test_transitive_references.py:175
Functiontest_ttl_returned_after_completion
ttlMs is present in tasks/get after the task completes.
tests/tasks/server/test_task_ttl.py:54
Functiontest_ttl_returned_while_working
ttlMs is present in the create result and in tasks/get while working.
tests/tasks/server/test_task_ttl.py:43
Methodtest_ttl_used_when_no_token_expiry
(self)
tests/utilities/test_token_cache.py:151
Methodtest_ttl_uses_max_when_refresh_shorter_than_access
TTL should use access token expiry when refresh is shorter. This is the xsreality case: Keycloak returns refresh_expires_in=120 (2 min)
tests/server/auth/oauth_proxy/test_tokens.py:1131
Methodtest_ttl_uses_refresh_when_refresh_longer_than_access
TTL should use refresh token expiry when refresh is longer. This is the ianw case: IdP returns expires_in=300 (5 min) but refresh_exp
tests/server/auth/oauth_proxy/test_tokens.py:1211
Functiontest_tty_device_challenge_uses_the_sign_in_layout
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:49
Functiontest_tty_environment_logout_explains_that_no_action_was_taken
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:121
Functiontest_tty_identity_uses_an_account_panel
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:80
Functiontest_tty_login_survives_browser_open_failure
( use_horizon_api: Callable[[HorizonAuthAPI], None], capsys: pytest.CaptureFixture[str], monkeypat
tests/cli/deploy/test_command.py:230
Functiontest_tty_logout_uses_the_horizon_header
( capsys: pytest.CaptureFixture[str], )
tests/cli/deploy/test_output.py:147
Methodtest_tuple_converts_to_set
Test that a tuple converts to a set.
tests/utilities/test_components.py:40
Methodtest_two_apps_no_collision
Two apps with the same tool name are disambiguated.
tests/test_fastmcp_app.py:356
Methodtest_two_apps_same_tool_name_routed_by_address
Two FastMCPApps each with a `save` tool live at distinct addresses, so they hash differently and the dispatcher routes each call to th
tests/test_fastmcp_app.py:550
Methodtest_two_clients_same_key_isolated_by_session
Test that two different clients can store the same key independently. Each client gets an auto-generated session ID, and their state is isola
tests/server/test_context.py:168
Methodtest_two_pads
(self)
tests/apps/test_file_upload.py:32
Methodtest_two_partitions_do_not_bleed
Entries written under different CacheKey.partition arms never collide.
tests/client/client/test_kv_response_cache.py:112
Methodtest_two_principals_get_isolated_buckets
(self)
tests/server/test_session_provider.py:145
Methodtest_two_principals_same_id_are_isolated
(self)
tests/server/test_session_provider.py:403
Methodtest_two_question_loop_completes
Two dependent asks complete over the in-memory transport; the client's elicitation handler answers both rounds.
tests/server/test_mrtr_guards.py:322
Methodtest_two_question_loop_over_http
The full guard loop completes over Streamable HTTP with mode='auto'.
tests/server/test_mrtr_guards.py:1208
Methodtest_two_tools_get_distinct_uris
(self)
tests/server/providers/test_prefab_synthesis.py:99
Methodtest_type_conversion_error_handling
Test that informative errors are raised for invalid type conversions.
tests/prompts/test_prompt.py:270
Methodtest_type_normalized_to_transport
Claude Code uses ``type: sse`` — verify it becomes ``transport``.
tests/cli/test_discovery.py:344
Methodtest_typed_dataclass_container_uses_declared_adapter
A typed container preserves its dataclass's alias configuration.
tests/tools/tool/test_results.py:392
Methodtest_typeddict_return_annotation
(self)
tests/tools/tool/test_output_schema.py:207
Methodtest_types_in_docstring_dont_override_schema_types
A '(str)' in the docstring must not change the schema's type.
tests/utilities/test_docstring_parsing.py:453
Methodtest_typing_union_with_member_is_member
Test that Union type with a member class is detected as a member.
tests/utilities/test_types.py:46
Methodtest_typing_union_without_member_is_not_member
Test that Union type without any member class is not a member.
tests/utilities/test_types.py:54
Methodtest_ui_and_tool_on_same_app
(self)
tests/test_fastmcp_app.py:862
Methodtest_ui_bare_decorator
(self)
tests/test_fastmcp_app.py:176
Functiontest_ui_create_detail_box_escapes
Test that detail box labels and values are properly escaped.
tests/client/test_oauth_callback_xss.py:38
Functiontest_ui_create_info_box_escapes
Test that info box content is properly escaped.
tests/client/test_oauth_callback_xss.py:30
Functiontest_ui_create_page_escapes_title
Test that page title is properly escaped.
tests/client/test_oauth_callback_xss.py:14
Functiontest_ui_create_status_message_escapes
Test that status messages are properly escaped.
tests/client/test_oauth_callback_xss.py:22
Methodtest_ui_custom_name
(self)
tests/test_fastmcp_app.py:194
Methodtest_ui_empty_parens
(self)
tests/test_fastmcp_app.py:185
Methodtest_ui_has_app_name_in_meta
(self)
tests/test_fastmcp_app.py:226
Methodtest_ui_has_resource_uri
(self)
tests/test_fastmcp_app.py:238
Methodtest_ui_registers_in_provider
(self)
tests/test_fastmcp_app.py:203
Methodtest_ui_resource_read_preserves_mime_type
Reading a ui:// resource returns content with the correct MIME type.
tests/test_apps.py:546
Methodtest_ui_resource_runs_sandboxed_when_opened_directly
( self, monkeypatch: pytest.MonkeyPatch )
tests/cli/test_apps_dev_server.py:517
Methodtest_ui_scheme_defaults_mime_type
(self)
tests/test_apps.py:292
Methodtest_ui_synthesizes_per_tool_renderer_resource
Each @app.ui() tool gets its own renderer resource synthesized on demand from the server's address registry.
tests/test_fastmcp_app.py:878
Methodtest_ui_tool_has_no_csp
CSP belongs on the UI resource, not the tool (per MCP Apps spec).
tests/test_fastmcp_app.py:250
Methodtest_ui_tool_in_list_tools
@app.ui() (visibility=["model"]) appears in list_tools.
tests/test_fastmcp_app.py:651
Methodtest_ui_tool_not_findable_via_get_app_tool
@app.ui() tools have model visibility and should NOT be returned by get_app_tool (only app-visible tools are).
tests/test_fastmcp_app.py:399
Methodtest_ui_tool_visible_to_client
(self)
tests/test_fastmcp_app.py:737
Methodtest_ui_visibility_model_only
(self)
tests/test_fastmcp_app.py:214
Methodtest_ui_with_tags
(self)
tests/test_fastmcp_app.py:274
Methodtest_ui_with_title_and_description
(self)
tests/test_fastmcp_app.py:263
Functiontest_unauthenticated_client_can_access_its_tasks
An anonymous caller can resolve tasks in the anonymous keyspace.
tests/tasks/server/test_task_security.py:56
Methodtest_unauthenticated_collapses_to_shared_namespace
(self)
tests/server/test_sessions.py:86
Methodtest_unauthenticated_mcp_request_returns_401
( self, valid_oidc_configuration_dict )
tests/server/auth/providers/test_auth0_mcp.py:311
Functiontest_unauthorized
Test that unauthenticated requests are rejected. SDK v2 surfaces the server's 401 as an MCPError ("Server returned an error response") rather
tests/client/auth/test_oauth_client.py:93
Methodtest_unauthorized_access
(self, mcp_server_url: str)
tests/server/auth/test_jwt_provider_bearer.py:486
Methodtest_unauthorized_access
(self, mcp_server_url: str)
tests/server/auth/providers/test_descope.py:638
Methodtest_unauthorized_access
(self, mcp_server_url: str)
tests/server/auth/providers/test_supabase.py:197
Methodtest_unauthorized_access
(self, mcp_server_url: str)
tests/server/auth/providers/test_propelauth.py:272
Methodtest_unauthorized_access
(self, mcp_server_url: str)
tests/server/auth/providers/test_scalekit.py:216
Methodtest_unauthorized_access
( self, memory_storage: MemoryStore, mcp_server_url: str )
tests/server/auth/providers/test_workos.py:233
Methodtest_unauthorized_disable_prompt
Test that unauthenticated requests to disable a prompt are rejected.
tests/contrib/test_component_manager.py:375
Methodtest_unauthorized_disable_resource
Test that unauthenticated requests to disable a resource are rejected.
tests/contrib/test_component_manager.py:311
Methodtest_unauthorized_disable_resource
(self)
tests/contrib/test_component_manager.py:548
Methodtest_unauthorized_disable_tool
Test that unauthenticated requests to disable a tool are rejected.
tests/contrib/test_component_manager.py:258
Methodtest_unauthorized_enable_prompt
Test that unauthenticated requests to enable a prompt are rejected.
tests/contrib/test_component_manager.py:349
← previousnext →12,601–12,700 of 13,374, ranked by callers