Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
Method
test_forward_list_roots_response
Test that the proxy client correctly forwards the `list_roots` response.
tests/server/providers/proxy/test_proxy_client.py:277
Function
test_forward_outside_context_raises_error
Test that forward() raises error when called outside transform context.
tests/tools/tool_transform/test_tool_transform.py:643
Function
test_forward_raw_outside_context_raises_error
Test that forward_raw() raises error when called outside transform context.
tests/tools/tool_transform/test_tool_transform.py:649
Function
test_forward_raw_without_argument_mapping
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:523
Method
test_forward_sampling_request
Test that the proxy client correctly forwards the `sampling` request.
tests/server/providers/proxy/test_proxy_client.py:287
Method
test_forward_sampling_request_with_tools
Test that a proxy opted into sampling tools forwards the backend's tools.
tests/server/providers/proxy/test_proxy_client.py:334
Method
test_forward_sampling_response
Test that the proxy client correctly forwards the `sampling` response.
tests/server/providers/proxy/test_proxy_client.py:324
Method
test_forward_sampling_response_unchanged
The backend receives the client's sampling result as the client sent it: its model, stop reason and content, not a text-only placehol
tests/server/providers/proxy/test_proxy_client.py:388
Method
test_forward_sampling_tools_to_client_without_support
Test that forwarded sampling tools fail as they would directly when the client does not support them.
tests/server/providers/proxy/test_proxy_client.py:364
Method
test_forward_tool_meta
Test that the proxy client correctly forwards the `echo` tool meta.
tests/server/providers/proxy/test_proxy_client.py:244
Method
test_forward_uri_keeps_literal_when_unresolved
(self)
tests/resources/test_resource_template.py:2054
Method
test_forward_uri_resolves_sanitized_keys
(self)
tests/resources/test_resource_template.py:2048
Function
test_forward_with_argument_mapping
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:487
Function
test_forward_with_incorrect_args_raises_error
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:504
Function
test_forwarded_metadata_does_not_alias_connected_backend
(mode: str)
tests/server/providers/proxy/test_server_metadata.py:399
Function
test_forwarded_tool_meta_stays_hop_safe
( front_mode: str, backend_mode: str, backend_is_modern: bool, client_class: type[Client], )
tests/server/providers/proxy/test_proxy_request_meta.py:125
Method
test_forwards_authorization_server_metadata
( self, valid_oidc_configuration_dict, monkeypatch )
tests/server/auth/providers/test_auth0_mcp.py:239
Function
test_forwards_backend_logs_while_reading_metadata
()
tests/server/providers/proxy/test_server_metadata.py:253
Function
test_forwards_backend_skills_without_reading_files
()
tests/server/providers/proxy/test_skills.py:65
Method
test_forwards_chunks_as_the_app_produces_them
The bridge must stream, not buffer: chunks arrive before the app finishes.
tests/utilities/test_asgi_transport.py:38
Method
test_forwards_extra_args
Test that extra arguments are forwarded after the module name.
tests/cli/test_run.py:948
Function
test_forwards_metadata_across_all_protocol_era_combinations
( frontend_mode: str, backend_mode: str )
tests/server/providers/proxy/test_server_metadata.py:177
Method
test_four_level_nested_tool_invocation
Test invoking tools from servers mounted 4 levels deep.
tests/server/mount/test_advanced.py:358
Method
test_fragment_after_path_param_and_query
(self)
tests/resources/test_resource_template.py:1084
Method
test_fragment_does_not_prevent_match
(self)
tests/resources/test_resource_template.py:1070
Method
test_fragment_only_addition_rejected
The reviewer's repro: a fragment-only addition matched.
tests/server/auth/test_redirect_validation.py:458
Method
test_fragmentless_uri_still_matches
(self)
tests/server/auth/test_redirect_validation.py:501
Method
test_frame_domains_reach_resource
(self)
tests/server/providers/test_prefab_synthesis.py:28
Function
test_frames_reach_the_stream_in_the_order_they_were_received
The SDK queues each notification method separately, so without wire-order routing a heartbeat overtakes the events read just before it, and its cu
tests/experimental/events/test_push_lifecycle.py:383
Function
test_fresh_cached_session_skips_login
(tmp_path, monkeypatch)
tests/test_triage_floor_feed.py:65
Method
test_from_app_config_resource_fields_only
(self)
tests/test_apps.py:200
Method
test_from_app_config_with_tool_fields
(self)
tests/test_apps.py:194
Function
test_from_config_applies_entry_timeout
( mode: str, timeout: int | None )
tests/client/group/test_client_group.py:587
Function
test_from_config_applies_mode_per_server
()
tests/client/group/test_client_group.py:100
Function
test_from_directory_checks_limits_before_reading_files
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, limit: str )
tests/skills/test_skill.py:125
Function
test_from_directory_rejects_symlinks
(tmp_path: Path)
tests/skills/test_skill.py:149
Function
test_from_directory_requires_matching_name
(tmp_path: Path)
tests/skills/test_skill.py:117
Function
test_from_directory_snapshots_exact_bytes
(tmp_path: Path)
tests/skills/test_skill.py:104
Method
test_from_file
Test loading config from JSON file with nested structure.
tests/cli/test_config.py:285
Method
test_from_file_preserves_absolute_paths
(self, tmp_path)
tests/cli/test_config.py:383
Method
test_from_file_resolves_paths_from_config_directory
( self, tmp_path, monkeypatch, source )
tests/cli/test_config.py:357
Method
test_from_file_with_string_entrypoint
Test loading config with dict source format.
tests/cli/test_config.py:308
Function
test_from_files_accepts_structured_metadata_and_tool_lists
( caplog: pytest.LogCaptureFixture, )
tests/skills/test_skill.py:75
Function
test_from_files_requires_valid_frontmatter
()
tests/skills/test_skill.py:68
Method
test_from_function_preserves_decorator_metadata
Direct from_function calls should respect @tool metadata.
tests/tools/test_standalone_decorator.py:120
Method
test_from_function_rejects_hyphen_underscore_collision
Two raw param names that normalize to the same key are rejected.
tests/resources/test_resource_template.py:1348
Method
test_from_openapi_threads_validate_output
FastMCP.from_openapi() correctly passes validate_output to the provider.
tests/server/providers/openapi/test_openapi_features.py:1376
Function
test_from_package
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/skills/test_skill.py:158
Method
test_from_required
Test pruning a parameter that's in the required list.
tests/utilities/test_json_schema.py:66
Function
test_from_tool_accepts_decorated_function
()
tests/tools/tool_transform/test_tool_transform.py:68
Function
test_from_tool_accepts_plain_function
()
tests/tools/tool_transform/test_tool_transform.py:85
Function
test_from_tool_decorated_function_preserves_metadata
()
tests/tools/tool_transform/test_tool_transform.py:99
Function
test_from_tool_decorated_function_runs
(add_tool)
tests/tools/tool_transform/test_tool_transform.py:121
Function
test_from_tool_decorated_function_via_client
()
tests/tools/tool_transform/test_tool_transform.py:777
Function
test_from_tool_preserves_icons
()
tests/tools/tool_transform/test_tool_transform.py:109
Function
test_frontend_values_take_precedence
(frontend_mode: str)
tests/server/providers/proxy/test_server_metadata.py:235
Method
test_frontmatter
(self)
tests/cli/test_generate_cli.py:820
Function
test_frontmatter_changes_do_not_leak_into_the_skill
()
tests/skills/test_skill.py:178
Method
test_frontmatter_colon_in_value_falls_back_preserves_keys
(self)
tests/server/providers/test_skills_provider.py:111
Method
test_frontmatter_description_bool_recovers_original_text
(self)
tests/server/providers/test_skills_provider.py:170
Method
test_frontmatter_description_no_not_coerced_to_false
(self)
tests/server/providers/test_skills_provider.py:192
Method
test_frontmatter_description_numeric_scalar_preserves_original_text
(self)
tests/server/providers/test_skills_provider.py:202
Method
test_frontmatter_description_yes_not_coerced_to_true
(self)
tests/server/providers/test_skills_provider.py:181
Function
test_frontmatter_dump_does_not_add_absent_optional_fields
()
tests/skills/test_models.py:119
Method
test_frontmatter_malformed_falls_back_to_line_parser
(self)
tests/server/providers/test_skills_provider.py:97
Method
test_frontmatter_multiline_folded_block
(self)
tests/server/providers/test_skills_provider.py:84
Method
test_frontmatter_multiline_literal_block
(self)
tests/server/providers/test_skills_provider.py:69
Method
test_frontmatter_non_dict_returns_empty
(self)
tests/server/providers/test_skills_provider.py:126
Function
test_frontmatter_preserves_allowed_tools_wire_name
()
tests/skills/test_models.py:51
Function
test_frontmatter_preserves_unknown_json_fields
()
tests/skills/test_models.py:40
Function
test_frontmatter_rejects_empty_compatibility
()
tests/skills/test_models.py:108
Function
test_frontmatter_rejects_invalid_known_optional_fields
( field: str, value: object, message: str )
tests/skills/test_models.py:99
Function
test_frontmatter_rejects_invalid_names
(name: str)
tests/skills/test_models.py:64
Function
test_frontmatter_rejects_non_finite_extra_values
()
tests/skills/test_models.py:81
Function
test_frontmatter_rejects_non_json_extra_values
()
tests/skills/test_models.py:74
Function
test_frontmatter_rejects_whitespace_description
()
tests/skills/test_models.py:69
Method
test_frontmatter_scalars_are_preserved_as_strings
`SkillInfo.frontmatter` is public; it must not silently retype values. `yaml.BaseLoader` parses block scalars (unlike the old line parser)
tests/server/providers/test_skills_provider.py:138
Method
test_frontmatter_with_quoted_strings
(self)
tests/server/providers/test_skills_provider.py:57
Method
test_frontmatter_with_tags_list
(self)
tests/server/providers/test_skills_provider.py:46
Method
test_frontmatter_with_tools_starts_at_column_zero
(self)
tests/cli/test_generate_cli.py:854
Method
test_full_app_lifecycle_through_client
End-to-end: mount an app on a namespaced server, call UI tool through a client (verifying structured_content is returned), then call t
tests/test_fastmcp_app.py:922
Method
test_full_oauth_flow_with_mock_provider
Test complete OAuth flow with mock provider.
tests/server/auth/oauth_proxy/test_e2e.py:23
Method
test_function_prompt_json_schema_generation
Verify FunctionPrompt.model_json_schema() works without errors.
tests/test_json_schema_generation.py:124
Method
test_function_resource_creation
Test creating a FunctionResource.
tests/resources/test_function_resources.py:11
Method
test_function_resource_json_schema_generation
Verify FunctionResource.model_json_schema() works without errors.
tests/test_json_schema_generation.py:76
Method
test_function_resource_template_json_schema_generation
Verify FunctionResourceTemplate.model_json_schema() works without errors.
tests/test_json_schema_generation.py:99
Function
test_function_spans_cover_bodies_not_headers
(pbt)
tests/test_pbt_coverage.py:24
Function
test_function_spans_skip_bodies_that_never_run
(pbt)
tests/test_pbt_coverage.py:42
Method
test_function_template_create_resource_preserves_all_fields
(self)
tests/resources/test_resource_template_meta.py:53
Method
test_function_tool_json_schema_generation
Verify FunctionTool.model_json_schema() works without errors.
tests/test_json_schema_generation.py:32
Method
test_function_tool_task_config_still_works
FunctionTool should still derive execution from task_config.
tests/tools/tool/test_tool.py:712
Method
test_function_with_keyword_only_ok
(self)
tests/resources/test_resource_template.py:417
Function
test_function_with_kwargs_can_add_params
Test that function with **kwargs can add new parameters.
tests/tools/tool_transform/test_tool_transform.py:755
Method
test_function_with_positional_only_not_allowed
(self)
tests/resources/test_resource_template.py:400
Method
test_function_with_varargs_not_allowed
(self)
tests/resources/test_resource_template.py:386
Method
test_function_with_varkwargs_ok
(self)
tests/resources/test_resource_template.py:429
Function
test_function_without_kwargs_can_have_extra_params
Test that function can have extra parameters not in parent tool.
tests/tools/tool_transform/test_tool_transform.py:733
Function
test_function_without_kwargs_missing_params
Test that function missing required transformed parameters raises ValueError.
tests/tools/tool_transform/test_tool_transform.py:713
Method
test_functionality_after_optimization
Verify that performance optimization doesn't break functionality.
tests/server/providers/openapi/test_performance_comparison.py:225
Method
test_future_expiring_client_info_is_stored
(self)
tests/client/auth/test_oauth_client.py:720
← previous
next →
10,401–10,500 of 16,725, ranked by callers