MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

Methodtest_initialize_idempotent
Test that calling initialize() multiple times returns cached result.
tests/client/client/test_initialize.py:66
Methodtest_initialize_persists_static_client_to_storage
Static client info should be persisted to token storage.
tests/client/auth/test_oauth_static_client.py:130
Methodtest_initialize_property_after_auto_init
Test accessing initialize_result property after auto-initialization.
tests/client/client/test_initialize.py:103
Methodtest_initialize_property_before_connect
Test that initialize_result property is None before connection.
tests/client/client/test_initialize.py:117
Methodtest_initialize_raises_on_modern_era
A modern connection has no InitializeResult, so initialize() raises with a pointer to the era-neutral properties.
tests/client/client/test_mode_negotiation.py:309
Functiontest_initialize_result_connected
Test that initialize_result returns the correct result when connected.
tests/client/client/test_client.py:375
Functiontest_initialize_result_disconnected
Test that initialize_result is None when not connected.
tests/client/client/test_client.py:392
Methodtest_initialize_sets_context_client_info
_initialize should inject static client info into the auth context.
tests/client/auth/test_oauth_static_client.py:114
Methodtest_initialize_timeout_custom
Test custom timeout for initialize().
tests/client/client/test_initialize.py:94
Methodtest_initialize_with_instructions
Test that server instructions are available via initialize_result.
tests/client/client/test_initialize.py:79
Methodtest_initialize_without_static_creds_works
_initialize should not error when no static credentials are provided.
tests/client/auth/test_oauth_static_client.py:146
Functiontest_injected_task_tool_runs_as_task
()
tests/tasks/server/test_task_middleware.py:46
Methodtest_injected_tool_bypass_filtering
Test that injected tools bypass filtering.
tests/server/middleware/test_tool_injection.py:255
Methodtest_injected_tool_does_not_conflict_with_base_tool
Test that injected tools with same name as base tools are called correctly.
tests/server/middleware/test_tool_injection.py:232
Methodtest_injected_tool_error_handling
Test that errors in injected tools are properly handled.
tests/server/middleware/test_tool_injection.py:122
Methodtest_injected_tool_metadata_preserved
Test that injected tool metadata is preserved.
tests/server/middleware/test_tool_injection.py:213
Methodtest_injected_tool_on_mounted_server_follows_tool_auth
(self)
tests/server/middleware/test_tool_injection.py:415
Methodtest_injected_tool_with_complex_return_type
Test injected tools with complex return types.
tests/server/middleware/test_tool_injection.py:182
Methodtest_injected_tool_without_auth_is_available_to_any_token
(self)
tests/server/middleware/test_tool_injection.py:370
Methodtest_injected_value_is_a_user_session_instance
The handler receives a `UserSession`, not a bare `Session` — so `isinstance(session, UserSession)` holds for code that keys off it.
tests/server/test_session_provider.py:162
Methodtest_injects_bare_keys
(self, trace_exporter: InMemorySpanExporter)
tests/telemetry/test_module.py:73
Functiontest_inlined_reference_instance_data_is_independent
(keyword: str)
tests/utilities/test_json_schema_expansion.py:86
Functiontest_inmemory_progress_state
In-memory progress stores and returns state correctly.
tests/tasks/server/test_progress_dependency.py:105
Methodtest_inner_deadline_preserves_timeout_error
(self)
tests/tools/test_tool_timeout.py:281
Methodtest_inner_exit_keeps_the_outer_context
(self, server: FastMCP)
tests/client/client/test_client.py:1140
Methodtest_inner_verifier_returns_none
When the inner verifier rejects the token, None is returned without aud checking.
tests/server/auth/providers/test_propelauth.py:240
Methodtest_input_json_non_object_exits
(self)
tests/cli/test_client_commands.py:283
Methodtest_input_json_only
(self)
tests/cli/test_client_commands.py:245
Functiontest_input_required_result_capabilities
Asks only for the input methods this client declared it can answer.
tests/conformance/server.py:598
Functiontest_input_required_result_elicitation
Asks the client one elicitation question, then greets the answer. A retry whose `inputResponses` omit the key is re-asked rather than errored
tests/conformance/server.py:437
Functiontest_input_required_result_list_roots
Asks the client for its roots, then reports them back.
tests/conformance/server.py:480
Functiontest_input_required_result_multi_round
Asks two dependent questions across three rounds.
tests/conformance/server.py:551
Functiontest_input_required_result_multiple_inputs
Asks for elicitation, sampling, and roots in a single round.
tests/conformance/server.py:531
Functiontest_input_required_result_prompt
A prompt that gathers its context by elicitation before rendering. `InputRequiredResult` is universal — it is a result type, not a tools/call
tests/conformance/server.py:842
Functiontest_input_required_result_request_state
Carries opaque state across the round trip and confirms it came back.
tests/conformance/server.py:502
Functiontest_input_required_result_sampling
Asks the client to sample an answer, then echoes the sampled text.
tests/conformance/server.py:456
Functiontest_input_required_result_tampered_state
Round-trips sealed state so a tampered echo is rejected by the framework.
tests/conformance/server.py:581
Methodtest_input_responses_visible_to_tool
A guard tool reads the client's answer out of ctx.input_responses.
tests/server/test_mrtr_guards.py:337
Functiontest_input_schema_keeps_media_type_defs
()
tests/utilities/openapi/test_inline_defs.py:88
Functiontest_input_schema_omits_read_only_properties
(openapi_version: str)
tests/server/providers/openapi/test_read_only_requests.py:69
Methodtest_inspect_command_parsing_basic
Test basic inspect command parsing.
tests/cli/test_cli.py:547
Methodtest_inspect_command_parsing_with_output
Test inspect command parsing with output file.
tests/cli/test_cli.py:556
Methodtest_inspect_command_stdout_is_valid_json
Long descriptions and bracketed text must reach stdout unchanged.
tests/cli/test_cli.py:673
Methodtest_inspect_command_text_summary
Test inspect command with no format shows text summary.
tests/cli/test_cli.py:574
Methodtest_inspect_command_text_summary_keeps_brackets
Square brackets in server metadata are shown literally, not parsed as markup.
tests/cli/test_cli.py:610
Methodtest_inspect_command_with_real_server
Test inspect command with a real server file.
tests/cli/test_cli.py:627
Methodtest_inspect_parent_filters_override_mounted_server_filters
Test that parent server tag filters apply to mounted servers. Even if a mounted server has no tag filters of its own, the parent serv
tests/utilities/test_inspect.py:426
Methodtest_inspect_respects_tag_filtering
Test that inspect omits components filtered out by include_tags/exclude_tags. Regression test for Issue #2032: inspect command was showing co
tests/utilities/test_inspect.py:274
Methodtest_inspect_respects_tag_filtering_with_mounted_servers
Test that inspect applies tag filtering to mounted servers. Verifies that when a parent server has tag filters, those filters are res
tests/utilities/test_inspect.py:357
Methodtest_inspector_module_mode_skips_load_server
Test that inspector with module=True skips load_server() and forwards --module.
tests/cli/test_run.py:1254
Methodtest_install_app_exists
Test that the install app is properly configured.
tests/cli/test_install.py:16
Methodtest_install_claude_desktop_merges_existing_config
(self, tmp_path: Path)
tests/cli/test_config_encoding.py:94
Methodtest_install_commands_registered
Test that all install commands are registered.
tests/cli/test_install.py:22
Methodtest_install_creates_missing_or_blank_config_file
( self, server_file: Path, config_dir: Path, existing: str | None )
tests/cli/test_install.py:184
Methodtest_install_cursor_deduplicate_packages
Test that duplicate packages are deduplicated.
tests/cli/test_cursor.py:391
Methodtest_install_cursor_failure
Test cursor installation when deeplink fails to open.
tests/cli/test_cursor.py:346
Methodtest_install_cursor_success
Test successful cursor installation.
tests/cli/test_cursor.py:267
Methodtest_install_cursor_with_editable
Test cursor installation with editable package.
tests/cli/test_cursor.py:315
Methodtest_install_cursor_with_packages
Test cursor installation with additional packages.
tests/cli/test_cursor.py:286
Methodtest_install_cursor_workspace_empty_config_file
Test that an empty .cursor/mcp.json is filled in instead of rejected.
tests/cli/test_cursor.py:374
Methodtest_install_cursor_workspace_path_is_file
Test that passing a file as workspace_path returns False.
tests/cli/test_cursor.py:360
Methodtest_install_is_idempotent
(self)
tests/test_compat.py:173
Methodtest_install_keeps_other_settings_in_existing_config_file
( self, server_file: Path, config_dir: Path )
tests/cli/test_install.py:199
Methodtest_install_mcp_json_stdout_is_valid_json
Long paths and bracketed values must reach stdout unchanged.
tests/cli/test_install.py:377
Methodtest_install_minimal_args
Test install commands with minimal required arguments.
tests/cli/test_install.py:528
Methodtest_install_reads_fastmcp_json
(self, tmp_path: Path)
tests/cli/test_config_encoding.py:85
Methodtest_install_stdio_generates_command
Test that install_stdio produces a shell command containing fastmcp run.
tests/cli/test_install.py:424
Methodtest_install_stdio_with_object
Test that install_stdio includes the :object suffix.
tests/cli/test_install.py:447
Methodtest_instance_method
(self)
tests/tools/tool/test_tool.py:491
Methodtest_instance_method_with_varargs_not_allowed
(self)
tests/tools/tool/test_tool.py:530
Methodtest_instance_method_with_varkwargs_not_allowed
(self)
tests/tools/tool/test_tool.py:543
Methodtest_insufficient_scope_challenge_includes_supported_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:792
Methodtest_insufficient_scope_error_is_authorization_error
(self)
tests/server/auth/test_authorization.py:1214
Methodtest_insufficient_scope_not_enhanced
Test that insufficient_scope errors are not modified.
tests/server/auth/test_enhanced_error_responses.py:930
Methodtest_int_array_schema
Test route with integer array request body schema.
tests/utilities/openapi/test_direct_array_schemas.py:55
Methodtest_int_coercion
Test integer type coercion for query parameters.
tests/resources/test_resource_template_query_params.py:59
Methodtest_int_return_includes_wrap_result_meta
A tool returning int should set wrap_result in meta.
tests/tools/tool/test_output_schema.py:598
Methodtest_int_return_no_structured_content_without_schema
Test that int returns don't create structured content without output schema.
tests/tools/tool/test_content.py:410
Methodtest_int_return_with_schema_creates_structured_content
Test that int returns DO create structured content when there's an output schema.
tests/tools/tool/test_content.py:484
Methodtest_integer
(self)
tests/cli/test_client_commands.py:47
Methodtest_integer
(self)
tests/cli/test_generate_cli.py:793
Methodtest_integer_accepts_integer
(self, simple_integer)
tests/utilities/json_schema_type/test_json_schema_type.py:71
Methodtest_integer_accepts_integer_string
(self, simple_integer)
tests/utilities/json_schema_type/test_json_schema_type.py:75
Methodtest_integer_default_preserved
Test that integer defaults are preserved in the schema.
tests/client/test_elicitation_enums.py:517
Methodtest_integer_invalid
(self)
tests/cli/test_client_commands.py:53
Methodtest_integer_negative
(self)
tests/cli/test_client_commands.py:50
Methodtest_integer_rejects_float
(self, simple_integer)
tests/utilities/json_schema_type/test_json_schema_type.py:79
Methodtest_integer_rejects_float_string
(self, simple_integer)
tests/utilities/json_schema_type/test_json_schema_type.py:84
Methodtest_integral_float_counts_apply
(self, schema, valid, invalid)
tests/utilities/json_schema_type/test_constraints.py:305
Functiontest_interactive_credential_is_persisted
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:149
Functiontest_interactive_credential_rejects_an_origin_change
( tmp_path: Path, )
tests/cli/deploy/test_credentials.py:161
Functiontest_interceptor_observes_tool_call
A pass-through interceptor sees the call and the tool still runs.
tests/server/test_extensions.py:212
Functiontest_interceptor_reaches_tool_metadata
An interceptor can resolve the tool being called through the context.
tests/server/test_extensions.py:262
Functiontest_interceptor_short_circuits
An interceptor can return its own result without running the tool body.
tests/server/test_extensions.py:236
Functiontest_interceptor_tasks_the_requested_version_not_the_highest
A versioned tools/call tasks the version the caller asked for. Two versions share a name but differ in task mode: v1 is task-forbidden, v2 is
tests/tasks/server/test_task_config.py:57
Functiontest_interceptors_nest_first_registered_outermost
Multiple interceptors nest with the first-registered extension outermost.
tests/server/test_extensions.py:286
Methodtest_internal_metadata_stripped_by_get_meta
Internal metadata is stripped when calling get_meta().
tests/server/transforms/test_visibility.py:185
Functiontest_internal_tasks_extension_present_without_user_extensions
Even with no user extensions, the tasks claim is auto-registered.
tests/client/test_client_extensions.py:154
Methodtest_introspection_client_secret_as_secret_str
Test that SecretStr client_secret is unwrapped correctly.
tests/server/auth/providers/test_propelauth.py:83
Functiontest_introspection_endpoints_keep_session_and_transport_ownership_separate
()
tests/server/auth/test_auth_source_identities.py:190
← previousnext →10,501–10,600 of 15,974, ranked by callers