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_initialization_rejects_hs_algorithm_with_jwks_uri
Test that HMAC algorithms cannot be used with JWKS URI.
tests/server/auth/test_jwt_provider.py:320
Method
test_initialization_rejects_invalid_client_auth_method
Test that invalid client_auth_method values are rejected.
tests/server/auth/providers/test_introspection.py:421
Method
test_initialization_requires_client_id
Test that client_id is required.
tests/server/auth/providers/test_introspection.py:60
Method
test_initialization_requires_client_secret
Test that client_secret is required.
tests/server/auth/providers/test_introspection.py:68
Method
test_initialization_requires_introspection_url
Test that introspection_url is required.
tests/server/auth/providers/test_introspection.py:52
Method
test_initialization_requires_key_or_uri
Test that either public_key or jwks_uri is required.
tests/server/auth/test_jwt_provider_bearer.py:87
Method
test_initialization_with_all_params
Test component initialization with all parameters.
tests/utilities/test_components.py:69
Method
test_initialization_with_client_secret_post
Test verifier initialization with client_secret_post method.
tests/server/auth/providers/test_introspection.py:397
Method
test_initialization_with_different_symmetric_algorithms
Test JWTVerifier initialization with different HMAC algorithms.
tests/server/auth/test_jwt_provider.py:329
Method
test_initialization_with_jwks_uri
Test provider initialization with JWKS URI.
tests/server/auth/test_jwt_provider_bearer.py:76
Method
test_initialization_with_minimal_params
Test component initialization with minimal parameters.
tests/utilities/test_components.py:60
Method
test_initialization_with_public_key
Test provider initialization with public key.
tests/server/auth/test_jwt_provider_bearer.py:66
Method
test_initialization_with_symmetric_key
Test JWTVerifier initialization with symmetric key.
tests/server/auth/test_jwt_provider.py:305
Method
test_initialization_without_network_call
Test that provider initialization doesn't require network call to Keycloak. Since we use hard-coded Keycloak URL patterns, initialization suc
tests/integration_tests/auth/test_keycloak_provider_integration.py:170
Method
test_initialize
( self, mcp_server: FastMCP, recording_middleware: RecordingMiddleware )
tests/server/middleware/test_middleware.py:298
Function
test_initialize_called_once
Test that initialization is called once and sets initialize_result.
tests/client/client/test_client.py:362
Method
test_initialize_idempotent
Test that calling initialize() multiple times returns cached result.
tests/client/client/test_initialize.py:48
Method
test_initialize_persists_static_client_to_storage
Static client info should be persisted to token storage.
tests/client/auth/test_oauth_static_client.py:103
Method
test_initialize_property_after_auto_init
Test accessing initialize_result property after auto-initialization.
tests/client/client/test_initialize.py:85
Method
test_initialize_property_before_connect
Test that initialize_result property is None before connection.
tests/client/client/test_initialize.py:99
Method
test_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
Function
test_initialize_result_connected
Test that initialize_result returns the correct result when connected.
tests/client/client/test_client.py:371
Function
test_initialize_result_disconnected
Test that initialize_result is None when not connected.
tests/client/client/test_client.py:388
Method
test_initialize_sets_context_client_info
_initialize should inject static client info into the auth context.
tests/client/auth/test_oauth_static_client.py:87
Method
test_initialize_timeout_custom
Test custom timeout for initialize().
tests/client/client/test_initialize.py:76
Method
test_initialize_with_instructions
Test that server instructions are available via initialize_result.
tests/client/client/test_initialize.py:61
Method
test_initialize_without_static_creds_works
_initialize should not error when no static credentials are provided.
tests/client/auth/test_oauth_static_client.py:119
Function
test_injected_task_tool_runs_as_task
()
tests/tasks/server/test_task_middleware.py:46
Method
test_injected_tool_bypass_filtering
Test that injected tools bypass filtering.
tests/server/middleware/test_tool_injection.py:255
Method
test_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
Method
test_injected_tool_error_handling
Test that errors in injected tools are properly handled.
tests/server/middleware/test_tool_injection.py:122
Method
test_injected_tool_metadata_preserved
Test that injected tool metadata is preserved.
tests/server/middleware/test_tool_injection.py:213
Method
test_injected_tool_on_mounted_server_follows_tool_auth
(self)
tests/server/middleware/test_tool_injection.py:415
Method
test_injected_tool_with_complex_return_type
Test injected tools with complex return types.
tests/server/middleware/test_tool_injection.py:182
Method
test_injected_tool_without_auth_is_available_to_any_token
(self)
tests/server/middleware/test_tool_injection.py:370
Method
test_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:160
Method
test_injects_bare_keys
(self, trace_exporter: InMemorySpanExporter)
tests/telemetry/test_module.py:44
Function
test_inmemory_progress_state
In-memory progress stores and returns state correctly.
tests/tasks/server/test_progress_dependency.py:105
Method
test_inner_exit_keeps_the_outer_context
(self, server: FastMCP)
tests/client/client/test_client.py:1026
Method
test_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
Method
test_input_json_non_object_exits
(self)
tests/cli/test_client_commands.py:131
Method
test_input_json_only
(self)
tests/cli/test_client_commands.py:109
Function
test_input_required_result_capabilities
Asks only for the input methods this client declared it can answer.
tests/conformance/server.py:598
Function
test_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
Function
test_input_required_result_list_roots
Asks the client for its roots, then reports them back.
tests/conformance/server.py:480
Function
test_input_required_result_multi_round
Asks two dependent questions across three rounds.
tests/conformance/server.py:551
Function
test_input_required_result_multiple_inputs
Asks for elicitation, sampling, and roots in a single round.
tests/conformance/server.py:531
Function
test_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
Function
test_input_required_result_request_state
Carries opaque state across the round trip and confirms it came back.
tests/conformance/server.py:502
Function
test_input_required_result_sampling
Asks the client to sample an answer, then echoes the sampled text.
tests/conformance/server.py:456
Function
test_input_required_result_tampered_state
Round-trips sealed state so a tampered echo is rejected by the framework.
tests/conformance/server.py:581
Method
test_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
Method
test_inspect_command_parsing_basic
Test basic inspect command parsing.
tests/cli/test_cli.py:545
Method
test_inspect_command_parsing_with_output
Test inspect command parsing with output file.
tests/cli/test_cli.py:554
Method
test_inspect_command_text_summary
Test inspect command with no format shows text summary.
tests/cli/test_cli.py:572
Method
test_inspect_command_with_real_server
Test inspect command with a real server file.
tests/cli/test_cli.py:608
Method
test_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:424
Method
test_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:272
Method
test_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:355
Method
test_inspector_module_mode_skips_load_server
Test that inspector with module=True skips load_server() and forwards --module.
tests/cli/test_run.py:1004
Method
test_install_app_exists
Test that the install app is properly configured.
tests/cli/test_install.py:13
Method
test_install_claude_desktop_merges_existing_config
(self, tmp_path: Path)
tests/cli/test_config_encoding.py:93
Method
test_install_commands_registered
Test that all install commands are registered.
tests/cli/test_install.py:19
Method
test_install_cursor_deduplicate_packages
Test that duplicate packages are deduplicated.
tests/cli/test_cursor.py:374
Method
test_install_cursor_failure
Test cursor installation when deeplink fails to open.
tests/cli/test_cursor.py:346
Method
test_install_cursor_success
Test successful cursor installation.
tests/cli/test_cursor.py:267
Method
test_install_cursor_with_editable
Test cursor installation with editable package.
tests/cli/test_cursor.py:315
Method
test_install_cursor_with_packages
Test cursor installation with additional packages.
tests/cli/test_cursor.py:286
Method
test_install_cursor_workspace_path_is_file
Test that passing a file as workspace_path returns False.
tests/cli/test_cursor.py:360
Method
test_install_is_idempotent
(self)
tests/test_compat.py:173
Method
test_install_minimal_args
Test install commands with minimal required arguments.
tests/cli/test_install.py:383
Method
test_install_reads_fastmcp_json
(self, tmp_path: Path)
tests/cli/test_config_encoding.py:84
Method
test_install_stdio_generates_command
Test that install_stdio produces a shell command containing fastmcp run.
tests/cli/test_install.py:279
Method
test_install_stdio_with_object
Test that install_stdio includes the :object suffix.
tests/cli/test_install.py:302
Method
test_instance_method
(self)
tests/tools/tool/test_tool.py:402
Method
test_instance_method_with_varargs_not_allowed
(self)
tests/tools/tool/test_tool.py:441
Method
test_instance_method_with_varkwargs_not_allowed
(self)
tests/tools/tool/test_tool.py:454
Method
test_insufficient_scope_challenge_includes_supported_scopes
(self)
tests/server/auth/test_enhanced_error_responses.py:719
Method
test_insufficient_scope_error_is_authorization_error
(self)
tests/server/auth/test_authorization.py:1197
Method
test_insufficient_scope_not_enhanced
Test that insufficient_scope errors are not modified.
tests/server/auth/test_enhanced_error_responses.py:857
Method
test_int_array_schema
Test route with integer array request body schema.
tests/utilities/openapi/test_direct_array_schemas.py:55
Method
test_int_coercion
Test integer type coercion for query parameters.
tests/resources/test_resource_template_query_params.py:57
Method
test_int_return_includes_wrap_result_meta
A tool returning int should set wrap_result in meta.
tests/tools/tool/test_output_schema.py:598
Method
test_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
Method
test_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
Method
test_integer
(self)
tests/cli/test_client_commands.py:36
Method
test_integer
(self)
tests/cli/test_generate_cli.py:734
Method
test_integer_accepts_integer
(self, simple_integer)
tests/utilities/json_schema_type/test_json_schema_type.py:71
Method
test_integer_accepts_integer_string
(self, simple_integer)
tests/utilities/json_schema_type/test_json_schema_type.py:75
Method
test_integer_default_preserved
Test that integer defaults are preserved in the schema.
tests/client/test_elicitation_enums.py:413
Method
test_integer_invalid
(self)
tests/cli/test_client_commands.py:42
Method
test_integer_negative
(self)
tests/cli/test_client_commands.py:39
Method
test_integer_rejects_float
(self, simple_integer)
tests/utilities/json_schema_type/test_json_schema_type.py:79
Method
test_integer_rejects_float_string
(self, simple_integer)
tests/utilities/json_schema_type/test_json_schema_type.py:84
Method
test_integral_float_counts_apply
(self, schema, valid, invalid)
tests/utilities/json_schema_type/test_constraints.py:205
Function
test_interactive_credential_is_persisted
(tmp_path: Path)
tests/cli/deploy/test_credentials.py:149
Function
test_interactive_credential_rejects_an_origin_change
( tmp_path: Path, )
tests/cli/deploy/test_credentials.py:161
Function
test_interceptor_observes_tool_call
A pass-through interceptor sees the call and the tool still runs.
tests/server/test_extensions.py:212
Function
test_interceptor_reaches_tool_metadata
An interceptor can resolve the tool being called through the context.
tests/server/test_extensions.py:262
Function
test_interceptor_short_circuits
An interceptor can return its own result without running the tool body.
tests/server/test_extensions.py:236
← previous
next →
8,801–8,900 of 13,374, ranked by callers