Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,224 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,224
◇
Types & classes
2,249
↳
Endpoints
189
↓ 1 callers
Method
_has_freshness_headers
Return True when response includes cache freshness directives.
fastmcp_slim/fastmcp/server/auth/cimd.py:302
↓ 1 callers
Function
_has_prefab_return_type
Check if a FunctionTool's return type annotation is a prefab type.
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:55
↓ 1 callers
Function
_has_transport_cause
(error: RuntimeError)
fastmcp_slim/fastmcp/server/providers/proxy.py:146
↓ 1 callers
Function
_has_ui_resource
Return True if the tool has a UI resourceUri in its metadata.
fastmcp_slim/fastmcp/cli/apps_dev.py:823
↓ 1 callers
Function
_has_unsupported_critical_headers
(header: dict[str, Any])
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:65
↓ 1 callers
Function
_head_matches_pinned
Return True when CLONE_DIR is already checked out at the pinned commit.
tests/utilities/json_schema_type/test_real_world_schemas.py:193
↓ 1 callers
Function
_header
(title: str, status: str)
examples/apps/media_picker/media_picker_server.py:340
↓ 1 callers
Function
_host_matches
(host: str, allowed_hosts: Sequence[str])
fastmcp_slim/fastmcp/server/http.py:159
↓ 1 callers
Method
_import_module
Import a Python module from a file path. Args: file_path: Path to the Python file Returns: The imported modu
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:83
↓ 1 callers
Function
_inclusive_bound
Value for a non-strict bound, or None when a strict bound replaces the sibling. A boolean ``true`` (draft-04) always replaces the sibling: ``{"mi
fastmcp_slim/fastmcp/utilities/json_schema_type.py:659
↓ 1 callers
Function
_inert_text_block
Keep server-supplied text from adding code blocks to SKILL.md. A description containing a code fence could otherwise plant its own `bash` blo
fastmcp_slim/fastmcp/cli/generate.py:702
↓ 1 callers
Method
_initialize
(self)
fastmcp_slim/fastmcp/client/auth/client_credentials.py:407
↓ 1 callers
Function
_inline_result
Convert a completed task's raw return into an inlined CallToolResult dict. A completed task should never carry an ``InputRequiredResult``: a func
fastmcp_tasks/fastmcp_tasks/handlers.py:211
↓ 1 callers
Function
_install_worker_hooks
()
fastmcp_tasks/fastmcp_tasks/extension.py:360
↓ 1 callers
Method
_interpolate_env_vars
Interpolate environment variables in a string. Replaces ${VAR_NAME} with the value of VAR_NAME from the environment. If the variable
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:112
↓ 1 callers
Function
_invoke_serializer
Call a serializer and await the result if it returns a coroutine.
fastmcp_slim/fastmcp/server/transforms/search/base.py:73
↓ 1 callers
Function
_is_client_tool_call
Whether the tool being dispatched is the one the client's ``tools/call`` named.
fastmcp_slim/fastmcp/server/dependencies.py:297
↓ 1 callers
Function
_is_fastmcp_server
(transport: object)
fastmcp_slim/fastmcp/client/transports/inference.py:202
↓ 1 callers
Function
_is_insufficient_scope_challenge
True when a response is an RFC 6750 ``insufficient_scope`` step-up challenge.
fastmcp_slim/fastmcp/client/auth/client_credentials.py:98
↓ 1 callers
Function
_is_json_data
Whether *value* is built only from types a JSON parser produces.
fastmcp_slim/fastmcp/tools/function_tool.py:164
↓ 1 callers
Function
_is_json_media_type
Return whether a media type denotes JSON, ignoring parameters.
fastmcp_slim/fastmcp/utilities/openapi/director.py:51
↓ 1 callers
Function
_is_legacy_httpx_client
Detect a legacy httpx client without importing the legacy package.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:53
↓ 1 callers
Function
_is_list_only
Whether an annotation accepts only lists, optionally wrapped or nullable.
fastmcp_slim/fastmcp/resources/template.py:59
↓ 1 callers
Function
_is_mergeable_object
Whether flattening *schema* into ``properties``/``required`` loses nothing. Only keywords the merge fully represents are allowed; any other const
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:381
↓ 1 callers
Function
_is_openapi_directory_clone
Check whether *path* looks like a clone of the openapi-directory repo.
tests/utilities/json_schema_type/test_real_world_schemas.py:114
↓ 1 callers
Function
_is_package_dir
Check if a directory is a Python package (has __init__.py).
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:69
↓ 1 callers
Function
_is_prefab_type
Check if *tp* is or contains a prefab type, recursing through unions and Annotated.
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:45
↓ 1 callers
Function
_is_rate_limit_error
Check if an exception indicates a rate limit error from GitHub API. Args: excinfo: The exception info from pytest report: Optiona
tests/integration_tests/conftest.py:6
↓ 1 callers
Function
_is_reserved_field_name
Whether a property name would act as a class or Pydantic control name. Leading underscores cover dunders, Pydantic private attributes, and the
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1238
↓ 1 callers
Function
_is_same_project_dir
Return whether a Claude Code ``projects`` key names *resolved_start*.
fastmcp_slim/fastmcp/cli/discovery.py:235
↓ 1 callers
Function
_is_scalar_type
Check if response_type is a scalar type that needs wrapping.
fastmcp_slim/fastmcp/server/elicitation.py:243
↓ 1 callers
Method
_is_session_dead
Check whether the session's underlying connection has closed. SDK v2 drives the session through a `JSONRPCDispatcher` rather than exp
fastmcp_slim/fastmcp/client/transports/stdio.py:305
↓ 1 callers
Function
_is_simple_array
Check if schema is an array of simple types. Returns (is_simple_array, item_type_str).
fastmcp_slim/fastmcp/cli/generate.py:48
↓ 1 callers
Function
_is_stub
`@overload` signatures and `...` bodies can never run real code.
scripts/pbt_coverage.py:138
↓ 1 callers
Method
_is_success_status_code
Check if a status code represents a successful response (2xx).
fastmcp_slim/fastmcp/utilities/openapi/parser.py:424
↓ 1 callers
Function
_is_transient
Whether a GitHub API error response is temporary rather than a verdict on the token. Server errors and rate limits are temporary. GitHub reports
fastmcp_slim/fastmcp/server/auth/providers/github.py:43
↓ 1 callers
Function
_is_type_checking
(node: ast.If)
scripts/pbt_coverage.py:132
↓ 1 callers
Function
_is_unconstrained_sequence
A sequence annotation that says nothing about its items. Bare `list`, `tuple`, `Sequence` (and their `typing` spellings), plus `list[Any]`, `
fastmcp_slim/fastmcp/tools/function_parsing.py:57
↓ 1 callers
Function
_is_unspecified_host
(host: str)
fastmcp_slim/fastmcp/server/http.py:148
↓ 1 callers
Function
_is_verify_replaceable_factory
Whether a Client-level ``verify`` may replace this OAuth factory. Only the bare ``httpx2.AsyncClient`` default and factories generated from a
fastmcp_slim/fastmcp/client/transports/base.py:41
↓ 1 callers
Function
_issue
(node: dict[str, Any])
scripts/rank_issues.py:256
↓ 1 callers
Method
_iter_models_from_preferences
( model_preferences: ModelPreferences | str | list[str] | None, )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:180
↓ 1 callers
Method
_iter_models_from_preferences
( model_preferences: ModelPreferences | str | list[str] | None, )
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:184
↓ 1 callers
Function
_json_for_script
Serialize JSON for embedding inside an HTML script element.
fastmcp_slim/fastmcp/cli/apps_dev.py:62
↓ 1 callers
Function
_json_schema_type_to_str
Produce a short Python-style type string from a JSON-Schema fragment.
fastmcp_slim/fastmcp/cli/client.py:509
↓ 1 callers
Function
_json_value_key
Build a hashable, type-tagged key for standard JSON values.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:770
↓ 1 callers
Function
_jwk_to_pem
(key_data: dict[str, Any])
fastmcp_slim/fastmcp/server/auth/cimd.py:55
↓ 1 callers
Function
_jwk_to_pem
(key_data: JWKKeyData)
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:54
↓ 1 callers
Function
_leaf
()
tests/pbt/schema_strategies.py:41
↓ 1 callers
Function
_legible_call_error
Rewrite a failed call's error for the model that wrote the code. A failed `call_tool` raises so the failure interrupts the chain instead of f
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:65
↓ 1 callers
Function
_lifespan_proxy
( fastmcp_server: FastMCP[LifespanResultT], )
fastmcp_slim/fastmcp/server/server.py:361
↓ 1 callers
Method
_list
(self, kind: str)
tests/pbt/test_components_machine.py:376
↓ 1 callers
Method
_list_backend
(self)
fastmcp_slim/fastmcp/skills/_proxy.py:97
↓ 1 callers
Method
_list_prompts
List all prompts from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:1220
↓ 1 callers
Method
_list_prompts
(self)
tests/server/test_providers.py:435
↓ 1 callers
Method
_list_resource_templates
List all resource templates from the mounted server. Runs the mounted server's middleware so filtering/transformation applies. Return
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:529
↓ 1 callers
Method
_list_resource_templates
List all resource templates from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:1176
↓ 1 callers
Method
_list_resource_templates
(self)
tests/server/test_providers.py:413
↓ 1 callers
Method
_list_resources
(self)
fastmcp_slim/fastmcp/apps/app.py:434
↓ 1 callers
Method
_list_resources
(self)
tests/server/providers/proxy/test_skills.py:85
↓ 1 callers
Method
_list_skill_entries
( self, context: ServerRequestContext[Any, Any] )
fastmcp_slim/fastmcp/skills/_source.py:17
↓ 1 callers
Function
_list_tools
Return raw tool dicts from the MCP server at mcp_url.
fastmcp_slim/fastmcp/cli/apps_dev.py:1108
↓ 1 callers
Method
_list_tools
Return all tools.
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:336
↓ 1 callers
Method
_list_tools
(self)
tests/server/mount/test_filtering.py:181
↓ 1 callers
Function
_listed_name
The name `tool` is listed under after passing through `transforms`. Each transform's listing gives the tool's name above it. A transform that
fastmcp_slim/fastmcp/server/providers/base.py:806
↓ 1 callers
Function
_literal_pattern
Regex for a literal run that matches it either as written or percent-encoded. `AnyUrl` percent-encodes some characters that section 3.1 requires
fastmcp_slim/fastmcp/resources/template.py:141
↓ 1 callers
Method
_load_components
Discover and register all components from the filesystem.
fastmcp_slim/fastmcp/server/providers/filesystem.py:110
↓ 1 callers
Method
_load_skill
Load and parse the skill directory.
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:227
↓ 1 callers
Function
_load_spec
Load and return a spec dict, or None on failure.
tests/utilities/json_schema_type/test_real_world_schemas.py:205
↓ 1 callers
Method
_log_message
( self, message: dict[str, str | int | float], log_level: int | None = None )
fastmcp_slim/fastmcp/server/middleware/logging.py:119
↓ 1 callers
Function
_log_record_reserved_keys
Names a `LogRecord` already uses; `Logger.log(extra=...)` raises KeyError when `extra` contains one of them. Read from the active record factory,
fastmcp_slim/fastmcp/server/context.py:121
↓ 1 callers
Function
_log_response_bytes
Parse accumulated proxy response bytes and log as message entries.
fastmcp_slim/fastmcp/cli/apps_dev_log.py:193
↓ 1 callers
Function
_log_to_server_and_client
Log a message to the server and client.
fastmcp_slim/fastmcp/server/context.py:1377
↓ 1 callers
Function
_looks_like_pem_public_key
Return True when key text appears to be PEM-encoded asymmetric key material.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:197
↓ 1 callers
Method
_lookup_later
(self)
tests/server/test_hashed_tool_dispatch.py:363
↓ 1 callers
Function
_lowlevel_of
Resolve the underlying lowlevel MCP `Server` for either server type. The SDK's own high-level `MCPServer` exposes its lowlevel server as `_lo
fastmcp_slim/fastmcp/client/transports/memory.py:24
↓ 1 callers
Function
_make_claim
()
tests/client/test_client_extensions.py:66
↓ 1 callers
Function
_make_elicit_server
()
tests/test_mcp_config.py:1174
↓ 1 callers
Function
_make_endpoint
Create an endpoint function for enabling/disabling a component type.
fastmcp_slim/fastmcp/contrib/component_manager/component_manager.py:151
↓ 1 callers
Method
_make_execute_tool
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:709
↓ 1 callers
Function
_make_fn
(t: DrawnTemplate)
tests/pbt/test_resource_read.py:27
↓ 1 callers
Function
_make_greet_server
()
tests/test_mcp_config.py:1208
↓ 1 callers
Function
_make_log_server
()
tests/test_mcp_config.py:904
↓ 1 callers
Function
_make_ping_server
()
tests/test_mcp_config.py:1479
↓ 1 callers
Function
_make_property
Build a warn-once property routing a camelCase read to a snake attr. The getter reads the live `mcp_camelcase_compat` setting on every access: if
fastmcp_slim/fastmcp/_compat.py:109
↓ 1 callers
Function
_make_session_server
()
tests/test_mcp_config.py:1295
↓ 1 callers
Function
_make_token
Create a test access token.
tests/server/versioning/test_auth_version_fallback.py:21
↓ 1 callers
Function
_make_token
Create a test access token.
tests/server/versioning/test_visibility_version_fallback.py:20
↓ 1 callers
Method
_mark_non_object_result
Mark structured content declared by a non-object output schema. Legacy MCP clients require object structured content, so the wire han
fastmcp_slim/fastmcp/tools/base.py:558
↓ 1 callers
Function
_mask_error_details
The worker server's error-masking policy, mirroring the sync call path. Resolves the owning server through ``get_server()`` (the worker-server
fastmcp_tasks/fastmcp_tasks/input_loop.py:87
↓ 1 callers
Function
_match_host
Match host component, supporting *.example.com wildcard patterns. Args: uri_host: The host from the URI being validated pattern_h
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:197
↓ 1 callers
Function
_match_path
Match path component using fnmatch for wildcard support. Args: uri_path: The path from the URI pattern_path: The path pattern (ma
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:319
↓ 1 callers
Function
_match_port
Match port component, supporting * wildcard for any port. Args: uri_port: The port from the URI (None if default, string otherwise)
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:277
↓ 1 callers
Method
_matches
(value: str, expected: str)
fastmcp_slim/fastmcp/cli/apps_dev_security.py:96
↓ 1 callers
Function
_matches_registered_loopback_redirect_uri
( redirect_uri: AnyUrl, registered_uri: AnyUrl, )
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:168
↓ 1 callers
Function
_matches_registered_redirect_uri
( redirect_uri: AnyUrl, registered_uris: list[AnyUrl] | None, )
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:197
↓ 1 callers
Method
_may_complete
(self, context: MiddlewareContext[Any])
fastmcp_slim/fastmcp/server/middleware/authorization.py:132
↓ 1 callers
Function
_maybe_apply_prefab_ui
Mark a tool as a Prefab tool if its config or return type implies it. Per-tool renderer resources are synthesized lazily at list/read time; h
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:81
↓ 1 callers
Method
_maybe_cleanup
Run ``_cleanup_expired`` at most once per cleanup interval.
fastmcp_slim/fastmcp/utilities/token_cache.py:159
↓ 1 callers
Method
_maybe_cleanup
(self)
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:252
← previous
next →
2,201–2,300 of 16,224, ranked by callers