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
↓ 2 callers
Function
get_auth_span_attributes
Get auth attributes for the current request, if authenticated.
fastmcp_slim/fastmcp/server/telemetry.py:14
↓ 2 callers
Method
get_calls
Get all recorded calls for a specific method or hook. Args: method: The method to filter by (e.g. "tools/list")
tests/server/middleware/test_middleware_nested.py:48
↓ 2 callers
Method
get_client_id
(ctx)
tests/server/middleware/test_rate_limiting.py:165
↓ 2 callers
Function
get_db_pool
()
examples/memory.py:77
↓ 2 callers
Method
get_error_stats
Get error statistics for monitoring.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:131
↓ 2 callers
Function
get_fn_name
(fn: Callable[..., Any])
tests/conftest.py:82
↓ 2 callers
Method
get_middleware
Get HTTP application-level middleware for this auth provider. Returns: List of Starlette Middleware instances to apply to the HTT
fastmcp_slim/fastmcp/server/auth/auth.py:329
↓ 2 callers
Method
get_notifications
Get all recorded notifications, optionally filtered by method.
tests/client/test_notifications.py:35
↓ 2 callers
Method
get_prompt
( self: Client, name: str, arguments: dict[str, Any] | None = None, *,
fastmcp_slim/fastmcp/client/mixins/prompts.py:184
↓ 2 callers
Method
get_prompt_mcp
Send a prompts/get request and return the complete MCP protocol result. Args: name (str): The name of the prompt to retrieve.
fastmcp_slim/fastmcp/client/mixins/prompts.py:113
↓ 2 callers
Method
get_session_id
(self)
fastmcp_slim/fastmcp/client/transports/http.py:207
↓ 2 callers
Method
get_token_verifier
Creates a Cognito-specific token verifier with claim filtering. Args: algorithm: Optional token verifier algorithm au
fastmcp_slim/fastmcp/server/auth/providers/aws.py:224
↓ 2 callers
Method
get_tokens
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:123
↓ 2 callers
Function
goose_command
Install an MCP server in Goose. Uses uvx to run the server. Environment variables are not included in the deeplink; use `fastmcp install mcp-
fastmcp_slim/fastmcp/cli/install/goose.py:135
↓ 2 callers
Method
handle
Wrap SDK handle() and transform auth error responses.
fastmcp_slim/fastmcp/server/auth/auth.py:76
↓ 2 callers
Function
infer_transport_type_from_url
Infer the appropriate transport type from the given URL.
fastmcp_slim/fastmcp/mcp_config.py:54
↓ 2 callers
Function
install_cursor_workspace
Install FastMCP server to workspace-specific Cursor configuration. Args: file: Path to the server file server_object: Optional se
fastmcp_slim/fastmcp/cli/install/cursor.py:59
↓ 2 callers
Function
isTaggedPage
()
docs/unify-intent.js:5
↓ 2 callers
Method
lifespan
User-overridable lifespan for custom setup and teardown. Override this method to perform provider-specific initialization like openin
fastmcp_slim/fastmcp/server/providers/base.py:535
↓ 2 callers
Function
load_server
Load the example server.
examples/tasks/client.py:33
↓ 2 callers
Method
log_request
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev.py:71
↓ 2 callers
Function
log_server_banner
Creates and logs a formatted banner with server information and logo.
fastmcp_slim/fastmcp/utilities/cli.py:201
↓ 2 callers
Method
new
Create a new client instance with the same configuration but fresh session state. This creates a new client with the same transport, handlers
fastmcp_slim/fastmcp/client/client.py:422
↓ 2 callers
Function
normalizePathname
(pathname)
docs/fastmcp-analytics.js:46
↓ 2 callers
Function
observeRouteChanges
(callback)
docs/fastmcp-analytics.js:51
↓ 2 callers
Method
on_call_tool
Time tool execution.
fastmcp_slim/fastmcp/server/middleware/timing.py:111
↓ 2 callers
Method
on_list
List all stored files. Args: ctx: The current request context. Override this method for custom persistence. The default
fastmcp_slim/fastmcp/apps/file_upload.py:216
↓ 2 callers
Method
on_request
Time request execution and log the results.
fastmcp_slim/fastmcp/server/middleware/timing.py:39
↓ 2 callers
Method
read
Read the resource content.
fastmcp_slim/fastmcp/resources/template.py:453
↓ 2 callers
Method
register_client
(self, client_info: OAuthClientInformationFull)
fastmcp_slim/fastmcp/server/auth/providers/in_memory.py:70
↓ 2 callers
Method
register_tools
Register the tools provided by this class with the given MCP server.
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:58
↓ 2 callers
Method
register_with_docket
Register this tool with docket for background execution.
fastmcp_slim/fastmcp/tools/base.py:394
↓ 2 callers
Method
remove_prompt
Remove prompt(s) from this provider's storage. Args: name: The prompt name. version: If None, removes ALL versions. I
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:315
↓ 2 callers
Method
remove_resource
Remove resource(s) from this provider's storage. Args: uri: The resource URI. version: If None, removes ALL versions.
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:257
↓ 2 callers
Method
remove_tool
Remove tool(s) from this provider's storage. Args: name: The tool name. version: If None, removes ALL versions. If sp
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:229
↓ 2 callers
Function
replace_type
Given a (possibly generic, nested, or otherwise complex) type, replaces all instances of old_type with new_type. This is useful for tran
fastmcp_slim/fastmcp/utilities/types.py:454
↓ 2 callers
Method
run
Run the tool with context set for forward() functions. This method executes the tool's function while setting up the context that all
fastmcp_slim/fastmcp/tools/tool_transform.py:270
↓ 2 callers
Method
run
Overrides the run method to use the MiddlewareServerSession.
fastmcp_slim/fastmcp/server/low_level.py:234
↓ 2 callers
Method
run
Run the FastMCP server. Note this is a synchronous function. Args: transport: Transport protocol to use ("http", "stdio", "sse",
fastmcp_slim/fastmcp/server/mixins/transport.py:78
↓ 2 callers
Method
run
Execute the tool with the given arguments. Args: arguments: Dictionary of arguments to pass to the tool function. Return
fastmcp_slim/fastmcp/server/sampling/sampling_tool.py:54
↓ 2 callers
Function
sample_step_impl
Implementation of Context.sample_step(). Make a single LLM sampling call. This is a stateless function that makes exactly one LLM call and op
fastmcp_slim/fastmcp/server/sampling/run.py:484
↓ 2 callers
Method
search
Search the web.
tests/client/test_sampling.py:246
↓ 2 callers
Function
serialize_tools_for_output_json
Serialize tools to the same dict format as ``list_tools`` output.
fastmcp_slim/fastmcp/server/transforms/search/base.py:60
↓ 2 callers
Function
ssrf_safe_fetch_response
Fetch URL with SSRF protection and return response metadata. This is equivalent to :func:`ssrf_safe_fetch` but returns response headers and s
fastmcp_slim/fastmcp/server/auth/ssrf.py:239
↓ 2 callers
Method
stop
Stop the mock OAuth server.
tests/server/auth/oauth_proxy/conftest.py:243
↓ 2 callers
Function
t
(o)
docs/unify-intent.js:25
↓ 2 callers
Function
temporary_log_level
Context manager to temporarily set log level and restore it afterwards. Args: level: The temporary log level to set (e.g., "DEBUG", "INFO
fastmcp_slim/fastmcp/utilities/logging.py:117
↓ 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:1643
↓ 2 callers
Function
traverse_and_clean
Traverse schema tree, collecting $ref info and applying cleanups. The `in_schema` flag tracks whether the current node is reached via a
fastmcp_slim/fastmcp/utilities/json_schema.py:466
↓ 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
Method
verify_token
Verify WorkOS OAuth token by calling userinfo endpoint.
fastmcp_slim/fastmcp/server/auth/providers/workos.py:61
↓ 2 callers
Function
wrapHistoryMethod
(methodName)
docs/fastmcp-analytics.js: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, 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:121
↓ 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__
(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
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:755
↓ 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:1175
↓ 1 callers
Function
_body
()
fastmcp_slim/fastmcp/cli/apps_dev.py:1743
↓ 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:1021
↓ 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_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
← previous
next →
901–1,000 of 10,312, ranked by callers