Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
Function
test_code_mode_execute_multi_tool_chaining
Execute block can chain multiple call_tool() calls.
tests/experimental/transforms/test_code_mode.py:652
Function
test_code_mode_execute_non_text_content_stringified
()
tests/experimental/transforms/test_code_mode.py:635
Function
test_code_mode_execute_respects_disabled_tool_visibility
()
tests/experimental/transforms/test_code_mode.py:486
Function
test_code_mode_execute_respects_tool_auth
()
tests/experimental/transforms/test_code_mode.py:544
Function
test_code_mode_execute_sees_mid_run_visibility_changes
Unlocking a tool mid-execution makes it callable in the same run.
tests/experimental/transforms/test_code_mode.py:518
Function
test_code_mode_execute_works
Execute tool can call backend tools through the sandbox.
tests/experimental/transforms/test_code_mode.py:257
Function
test_code_mode_get_schema_brief
get_schema with detail=brief returns names and descriptions only.
tests/experimental/transforms/test_code_mode.py:146
Function
test_code_mode_get_schema_default_is_detailed
get_schema defaults to detailed (markdown with parameters).
tests/experimental/transforms/test_code_mode.py:207
Function
test_code_mode_get_schema_detailed
get_schema with detail=detailed returns markdown with parameter info.
tests/experimental/transforms/test_code_mode.py:167
Function
test_code_mode_get_schema_full
get_schema with detail=full returns JSON schema.
tests/experimental/transforms/test_code_mode.py:188
Function
test_code_mode_get_schema_names_return_fields_one_level_down
A typed return no longer renders as an opaque object[].
tests/experimental/transforms/test_code_mode.py:1180
Function
test_code_mode_get_schema_not_found
get_schema reports tools that don't exist in the catalog.
tests/experimental/transforms/test_code_mode.py:224
Function
test_code_mode_get_schema_partial_match
get_schema returns schemas for found tools and reports missing ones.
tests/experimental/transforms/test_code_mode.py:240
Function
test_code_mode_get_schema_renders_enums_and_defaults
Detailed schemas surface enum values and defaults, not just types.
tests/experimental/transforms/test_code_mode.py:1151
Function
test_code_mode_get_tool_returns_meta_tools_and_passes_through
get_tool returns meta-tools by name and passes through backend tools.
tests/experimental/transforms/test_code_mode.py:603
Function
test_code_mode_is_error_result_raises_in_sandbox
A backend returning an is_error ToolResult interrupts the chain. Regression: proxied backend failures arrive as ToolResult(is_error=True) rat
tests/experimental/transforms/test_code_mode.py:1093
Function
test_code_mode_max_tool_calls_default_is_50
()
tests/experimental/transforms/test_code_mode.py:960
Function
test_code_mode_max_tool_calls_enforced
()
tests/experimental/transforms/test_code_mode.py:964
Function
test_code_mode_max_tool_calls_none_is_unlimited
()
tests/experimental/transforms/test_code_mode.py:987
Function
test_code_mode_monty_bare_call_returns_empty
Pins the reported #4263 symptom as a usage error, not a sandbox bug. The report's code called ``call_tool`` bare — ``print(call_tool(...))``
tests/experimental/transforms/test_code_mode.py:836
Function
test_code_mode_monty_call_tool_errors_are_catchable
Sandbox code can catch call_tool errors and preserve prior work.
tests/experimental/transforms/test_code_mode.py:787
Function
test_code_mode_monty_execute_call_tool
call_tool resolves and returns through the real Monty sandbox. The reported failure ("empty result") could not be reproduced on a directly-re
tests/experimental/transforms/test_code_mode.py:705
Function
test_code_mode_monty_execute_chaining
Multiple sequential call_tool() calls chain through the real sandbox.
tests/experimental/transforms/test_code_mode.py:751
Function
test_code_mode_monty_execute_string_result
A string-returning tool round-trips through the real Monty sandbox.
tests/experimental/transforms/test_code_mode.py:734
Function
test_code_mode_monty_uncaught_call_tool_error_surfaces
Uncaught backend errors still propagate out of the sandbox.
tests/experimental/transforms/test_code_mode.py:821
Function
test_code_mode_no_discovery_tools
CodeMode with empty discovery_tools exposes only execute.
tests/experimental/transforms/test_code_mode.py:343
Function
test_code_mode_rejects_discovery_execute_name_collision
CodeMode raises ValueError when a discovery tool collides with execute.
tests/experimental/transforms/test_code_mode.py:461
Function
test_code_mode_rejects_duplicate_discovery_names
CodeMode raises ValueError when discovery tools have duplicate names.
tests/experimental/transforms/test_code_mode.py:471
Method
test_code_mode_returns_task_tool_result
(self)
tests/tasks/server/test_task_catalog_transforms.py:132
Function
test_code_mode_sandbox_error_surfaces_as_tool_error
()
tests/experimental/transforms/test_code_mode.py:680
Function
test_code_mode_search_detailed
Search with detail='detailed' returns markdown with parameter info.
tests/experimental/transforms/test_code_mode.py:396
Function
test_code_mode_search_respects_disabled_tool_visibility
()
tests/experimental/transforms/test_code_mode.py:502
Function
test_code_mode_search_respects_tool_auth
()
tests/experimental/transforms/test_code_mode.py:559
Function
test_code_mode_search_returns_lightweight_results
Default search returns tool names and descriptions, not full schemas.
tests/experimental/transforms/test_code_mode.py:122
Function
test_code_mode_search_tool_full_detail
Search with detail='full' includes JSON schemas.
tests/experimental/transforms/test_code_mode.py:415
Function
test_code_mode_shadows_colliding_tool_names
Backend tools with the same name as meta-tools are shadowed.
tests/experimental/transforms/test_code_mode.py:574
Function
test_code_mode_validation_error_names_valid_parameters
A bad-argument failure names the caller's tool and its parameters.
tests/experimental/transforms/test_code_mode.py:1124
Function
test_code_mode_wall_clock_timeout_bounds_monty_callbacks
Monty's duration limits skip callback time; the wall clock does not.
tests/experimental/transforms/test_code_mode.py:1033
Function
test_code_mode_wall_clock_timeout_raises_tool_error
A tool call outlasting the wall-clock limit fails the execute call.
tests/experimental/transforms/test_code_mode.py:1011
Method
test_codex_scans_both_paths
Test that CodexSkillsProvider scans both system and user paths.
tests/server/providers/test_skills_vendor_providers.py:140
Method
test_codex_skills_provider_paths
Test CodexSkillsProvider uses both system and user paths.
tests/server/providers/test_skills_vendor_providers.py:44
Method
test_coerce_task_arguments_constraint_violation
(self)
tests/tools/tool/test_argument_validation.py:107
Method
test_coerce_task_arguments_wrong_type
(self)
tests/tools/tool/test_argument_validation.py:97
Method
test_coercion_error_exits
(self)
tests/cli/test_client_commands.py:298
Function
test_cold_cache_budget_limits_attempts_even_when_calls_fail
( ranking_module, tmp_path, fails )
tests/test_issue_ranking.py:215
Method
test_collapsed_catalog_over_a_proxy
The collapsed-catalog fallback has to survive a backend that renamed its app tools. Nothing named `save` was ever listed across the wi
tests/server/providers/test_prefab_roundtrip.py:435
Method
test_collapses_a_repeated_iss_from_the_registered_redirect_uri
A redirect_uri may carry `iss` more than once (`?iss=a&iss=b`). `replace_query_param` rewrites only the first match, so the survivor u
tests/server/auth/test_redirect_validation.py:159
Method
test_collect_returns_structured_content
(self)
tests/apps/test_form.py:31
Function
test_colliding_argument_never_reaches_call_argument
A caller-supplied value for a dependency parameter name is stripped. A CallArgument that references the dependency parameter resolves the dep
tests/server/test_call_arguments.py:164
Method
test_colliding_flags_in_skill_generation
(self)
tests/cli/test_generate_cli.py:1110
Function
test_colliding_mounts_omit_the_skill
()
tests/skills/test_composition.py:127
Method
test_colliding_params_emit_explicit_flag_and_execute
(self)
tests/cli/test_generate_cli.py:1064
Method
test_collision_handling
Test that parameter collision handling works correctly.
tests/server/providers/openapi/test_end_to_end_compatibility.py:130
Method
test_collision_resolution_maintains_functionality
Test that collision resolution doesn't break basic tool functionality.
tests/server/providers/openapi/test_parameter_collisions.py:204
Method
test_colon_line_in_prose_is_not_a_section
(self)
tests/utilities/test_docstring_parsing.py:356
Method
test_colon_line_in_prose_reaches_tool_listing
(self)
tests/utilities/test_docstring_parsing.py:671
Function
test_colon_path_segment_reaches_http_endpoint
()
tests/utilities/openapi/test_path_values.py:126
Method
test_combine_lifespans_empty
Test combining zero lifespans.
tests/server/test_server_lifespan.py:506
Method
test_combine_lifespans_fastapi_style
Test combining lifespans that yield None (FastAPI-style).
tests/server/test_server_lifespan.py:352
Method
test_combine_lifespans_fastmcp_style
Test combining lifespans that yield dicts (FastMCP-style).
tests/server/test_server_lifespan.py:381
Method
test_combine_lifespans_mixed_styles
Test combining FastAPI-style (yield None) and FastMCP-style (yield dict).
tests/server/test_server_lifespan.py:409
Method
test_combine_lifespans_result_merge_later_wins
Test that later lifespans overwrite earlier ones on key conflict.
tests/server/test_server_lifespan.py:443
Method
test_combine_lifespans_three
Test combining three lifespans.
tests/server/test_server_lifespan.py:463
Method
test_combine_lifespans_with_mapping_return_type
Test combining lifespans that return Mapping (like Starlette's Lifespan). This verifies that combine_lifespans accepts lifespans returning Ma
tests/server/test_server_lifespan.py:513
Method
test_combine_schemas_and_map_params_complex
Test parameter mapping for complex route.
tests/utilities/openapi/test_schemas.py:281
Method
test_combine_schemas_and_map_params_simple
Test combining schemas and creating parameter map.
tests/utilities/openapi/test_schemas.py:241
Method
test_combine_schemas_and_map_params_with_collisions
Test parameter mapping with collisions.
tests/utilities/openapi/test_schemas.py:255
Method
test_combine_schemas_complex
Test combining schemas for complex route.
tests/utilities/openapi/test_schemas.py:215
Method
test_combine_schemas_simple
Test combining schemas for a simple route.
tests/utilities/openapi/test_schemas.py:186
Method
test_combine_schemas_with_collisions
Test combining schemas with parameter name collisions.
tests/utilities/openapi/test_schemas.py:200
Method
test_combined_error_handling_and_retry_middleware
Test error handling and retry middleware working together.
tests/server/middleware/test_error_handling.py:728
Method
test_combined_operations
Test all pruning operations together.
tests/utilities/test_json_schema.py:608
Method
test_combines_sources
(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_discovery.py:700
Method
test_comma_separated_in_continuation
Test that {&a,b} splits into multiple params.
tests/resources/test_resource_template_level3.py:53
Method
test_command_returns_stdio_transport
(self)
tests/cli/test_client_commands.py:442
Method
test_command_single_word
(self)
tests/cli/test_client_commands.py:448
Method
test_command_with_path
(self)
tests/cli/test_goose.py:174
Function
test_common_xss_vectors
Test that common XSS attack vectors are properly escaped.
tests/client/test_oauth_callback_xss.py:123
Method
test_compare_versions
Test compare_versions function.
tests/server/versioning/test_versioning.py:72
Method
test_compiles
(self)
tests/cli/test_generate_cli.py:434
Method
test_compiles_with_backslashes_and_quotes_in_server_spec
The server spec lands in the header docstring, so it must be escaped.
tests/cli/test_generate_cli.py:535
Method
test_compiles_with_stdio_transport
(self)
tests/cli/test_generate_cli.py:548
Method
test_compiles_with_unusual_names
(self)
tests/cli/test_generate_cli.py:505
Function
test_complete_parity_both_eras
FastMCP registers no completion handler, so `completion/complete` is method-not-found. The point of this cell is parity: the *same* -32601 sur
tests/server/test_protocol_eras.py:150
Method
test_completed_flow_final_result_not_served_to_fresh_call
A continuation leg's final result must not enter the cache: its key is built from name+arguments only, identical to a fresh call's — so a
tests/server/test_mrtr_guards.py:999
Method
test_completes_with_error_and_broad_except_middleware
An ask is a result, not an error, so error-handling middleware and a broad ``except Exception`` are simply irrelevant — `call_next` returns
tests/server/test_mrtr_guards.py:799
Method
test_completing_a_flow_removes_only_its_own_state
Approve clears the transaction it completed and nothing else.
tests/server/auth/test_oauth_consent_flow.py:768
Method
test_completing_one_flow_leaves_another_submittable
Approving one transaction must not clear a different pending one. A browser can have two consent flows open — two clients connecting, or
tests/server/auth/test_oauth_consent_flow.py:718
Function
test_completion_argument_and_context_types_importable
The completion authoring types are importable from mcp_types.
tests/server/test_completions.py:281
Function
test_completion_context_reaches_handler
The already-supplied argument values arrive as the handler's context.
tests/server/test_completions.py:119
Function
test_completion_decorator_called_form_registers_handler
`@mcp.completion()` (called) registers the handler too.
tests/server/test_completions.py:225
Function
test_completion_decorator_registers_handler
`@mcp.completion` (bare) registers the handler and the wire capability.
tests/server/test_completions.py:213
Function
test_completion_does_not_poison_a_response_cache
A completion must not make a caching layer store a listing that a generic-hook filter never saw (4.0.7 served hidden prompts this way).
tests/server/test_completions.py:290
Method
test_completion_has_more_bridged
(self)
tests/test_compat.py:93
Function
test_completion_object_passes_through_pagination_hints
Returning a Completion preserves its total / has_more hints.
tests/server/test_completions.py:146
Function
test_complex_function_runtime_arg_validation_non_json
Test that basic non-JSON arguments are validated correctly using a simpler function
tests/utilities/test_typeadapter.py:127
Method
test_complex_json_param
(self)
tests/cli/test_generate_cli.py:884
Method
test_complex_nested_array
(self)
tests/cli/test_generate_cli.py:75
Method
test_complex_object
(self)
tests/cli/test_generate_cli.py:70
Method
test_complex_object_parameter
(self)
tests/cli/test_generate_cli.py:290
← previous
next →
8,301–8,400 of 15,974, ranked by callers