Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
Function
test_worker_hooks_survive_sibling_server_shutdown
One server's shutdown must not strand another server's workers. The worker-side hooks core exposes are process-global; two sibling servers ea
tests/tasks/server/test_extension.py:388
Function
test_worker_keeps_running_after_cancel_before_task_starts
A cancel that lands before the worker starts a task must not stop the worker.
tests/tasks/server/test_task_methods.py:150
Function
test_worker_span_starts_a_linked_trace_by_default
( trace_exporter: InMemorySpanExporter, )
tests/tasks/server/test_task_tracing.py:40
Method
test_worker_still_sees_the_submitting_caller
( self, echo_token_server: FastMCP, encryption_key: str )
tests/tasks/server/test_snapshot_encryption.py:221
Method
test_workos_provider_threads_http_client
(self)
tests/server/auth/providers/test_http_client.py:330
Method
test_works_with_namespace_on_provider
ResourcesAsTools works when provider has Namespace transform.
tests/server/transforms/test_resources_as_tools.py:240
Method
test_works_with_namespace_on_provider
PromptsAsTools works when provider has Namespace transform.
tests/server/transforms/test_prompts_as_tools.py:201
Method
test_wrap_and_unwrap
(self)
tests/server/middleware/test_caching.py:707
Method
test_wrap_and_unwrap_preserves_is_error
(self)
tests/server/middleware/test_caching.py:720
Function
test_wrap_delegates_non_diverted_calls
Only a task-tagged tools/call is diverted; everything else delegates. A `tools/list` call is never routed to task production, so its payload is
tests/tasks/server/test_wire_production.py:61
Function
test_wrap_leaves_ordinary_tool_result_untouched
A normal (non-task) tools/call result serializes exactly as before.
tests/tasks/server/test_wire_production.py:53
Function
test_wrap_preserves_task_result
(installed)
tests/tasks/server/test_wire_production.py:46
Method
test_wrapped_result_includes_meta_flag
Wrapped results include wrap_result in meta.
tests/server/providers/local_provider_tools/test_output_schema.py:270
Method
test_wrapper_root_self_reference_resolves
( self, root, next_schema, extras, title )
tests/utilities/json_schema_type/test_advanced.py:620
Method
test_wrappers_preserve_default_challenge_scopes
( self, wrapper: str, custom_default: bool )
tests/server/auth/test_auth_provider.py:62
Method
test_wraps_other_failures_with_cause
(self)
tests/client/client/test_session.py:295
Method
test_write_cache_creates_file
Writing cache creates the cache file.
tests/utilities/test_version_check.py:93
Function
test_write_only_property_in_all_of_member_is_not_required
(via_ref: bool)
tests/server/providers/openapi/test_write_only_responses.py:249
Method
test_writes_file
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:613
Method
test_writes_skill_file
(self, tmp_path: Path)
tests/cli/test_generate_cli.py:703
Method
test_writes_text_resources_as_utf8
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
tests/utilities/test_skills.py:298
Method
test_writes_utf8_regardless_of_locale
Output is UTF-8 even where the default text encoding is not (Windows).
tests/cli/test_generate_cli.py:661
Method
test_writing_state_does_not_clobber_the_marker
(self)
tests/server/test_sessions.py:200
Method
test_wrong_app_returns_none
(self)
tests/test_fastmcp_app.py:338
Method
test_wrong_audience_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:461
Method
test_wrong_auth_method_raises
validate_private_key_jwt raises ValueError if auth method is not private_key_jwt.
tests/server/auth/test_cimd_validators.py:672
Method
test_wrong_client_binding_does_not_consume_jti
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:652
Method
test_wrong_resource_binding_does_not_consume_jti
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:676
Method
test_wrong_signature_rejected
( self, config: IdentityAssertion, rsa_key_pair_2: RSAKeyPair )
tests/server/auth/oauth_proxy/test_identity_assertion.py:507
Method
test_wrong_startup_token_starts_no_session
(self, token: str)
tests/cli/test_apps_dev_server.py:149
Method
test_wrong_tool_returns_none
(self)
tests/test_fastmcp_app.py:347
Method
test_wrong_typ_rejected
( self, idp_key: RSAKeyPair, config: IdentityAssertion )
tests/server/auth/oauth_proxy/test_identity_assertion.py:472
Method
test_wrong_type_is_argument_error
(self)
tests/tools/tool/test_argument_validation.py:44
Method
test_www_authenticate_header_points_to_base_url
Test that WWW-Authenticate header points to RFC 9728-compliant metadata URL. The WWW-Authenticate header includes the resource path per RFC 9
tests/server/auth/test_auth_provider.py:267
Function
test_x_mcp_header_annotation_survives_schema_generation
FastMCP preserves `x-mcp-header` in a tool's advertised input schema. This is the annotation the SDK client reads to decide which arguments to
tests/server/http/test_routable_headers.py:80
Method
test_yaml_collection_description_falls_back_to_body
( self, tmp_path: Path, frontmatter: str )
tests/server/providers/test_skills_provider.py:550
Method
test_yields_in_memory_server
(self)
tests/utilities/test_asgi_transport.py:270
Method
test_yields_url_of_running_server
(self)
tests/utilities/test_tests.py:53
Function
test_youtube_video_id
(url: str, expected: str | None)
examples/apps/media_picker/test_media_picker.py:70
Function
test_zero_capacity_accepts_empty_files
()
tests/apps/test_file_upload_retention.py:95
Function
test_zero_interval_allows_immediate_rotation
(key_data: dict[str, Any])
tests/server/auth/test_jwks_refresh.py:133
Method
test_zero_page_size_raises
Zero page size should raise ValueError.
tests/server/test_pagination.py:383
Method
test_zero_rate_deprecation_points_to_omitting_burst_capacity
The reject-all setup keeps its behavior and gets a migration that preserves it.
tests/server/middleware/test_rate_limiting.py:233
Method
test_zero_rate_keeps_rejecting_every_request
A rate of 0 has no default burst, so it still closes the endpoint.
tests/server/middleware/test_rate_limiting.py:216
Method
test_zero_threshold_only_refreshes_on_actual_expiry
With threshold=0, token that's not yet expired is not refreshed.
tests/server/auth/oauth_proxy/test_tokens.py:2189
Method
test_zero_ttl_server_not_cached_on_modern
A modern server that emits `ttlMs: 0` (no hint) is not cached even though the connection is modern.
tests/client/client/test_response_cache.py:154
Method
test_zero_values_disable_timeout
(self)
tests/utilities/test_timeout.py:22
Method
testserver_url_has_query
Test detection of query parameters in server URLs.
tests/server/auth/oauth_proxy/test_config.py:61
Function
text_encoding
(encoding: str | None, stacklevel: int = 2)
tests/cli/test_config_encoding.py:40
Function
text_me
Send a text message to a phone number via https://surgemsg.com/
examples/text_me.py:48
Method
text_plain_spec
OpenAPI spec with a text/plain resource template endpoint.
tests/server/providers/openapi/test_openapi_features.py:569
Method
thing
(ctx: Context)
tests/tasks/server/test_task_catalog_transforms.py:176
Function
thread_ids
(ctx: Context)
tests/tools/test_generator_thread_dispatch.py:38
Method
tick
()
tests/tools/test_tool_run_in_thread.py:150
Function
ticket_breakdown
Show open tickets by category as a donut chart.
examples/apps/patterns_server.py:265
Method
time_format
(self)
tests/utilities/json_schema_type/test_formats.py:47
Function
timed_out
()
tests/server/test_legacy_httpx_errors.py:28
Function
timed_out_call_leaves_connection_usable
()
tests/downstream/smoke_pydantic_ai.py:187
Function
timed_out_call_leaves_connection_usable
()
tests/downstream/smoke_langchain_mcp.py:199
Method
timed_tool
(self)
tests/contrib/test_mcp_mixin.py:555
Method
times_out
()
tests/tools/test_tool_timeout.py:226
Function
timing_server
Create a FastMCP server specifically for timing middleware tests.
tests/server/middleware/test_timing.py:140
Method
to_client_logger
(self)
tests/server/test_context.py:644
Method
to_dict
(self)
fastmcp_slim/fastmcp/client/oauth_callback.py:95
Method
to_mcp_result
(self)
fastmcp_slim/fastmcp/tools/base.py:286
Method
to_mcp_skill
Build the Skills extension entry for this skill served at `skill://{path}/`.
fastmcp_slim/fastmcp/skills/skill.py:110
Method
to_transport
Get the transport for the transforming MCP server.
fastmcp_slim/fastmcp/mcp_config.py:165
Method
to_transport
(self)
tests/test_mcp_config.py:115
Method
to_transport
(self)
tests/test_mcp_config.py:1350
Method
to_transport
(self)
tests/client/group/test_client_group.py:32
Function
to_uppercase
Convert text to uppercase.
examples/search/server_regex.py:63
Function
to_uppercase
Convert text to uppercase.
examples/search/server_bm25.py:59
Function
to_uppercase
Convert text to uppercase.
examples/code_mode/server.py:57
Method
toggle
Toggle a feature.
tests/server/test_input_validation.py:506
Method
toggle
(flag: bool)
tests/server/providers/local_provider_tools/test_parameters.py:142
Method
toggle_test
(ctx: Context)
tests/server/test_session_visibility.py:324
Function
token_client
( rsa_key_pair: RSAKeyPair, request: pytest.FixtureRequest )
tests/server/auth/test_private_key_jwt_auth.py:28
Method
token_endpoint
(self)
tests/server/auth/oauth_proxy/conftest.py:58
Method
token_endpoint_url
The token endpoint URL, as advertised in the authorization server metadata. A CIMD `private_key_jwt` assertion is bound to this URL as its `a
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:865
Function
tokens
Exchange authorization code for tokens. Parameters can be customized via indirect parameterization: @pytest.mark.parametrize("tokens",
tests/server/test_auth_integration.py:318
Function
tool
(query: str)
tests/experimental/transforms/test_jev_search.py:104
Method
tool
( self, name_or_fn: F, *, name: str | None = None, description: str |
fastmcp_slim/fastmcp/apps/app.py:183
Method
tool
Backwards-compatible access to the component as a Tool.
fastmcp_slim/fastmcp/utilities/authorization.py:40
Method
tool
( self: LocalProvider, name_or_fn: F, *, name: str | None = None, vers
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:166
Method
tool
(self)
tests/contrib/test_mcp_mixin.py:458
Method
tool
(item: str, session_id: SessionId)
tests/server/test_sessions.py:233
Method
tool1
()
tests/server/mount/test_advanced.py:100
Method
tool1x
()
tests/utilities/test_inspect.py:578
Method
tool2
()
tests/server/mount/test_advanced.py:104
Method
tool2x
()
tests/utilities/test_inspect.py:582
Method
tool_1
()
tests/server/providers/local_provider_tools/test_tags.py:46
Method
tool_2
()
tests/server/providers/local_provider_tools/test_tags.py:50
Method
tool_a
()
tests/test_apps_prefab.py:167
Method
tool_a
()
tests/test_apps.py:736
Method
tool_a
(config: dict[str, str] = Shared(get_config))
tests/server/test_dependencies.py:1029
Method
tool_a
()
tests/server/providers/test_prefab_synthesis.py:186
Method
tool_a
()
tests/server/providers/proxy/test_stateful_proxy_client.py:180
Method
tool_a
()
tests/server/mount/test_mount.py:667
Method
tool_all
(self)
tests/contrib/test_mcp_mixin.py:176
Method
tool_all_p
(self)
tests/contrib/test_mcp_mixin.py:204
← previous
next →
15,701–15,800 of 16,098, ranked by callers