Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
10,312 in github.com/PrefectHQ/fastmcp
⨍
Functions
10,312
◇
Types & classes
1,519
↳
Endpoints
103
↓ 1 callers
Function
_get_tool_resolver
Get the Prefab peer-reference resolver bound to an app name.
fastmcp_slim/fastmcp/tools/base.py:528
↓ 1 callers
Method
_get_verification_key
Get the verification key for the token.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:317
↓ 1 callers
Function
_handle_prompt
Handle a prompt get within an open client session.
fastmcp_slim/fastmcp/cli/client.py:579
↓ 1 callers
Function
_handle_resource
Handle a resource read within an open client session.
fastmcp_slim/fastmcp/cli/client.py:541
↓ 1 callers
Method
_handle_status_notification
Process incoming notifications/tasks/status (internal). Called by Client when a notification is received for this task. Updates cache
fastmcp_slim/fastmcp/client/tasks.py:120
↓ 1 callers
Method
_handle_task_status_notification
Route task status notification to appropriate Task object. Called when notifications/tasks/status is received from server. Updates Ta
fastmcp_slim/fastmcp/client/client.py:776
↓ 1 callers
Function
_handle_tool_call
Handle a tool call within an open client session.
fastmcp_slim/fastmcp/cli/client.py:492
↓ 1 callers
Function
_has_cycle
(node: str)
fastmcp_slim/fastmcp/utilities/json_schema.py:42
↓ 1 callers
Function
_has_dot_segments
Return True if a URI path contains `.` or `..` segments. Browsers collapse dot-segments when resolving a 302 Location per RFC 3986 §5.2.4. Al
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:109
↓ 1 callers
Method
_has_freshness_headers
Return True when response includes cache freshness directives.
fastmcp_slim/fastmcp/server/auth/cimd.py:277
↓ 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:66
↓ 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:918
↓ 1 callers
Function
_has_unsupported_critical_headers
(header: dict[str, Any])
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:51
↓ 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
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:70
↓ 1 callers
Function
_is_fastmcp_server
(transport: object)
fastmcp_slim/fastmcp/client/transports/inference.py:161
↓ 1 callers
Function
_is_loopback_host
Check if a host is a loopback address. Per RFC 8252 §7.3, loopback addresses include localhost, 127.0.0.1, and ::1.
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:71
↓ 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:109
↓ 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:68
↓ 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:56
↓ 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_scalar_type
Check if response_type is a scalar type that needs wrapping.
fastmcp_slim/fastmcp/server/elicitation.py:217
↓ 1 callers
Method
_is_session_dead
Check if the session's underlying streams have been closed. Checks both the write stream (stdin to subprocess) and the read stream (s
fastmcp_slim/fastmcp/client/transports/stdio.py:143
↓ 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:41
↓ 1 callers
Method
_is_success_status_code
Check if a status code represents a successful response (2xx).
fastmcp_slim/fastmcp/utilities/openapi/parser.py:405
↓ 1 callers
Method
_iter_models_from_preferences
( model_preferences: ModelPreferences | str | list[str] | None, )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:157
↓ 1 callers
Method
_iter_models_from_preferences
( model_preferences: ModelPreferences | str | list[str] | None, )
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:150
↓ 1 callers
Function
_jwk_to_pem
(key_data: dict[str, Any])
fastmcp_slim/fastmcp/server/auth/cimd.py:48
↓ 1 callers
Function
_jwk_to_pem
(key_data: JWKKeyData)
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:42
↓ 1 callers
Function
_lifespan_proxy
( fastmcp_server: FastMCP[LifespanResultT], )
fastmcp_slim/fastmcp/server/server.py:256
↓ 1 callers
Method
_list_prompts
List all prompts from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:748
↓ 1 callers
Method
_list_prompts
(self)
tests/server/test_providers.py:434
↓ 1 callers
Method
_list_prompts_mcp
List all available prompts, in the format expected by the low-level MCP server. Supports pagination when list_page_size is configured
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:168
↓ 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:606
↓ 1 callers
Method
_list_resource_templates
List all resource templates from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:711
↓ 1 callers
Method
_list_resource_templates
(self)
tests/server/test_providers.py:412
↓ 1 callers
Method
_list_resources
(self)
fastmcp_slim/fastmcp/apps/app.py:399
↓ 1 callers
Method
_list_resources
(self)
tests/server/test_providers.py:390
↓ 1 callers
Function
_list_tools
Return raw tool dicts from the MCP server at mcp_url.
fastmcp_slim/fastmcp/cli/apps_dev.py:1198
↓ 1 callers
Method
_list_tools
Return all tools.
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:347
↓ 1 callers
Method
_load_components
Discover and register all components from the filesystem.
fastmcp_slim/fastmcp/server/providers/filesystem.py:106
↓ 1 callers
Method
_load_skill
Load and parse the skill directory.
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:228
↓ 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:200
↓ 1 callers
Function
_log_response_bytes
Parse accumulated proxy response bytes and log as message entries.
fastmcp_slim/fastmcp/cli/apps_dev.py:153
↓ 1 callers
Function
_log_to_server_and_client
Log a message to the server and client.
fastmcp_slim/fastmcp/server/context.py:1425
↓ 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:181
↓ 1 callers
Method
_make_execute_tool
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:589
↓ 1 callers
Function
_make_token
Create a test access token.
tests/server/versioning/test_visibility_version_fallback.py:20
↓ 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:45
↓ 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:124
↓ 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:82
↓ 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
Periodically cleanup expired JTIs to prevent unbounded growth.
fastmcp_slim/fastmcp/server/auth/cimd.py:498
↓ 1 callers
Function
_merge_ref_siblings
Merge sibling keywords from original $ref nodes into dereferenced schema. When jsonref resolves $ref, it replaces the entire node with the refere
fastmcp_slim/fastmcp/utilities/json_schema.py:184
↓ 1 callers
Function
_mock_github_failure
Configure *mock_client* to return a 401 GitHub response.
tests/server/auth/providers/test_github.py:178
↓ 1 callers
Function
_model_from_schema
Dynamically create a Pydantic model from a JSON Schema for form generation.
fastmcp_slim/fastmcp/cli/apps_dev.py:929
↓ 1 callers
Function
_needs_recursive_processing
Check if the schema needs recursive processing (smarter than just checking for recursive fields).
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:208
↓ 1 callers
Function
_normalize_callback_host_for_bind
(host: str)
fastmcp_slim/fastmcp/client/auth/oauth.py:37
↓ 1 callers
Method
_normalize_contents
Normalize input to list[ResourceContent].
fastmcp_slim/fastmcp/resources/base.py:175
↓ 1 callers
Method
_normalize_messages
Normalize input to list[Message].
fastmcp_slim/fastmcp/prompts/base.py:169
↓ 1 callers
Method
_normalize_uri
Normalize a URI to a canonical form for consent tracking.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:49
↓ 1 callers
Function
_normalize_yaml_types
Convert YAML-parsed types back to JSON-native types. ``yaml.safe_load`` converts ISO date-time strings to ``datetime``/``date`` objects. The
fastmcp_slim/fastmcp/utilities/json_schema_type.py:91
↓ 1 callers
Function
_open_browser
()
fastmcp_slim/fastmcp/cli/apps_dev.py:1820
↓ 1 callers
Function
_parse_dict_syntax
Parse dict syntax: {"low": {"title": "..."}} -> single-select titled.
fastmcp_slim/fastmcp/server/elicitation.py:226
↓ 1 callers
Function
_parse_generic_list
Parse list[X] type annotation -> multi-select.
fastmcp_slim/fastmcp/server/elicitation.py:289
↓ 1 callers
Function
_parse_list_syntax
Parse list patterns: [[...]], [{...}], or [...].
fastmcp_slim/fastmcp/server/elicitation.py:242
↓ 1 callers
Function
_parse_scalar_type
Parse scalar types (bool, int, float, str, Literal, Enum).
fastmcp_slim/fastmcp/server/elicitation.py:299
↓ 1 callers
Method
_prepare_scopes_for_token_exchange
Prepare scopes for initial token exchange (auth code -> tokens). Override this method to provide scopes during the authorization code
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1274
↓ 1 callers
Function
_proxy_upstream_error
(error: Exception)
fastmcp_slim/fastmcp/server/providers/proxy.py:70
↓ 1 callers
Function
_read_mcp_resource
Read an MCP resource by URI and return its text content.
fastmcp_slim/fastmcp/cli/apps_dev.py:1217
↓ 1 callers
Method
_read_resource_as_task
Read a resource for background execution (SEP-1686). Returns a ResourceTask object that handles both background and immediate execution.
fastmcp_slim/fastmcp/client/mixins/resources.py:321
↓ 1 callers
Method
_received_request
Override the _received_request method to route special requests through FastMCP middleware. Handles initialization requests
fastmcp_slim/fastmcp/server/low_level.py:75
↓ 1 callers
Method
_register_component
Register a single component based on its type.
fastmcp_slim/fastmcp/server/providers/filesystem.py:149
↓ 1 callers
Method
_register_tools
(self)
fastmcp_slim/fastmcp/apps/choice.py:80
↓ 1 callers
Method
_register_tools
(self)
fastmcp_slim/fastmcp/apps/approval.py:104
↓ 1 callers
Method
_register_tools
(self)
fastmcp_slim/fastmcp/apps/form.py:146
↓ 1 callers
Method
_register_tools
(self)
fastmcp_slim/fastmcp/apps/file_upload.py:279
↓ 1 callers
Method
_render
( self, arguments: dict[str, Any] | None = None, task_meta: None = None, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:262
↓ 1 callers
Function
_resolve_fastmcp_dependencies
Resolve Docket dependencies for a FastMCP function. Sets up the minimal context needed for Docket's Depends() to work: - A cache for resolved
fastmcp_slim/fastmcp/server/dependencies.py:631
↓ 1 callers
Function
_resolve_json_spec
Disambiguate a ``.json`` server spec.
fastmcp_slim/fastmcp/cli/client.py:130
↓ 1 callers
Method
_rewrite_prefab_uris
Replace placeholder Prefab URIs with per-tool hashed ones. For each tool whose ``meta.ui.resourceUri`` is the placeholder, reads the
fastmcp_slim/fastmcp/server/server.py:518
↓ 1 callers
Method
_run
( self, arguments: dict[str, Any], task_meta: None = None, )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:84
↓ 1 callers
Method
_run_monty
Launch the sandbox and return its awaitable. Isolated so the cancellation handling in `run()` can be exercised without a live `pydant
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:182
↓ 1 callers
Method
_search
(self, tools: Sequence[Tool], query: str)
fastmcp_slim/fastmcp/server/transforms/search/regex.py:42
↓ 1 callers
Method
_search
(self, tools: Sequence[Tool], query: str)
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:131
↓ 1 callers
Function
_send_images
Send post with images using the client's send_images method.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:261
↓ 1 callers
Function
_send_mcp_notification
Reconstruct MCP notification from dict and send to session. For input_required notifications with elicitation metadata, also sends a standard
fastmcp_slim/fastmcp/server/tasks/notifications.py:165
↓ 1 callers
Function
_send_progress_notification
Send notifications/tasks/status when progress updates. Args: session: MCP ServerSession task_id: Client-visible task ID t
fastmcp_slim/fastmcp/server/tasks/subscriptions.py:163
↓ 1 callers
Function
_send_status_notification
Send notifications/tasks/status to client. Per SEP-1686 line 454: notification SHOULD NOT include related-task metadata (taskId is already in
fastmcp_slim/fastmcp/server/tasks/subscriptions.py:93
↓ 1 callers
Method
_serialize_payload
(self, context: MiddlewareContext[Any])
fastmcp_slim/fastmcp/server/middleware/logging.py:33
↓ 1 callers
Method
_serialize_query_params
Serialize query parameter values according to their OpenAPI style/explode settings. By default (style=form, explode=true), list valu
fastmcp_slim/fastmcp/utilities/openapi/director.py:284
↓ 1 callers
Method
_session_runner
Background task that manages the actual session lifecycle. This task runs in the background and: 1. Establishes the transpor
fastmcp_slim/fastmcp/client/client.py:686
↓ 1 callers
Method
_set_auth
(self, auth: httpx.Auth | Literal["oauth"] | str | None)
fastmcp_slim/fastmcp/client/transports/http.py:101
↓ 1 callers
Function
_set_token
Set the access token in the auth context var.
tests/server/versioning/test_visibility_version_fallback.py:31
↓ 1 callers
Function
_set_visibility_metadata
Set visibility state in tool metadata. This uses the same metadata format as the Visibility transform, so tools marked here will be filtered
fastmcp_slim/fastmcp/tools/tool_transform.py:929
↓ 1 callers
Method
_setup_handlers
Set up core MCP protocol handlers. List handlers use SDK decorators that pass the request object to our handler (needed for paginatio
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:54
↓ 1 callers
Method
_setup_proxy_ping_handler
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:929
↓ 1 callers
Method
_setup_task_protocol_handlers
Register SEP-1686 task protocol handlers with SDK. Only registers handlers if docket is installed. Without docket, task protocol requ
fastmcp_slim/fastmcp/server/mixins/lifespan.py:240
↓ 1 callers
Function
_should_skip
(example: CodeExample)
tests/docs/test_doc_examples.py:49
← previous
next →
1,101–1,200 of 10,312, ranked by callers