Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
10,524 in github.com/PrefectHQ/fastmcp
⨍
Functions
10,524
◇
Types & classes
1,545
↳
Endpoints
103
↓ 2 callers
Function
text_resource
(uri: str, text: str)
tests/utilities/test_skills.py:40
↓ 2 callers
Method
to_mcp_result
Convert to MCP ReadResourceResult. Args: uri: The URI of the resource (required by MCP types) Returns: MCP R
fastmcp_slim/fastmcp/resources/base.py:202
↓ 2 callers
Method
tool
( self, name_or_fn: F, *, name: str | None = None, version: str | int
fastmcp_slim/fastmcp/server/server.py:1694
↓ 2 callers
Function
update_config_file
Update an MCP configuration file from a server object, preserving existing fields. This is used for updating the mcpServer configurations of thir
fastmcp_slim/fastmcp/mcp_config.py:363
↓ 2 callers
Function
validate
(token: str = Depends(get_token))
tests/server/test_dependencies.py:704
↓ 2 callers
Method
verify_token
Verify WorkOS OAuth token by calling userinfo endpoint.
fastmcp_slim/fastmcp/server/auth/providers/workos.py:61
↓ 2 callers
Method
wrap_transform
Return a new provider with this transform applied (immutable). Unlike add_transform() which mutates this provider, wrap_transform() r
fastmcp_slim/fastmcp/server/providers/base.py:106
↓ 1 callers
Function
CurrentAccessToken
Get the current access token for the authenticated user. This dependency provides access to the AccessToken for the current authenticated req
fastmcp_slim/fastmcp/server/dependencies.py:1299
↓ 1 callers
Function
CurrentHeaders
Get the current HTTP request headers. This dependency provides access to the HTTP headers for the current request, including the authorizatio
fastmcp_slim/fastmcp/server/dependencies.py:1081
↓ 1 callers
Function
CurrentRequest
Get the current HTTP request. This dependency provides access to the Starlette Request object for the current HTTP request. Only available wh
fastmcp_slim/fastmcp/server/dependencies.py:1040
↓ 1 callers
Function
CurrentWorker
Get the current Docket Worker instance managed by FastMCP. This dependency provides access to the Worker instance that FastMCP automatically
fastmcp_slim/fastmcp/server/dependencies.py:959
↓ 1 callers
Function
EntraOBOToken
Exchange the user's Entra token for a downstream API token via OBO. This dependency performs a Microsoft Entra On-Behalf-Of (OBO) token exchange,
fastmcp_slim/fastmcp/server/auth/providers/azure.py:853
↓ 1 callers
Function
OptionalCurrentContext
Get the current FastMCP Context, or None when no context is active.
fastmcp_slim/fastmcp/server/dependencies.py:868
↓ 1 callers
Function
TaskKey
()
fastmcp_slim/fastmcp/server/tasks/context.py:25
↓ 1 callers
Method
__aenter__
(self)
fastmcp_slim/fastmcp/client/client.py:534
↓ 1 callers
Method
__aenter__
Enter the context manager and set this context as the current context.
fastmcp_slim/fastmcp/server/context.py:256
↓ 1 callers
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1213
↓ 1 callers
Method
__aenter__
(self)
tests/server/test_dependencies_advanced.py:20
↓ 1 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies_advanced.py:24
↓ 1 callers
Method
__init__
Initialize OAuth client provider for an MCP server. Args: mcp_url: Full URL to the MCP endpoint (e.g. "http://host/mcp/s
fastmcp_slim/fastmcp/client/auth/oauth.py:186
↓ 1 callers
Method
__init__
Create ResourceResult. Args: contents: String, bytes, or list of ResourceContent objects. meta: Optional metadata abo
fastmcp_slim/fastmcp/resources/base.py:160
↓ 1 callers
Method
__init__
(self, session_manager: StreamableHTTPSessionManager | None)
fastmcp_slim/fastmcp/server/http.py:81
↓ 1 callers
Method
__init__
(self, fastmcp: FastMCP, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/server/low_level.py:158
↓ 1 callers
Method
__init__
(self)
fastmcp_slim/fastmcp/server/middleware/tool_injection.py:90
↓ 1 callers
Method
__init__
Initialize AWS Cognito OAuth provider. Args: user_pool_id: Your Cognito User Pool ID (e.g., "eu-central-1_XXXXXXXXX")
fastmcp_slim/fastmcp/server/auth/providers/aws.py:124
↓ 1 callers
Method
__init__
Initialize GitHub OAuth provider. Args: client_id: GitHub OAuth app client ID (e.g., "Ov23li...") client_secret: GitH
fastmcp_slim/fastmcp/server/auth/providers/github.py:206
↓ 1 callers
Method
__init__
Initialize Azure OAuth provider. Args: client_id: Azure application (client) ID from your App registration client_sec
fastmcp_slim/fastmcp/server/auth/providers/azure.py:99
↓ 1 callers
Method
__init__
Initialize Clerk OAuth provider. Args: domain: Clerk instance domain (e.g., "saving-primate-16.clerk.accounts.dev").
fastmcp_slim/fastmcp/server/auth/providers/clerk.py:273
↓ 1 callers
Method
__init__
Initialize Google OAuth provider. Args: client_id: Google OAuth client ID (e.g., "123456789.apps.googleusercontent.com")
fastmcp_slim/fastmcp/server/auth/providers/google.py:232
↓ 1 callers
Method
__init__
Initialize a JWTVerifier configured to validate JWTs using either a static key or a JWKS endpoint. Parameters: public_ke
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:214
↓ 1 callers
Method
__init__
Initialize Discord OAuth provider. Args: client_id: Discord OAuth client ID (e.g., "123456789") client_secret: Discor
fastmcp_slim/fastmcp/server/auth/providers/discord.py:193
↓ 1 callers
Method
__init__
Initialize Hugging Face OAuth provider. Args: client_id: Hugging Face OAuth app client ID. Public apps and CIMD c
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:176
↓ 1 callers
Method
__init__
(self, k1: float = 1.5, b: float = 0.75)
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:26
↓ 1 callers
Method
__init__
Create Message with automatic serialization. Args: content: The message content. str passes through directly.
fastmcp_slim/fastmcp/prompts/base.py:69
↓ 1 callers
Method
__init__
( self, *, search_fn: SearchFn | None = None, name: str = "search", de
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:253
↓ 1 callers
Method
__init__
(self, tools: Sequence[Tool])
tests/server/test_providers.py:71
↓ 1 callers
Method
__init__
(self, app: ASGIApp, header_name: str, header_value: str)
tests/server/http/test_http_middleware.py:22
↓ 1 callers
Function
_aggregate_by
(rows: list[dict], key: str)
examples/apps/explorer/explorer_server.py:321
↓ 1 callers
Method
_allow_same_origin_fallback
(self, scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:298
↓ 1 callers
Method
_allowed_hosts_for_scope
(self, scope: Scope)
fastmcp_slim/fastmcp/server/http.py:308
↓ 1 callers
Method
_apply_single_transform
Apply transformation to a single parameter. This method handles the transformation of a single argument according to the specified tr
fastmcp_slim/fastmcp/tools/tool_transform.py:768
↓ 1 callers
Function
_apply_value_metadata
Override title/description on the wrapped ``value`` property in-place.
fastmcp_slim/fastmcp/server/elicitation.py:202
↓ 1 callers
Method
_bind_restoring_handlers
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:1166
↓ 1 callers
Function
_body
()
fastmcp_slim/fastmcp/cli/apps_dev.py:1755
↓ 1 callers
Function
_build_actions_section
Render category filter, quantity adjustment, and delete controls.
examples/apps/inventory/inventory_server.py:285
↓ 1 callers
Function
_build_add_form
Render the add-item form using Form.from_model().
examples/apps/inventory/inventory_server.py:266
↓ 1 callers
Function
_build_csp
Build CSP from the generative renderer's declared requirements.
fastmcp_slim/fastmcp/apps/generative.py:44
↓ 1 callers
Method
_build_execute_description
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:566
↓ 1 callers
Function
_build_facets
Build facets for rich text formatting, including auto-detected URLs.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:92
↓ 1 callers
Function
_build_inventory_table
Render the main DataTable with all current items.
examples/apps/inventory/inventory_server.py:224
↓ 1 callers
Function
_build_map_html
( locations: list[dict], zoom: int, )
examples/apps/map/map_server.py:53
↓ 1 callers
Function
_build_picker_html
Build Prefab picker page: dropdown selector with per-tool forms.
fastmcp_slim/fastmcp/cli/apps_dev.py:1034
↓ 1 callers
Function
_build_quote_embed
Build quote embed.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:208
↓ 1 callers
Function
_build_quote_with_images_embed
Build quote embed with images.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:223
↓ 1 callers
Function
_build_reply_ref
Build reply reference.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:184
↓ 1 callers
Function
_build_request_card
Build a card for a single request inside a ForEach context.
examples/apps/approvals/approvals_server.py:217
↓ 1 callers
Function
_build_routes
Build all component management routes.
fastmcp_slim/fastmcp/contrib/component_manager/component_manager.py:50
↓ 1 callers
Function
_build_search_section
Render the search form with ForEach results.
examples/apps/inventory/inventory_server.py:241
↓ 1 callers
Function
_build_test_server
Create a minimal FastMCP server for integration tests.
tests/cli/test_client_commands.py:398
↓ 1 callers
Function
_build_test_server
Create a minimal FastMCP server for integration tests.
tests/cli/test_generate_cli.py:548
↓ 1 callers
Method
_build_url
Build URL by substituting path parameters in the template. Args: path_template: OpenAPI path template (e.g., "/users/{id
fastmcp_slim/fastmcp/utilities/openapi/director.py:347
↓ 1 callers
Function
_call_result_to_dict
Serialize a ``CallToolResult`` to a JSON-safe dict.
fastmcp_slim/fastmcp/cli/client.py:463
↓ 1 callers
Method
_call_tool_as_task
Call a tool for background execution (SEP-1686). Returns a ToolTask object that handles both background and immediate execution. If t
fastmcp_slim/fastmcp/client/mixins/tools.py:316
↓ 1 callers
Method
_chat_completion_to_result_with_tools
Convert OpenAI response to CreateMessageResultWithTools.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:451
↓ 1 callers
Function
_check_fastmcp_imports
Return list of broken fastmcp import descriptions.
tests/docs/test_doc_examples.py:64
↓ 1 callers
Function
_check_removed_kwargs
Raise helpful TypeErrors for kwargs removed in v3.
fastmcp_slim/fastmcp/server/server.py:168
↓ 1 callers
Function
_check_syntax
Return error description if syntax is invalid, else None.
tests/docs/test_doc_examples.py:54
↓ 1 callers
Method
_check_version_mixing
Check that versioned and unversioned components aren't mixed. LocalProvider enforces a simple rule: for any given name/URI, all regis
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:134
↓ 1 callers
Function
_clamp_logger
Clamp the logger to a minimum and maximum level. If min_level is provided, messages logged at a lower level than `min_level` will have their leve
fastmcp_slim/fastmcp/utilities/logging.py:221
↓ 1 callers
Method
_clear_consent_binding_cookie
Remove a specific consent binding entry after successful callback.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:253
↓ 1 callers
Function
_clear_signature_caches
Clear signature-related caches for a function. Called after modifying a function's signature to ensure downstream code sees the updated signa
fastmcp_slim/fastmcp/server/dependencies.py:305
↓ 1 callers
Function
_coerce_version
Coerce version to string, accepting int, float, or str. Raises TypeError for non-scalar types (list, dict, set, etc.). Raises ValueError if v
fastmcp_slim/fastmcp/utilities/components.py:52
↓ 1 callers
Function
_collect_providers
List API provider directories (e.g. 'github.com', 'amazonaws.com').
tests/utilities/json_schema_type/test_real_world_schemas.py:226
↓ 1 callers
Function
_collect_refs
(obj: Any, source: str)
fastmcp_slim/fastmcp/utilities/json_schema.py:24
↓ 1 callers
Function
_compute_module_name
Compute the dotted module name for a file within a package. Args: file_path: Path to the Python file. package_root: Root director
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:103
↓ 1 callers
Function
_contains_bytes_type
Check if *tp* is or contains bytes, recursing through unions and Annotated.
fastmcp_slim/fastmcp/tools/function_parsing.py:39
↓ 1 callers
Function
_contains_prefab_type
Check if *tp* is or contains a prefab type, recursing through unions and Annotated.
fastmcp_slim/fastmcp/tools/function_parsing.py:49
↓ 1 callers
Method
_context_manager
(self)
fastmcp_slim/fastmcp/client/client.py:467
↓ 1 callers
Method
_convert_string_arguments
Convert string arguments to expected types based on function signature.
fastmcp_slim/fastmcp/prompts/function_prompt.py:277
↓ 1 callers
Method
_convert_to_parameter_location
Convert string parameter location to our ParameterLocation type.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:146
↓ 1 callers
Function
_convert_to_single_content_block
( item: Any, serializer: ToolResultSerializerType | None = None, )
fastmcp_slim/fastmcp/tools/base.py:524
↓ 1 callers
Method
_convert_tool_choice_to_openai
Convert MCP tool_choice to OpenAI format.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:437
↓ 1 callers
Function
_convert_tool_to_google_genai
Convert an MCP Tool to Google GenAI format. We prune ``title`` fields from the schema because Gemini 2.5 Flash produces ``MALFORMED_FUNCTION_
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:144
↓ 1 callers
Method
_convert_tools_to_openai
Convert MCP tools to OpenAI tool format.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:415
↓ 1 callers
Method
_create_after_message
( self, context: MiddlewareContext[Any], start_time: float, )
fastmcp_slim/fastmcp/server/middleware/logging.py:105
↓ 1 callers
Function
_create_array_type
Create list/set type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:351
↓ 1 callers
Method
_create_enhanced_error_response
Create enhanced error response with content negotiation. Args: request: The original request client_id: The unregiste
fastmcp_slim/fastmcp/server/auth/handlers/authorize.py:245
↓ 1 callers
Function
_create_enum
Create enum type from list of values.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:340
↓ 1 callers
Method
_create_error_message
( self, context: MiddlewareContext[Any], start_time: float, error: Exception,
fastmcp_slim/fastmcp/server/middleware/logging.py:89
↓ 1 callers
Method
_create_forwarding_transform
Create schema and forwarding function that encapsulates all transformation logic. This method builds a new JSON schema for the transformed to
fastmcp_slim/fastmcp/tools/tool_transform.py:629
↓ 1 callers
Function
_create_numeric_type
Create numeric type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:318
↓ 1 callers
Method
_create_openapi_resource
Create and register an OpenAPIResource.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:281
↓ 1 callers
Method
_create_openapi_template
Create and register an OpenAPIResourceTemplate.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:316
↓ 1 callers
Method
_create_openapi_tool
Create and register an OpenAPITool.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:229
↓ 1 callers
Method
_create_proxy
Create underlying transport, proxy client, and proxy server for a single backend. The ProxyClient is connected via the AsyncExitStack *before
fastmcp_slim/fastmcp/client/transports/config.py:146
↓ 1 callers
Function
_create_pydantic_model
Create Pydantic BaseModel from object schema with additionalProperties.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:587
↓ 1 callers
Function
_create_roots_callback_from_fn
( fn: Callable[[RequestContext[ClientSession, LifespanContextT]], RootsList] | Callable[[RequestContex
fastmcp_slim/fastmcp/client/roots.py:58
↓ 1 callers
Function
_create_roots_callback_from_roots
( roots: RootsList, )
fastmcp_slim/fastmcp/client/roots.py:45
↓ 1 callers
Function
_create_string_type
Create string type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:267
↓ 1 callers
Method
_create_token_verifier
( self, introspection_url: str, client_id: str, client_secret: str | SecretStr
fastmcp_slim/fastmcp/server/auth/providers/propelauth.py:202
← previous
next →
901–1,000 of 10,524, ranked by callers