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
stop_subscriber
Stop notification subscriber for a session. Called when session disconnects. Pending messages remain in queue for delivery if client reconnec
fastmcp_slim/fastmcp/server/tasks/notifications.py:286
↓ 1 callers
Method
stream
()
tests/tools/test_tool_run_in_thread.py:112
↓ 1 callers
Function
submit_to_docket
Submit any component to Docket for background execution (SEP-1686). Unified handler for all component types. Called by component's internal m
fastmcp_slim/fastmcp/server/tasks/handlers.py:43
↓ 1 callers
Function
synthesize_prefab_resource_by_uri
Intercept a Prefab renderer URI and synthesize on demand.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:215
↓ 1 callers
Function
synthesize_prefab_resources
Return fresh synthetic Prefab resources for all prefab tools. Pure.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:200
↓ 1 callers
Function
task_a
()
tests/client/client/test_client.py:553
↓ 1 callers
Function
task_b
()
tests/client/client/test_client.py:559
↓ 1 callers
Function
tasks_cancel_handler
Handle MCP 'tasks/cancel' request (SEP-1686). Cancels a running task, transitioning it to cancelled state. Args: server: FastMCP ser
fastmcp_slim/fastmcp/server/tasks/requests.py:419
↓ 1 callers
Function
tasks_get_handler
Handle MCP 'tasks/get' request (SEP-1686). Args: server: FastMCP server instance params: Request params containing taskId Re
fastmcp_slim/fastmcp/server/tasks/requests.py:135
↓ 1 callers
Function
tasks_list_handler
Handle MCP 'tasks/list' request (SEP-1686). Note: With client-side tracking, this returns minimal info. Args: server: FastMCP server
fastmcp_slim/fastmcp/server/tasks/requests.py:401
↓ 1 callers
Function
tasks_result_handler
Handle MCP 'tasks/result' request (SEP-1686). Converts raw task return values to MCP types based on task type. Args: server: FastMCP
fastmcp_slim/fastmcp/server/tasks/requests.py:220
↓ 1 callers
Method
to_arg_transform
Convert the argument transform to a FastMCP argument transform.
fastmcp_slim/fastmcp/tools/tool_transform.py:235
↓ 1 callers
Method
to_data_uri
Get image as a data URI.
fastmcp_slim/fastmcp/utilities/types.py:304
↓ 1 callers
Method
to_dict
Convert MCPConfig to dictionary format, preserving all fields.
fastmcp_slim/fastmcp/mcp_config.py:328
↓ 1 callers
Method
transform_prompts
Transform the prompt catalog. Override this method to replace, filter, or augment the prompt listing. The default implementation pass
fastmcp_slim/fastmcp/server/transforms/catalog.py:155
↓ 1 callers
Method
transform_resource_templates
Transform the resource template catalog. Override this method to replace, filter, or augment the template listing. The default implem
fastmcp_slim/fastmcp/server/transforms/catalog.py:141
↓ 1 callers
Method
transform_resources
Transform the resource catalog. Override this method to replace, filter, or augment the resource listing. The default implementation
fastmcp_slim/fastmcp/server/transforms/catalog.py:127
↓ 1 callers
Method
transform_tools
Transform the tool catalog. Override this method to replace, filter, or augment the tool listing. The default implementation passes t
fastmcp_slim/fastmcp/server/transforms/catalog.py:115
↓ 1 callers
Function
update
()
docs/unify-intent.js:53
↓ 1 callers
Function
update_importance
(user_embedding: list[float], deps: Deps)
examples/memory.py:215
↓ 1 callers
Method
validate
(token: str)
tests/server/auth/providers/test_debug.py:31
↓ 1 callers
Method
verify_token
Verify Discord OAuth token by calling Discord's tokeninfo API.
fastmcp_slim/fastmcp/server/auth/providers/discord.py:72
↓ 1 callers
Function
version
Display version information and platform details.
fastmcp_slim/fastmcp/cli/cli.py:96
↓ 1 callers
Function
was_already_auto_closed
Check if this issue was already auto-closed once.
scripts/auto_close_duplicates.py:231
↓ 1 callers
Function
with_serializer
Decorator to apply custom serialization to tool output.
examples/custom_tool_serializer_decorator.py:19
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:759
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:822
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:876
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:933
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:988
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1028
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1069
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1157
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1280
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1333
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/auth/providers/azure.py:826
Method
__aenter__
(self)
tests/server/auth/providers/test_propelauth.py:308
Method
__aenter__
(self)
tests/server/auth/providers/test_scalekit.py:192
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
fastmcp_slim/fastmcp/client/client.py:537
Method
__aexit__
Exit the context manager and reset the most recent token.
fastmcp_slim/fastmcp/server/context.py:297
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:800
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:830
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:894
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:950
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:991
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1031
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1072
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1160
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1290
Method
__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1347
Method
__aexit__
The stateful proxy client will be forced disconnected when the session is exited. So we do nothing here.
fastmcp_slim/fastmcp/server/providers/proxy.py:1207
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies.py:27
Method
__aexit__
(self, exc_type, exc, tb)
tests/server/auth/providers/test_propelauth.py:311
Method
__aexit__
(self, exc_type, exc, tb)
tests/server/auth/providers/test_scalekit.py:195
Method
__aiter__
(self)
tests/client/auth/test_oauth_client.py:296
Method
__aiter__
(self)
tests/client/auth/test_oauth_client.py:348
Method
__anext__
(self)
tests/client/auth/test_oauth_client.py:351
Method
__await__
Allow 'await task' to get result.
fastmcp_slim/fastmcp/client/tasks.py:305
Method
__call__
(self, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/tools/function_tool.py:65
Method
__call__
( self, message: RequestResponder[mcp.types.ServerRequest, mcp.types.ClientResult] | m
fastmcp_slim/fastmcp/client/messages.py:22
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context: Requ
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:86
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context: Requ
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:106
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context: Any,
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:96
Method
__call__
(self, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/resources/function_resource.py:51
Method
__call__
( self, messages: str | list[str | SamplingMessage], system_prompt: str | None = None,
fastmcp_slim/fastmcp/utilities/types.py:492
Method
__call__
(self, scope: Scope, receive: Receive, send: Send)
fastmcp_slim/fastmcp/server/http.py:38
Method
__call__
(self, scope, receive, send)
fastmcp_slim/fastmcp/server/http.py:97
Method
__call__
Execute the lifespan as an async context manager. Args: server: The FastMCP server instance. Yields: The lif
fastmcp_slim/fastmcp/server/lifespan.py:78
Method
__call__
Execute the lifespan as an async context manager. Args: server: The FastMCP server instance. Yields: The lif
fastmcp_slim/fastmcp/server/lifespan.py:123
Method
__call__
Execute both lifespans, merging their results. Args: server: The FastMCP server instance. Yields: The merged
fastmcp_slim/fastmcp/server/lifespan.py:156
Method
__call__
(self, context: MiddlewareContext[T])
fastmcp_slim/fastmcp/server/middleware/middleware.py:42
Method
__call__
Main entry point that orchestrates the pipeline.
fastmcp_slim/fastmcp/server/middleware/middleware.py:91
Method
__call__
( self, name: str, *, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/transforms/__init__.py:39
Method
__call__
( self, uri: str, *, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/transforms/__init__.py:47
Method
__call__
( self, uri: str, *, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/transforms/__init__.py:55
Method
__call__
( self, name: str, *, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/transforms/__init__.py:63
Method
__call__
(self, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/prompts/function_prompt.py:57
Method
__call__
(self, get_catalog: GetToolCatalog)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:271
Method
__call__
(self, get_catalog: GetToolCatalog)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:341
Method
__call__
(self, get_catalog: GetToolCatalog)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:403
Method
__call__
(self, get_catalog: GetToolCatalog)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:468
Method
__call__
ignore this
tests/tools/tool/test_tool.py:112
Method
__call__
(self, x: int)
tests/tools/tool/test_callable.py:20
Method
__call__
(self, x: int)
tests/tools/tool/test_callable.py:34
Method
__call__
ignore this
tests/resources/test_resource_template.py:391
Method
__call__
(self)
tests/resources/test_function_resources.py:309
Method
__call__
(self)
tests/resources/test_function_resources.py:323
Method
__call__
Internal call doc. Args: x: From call.
tests/utilities/test_docstring_parsing.py:511
Method
__call__
(self, x: int, ctx: Context)
tests/server/test_dependencies_advanced.py:220
Method
__call__
(self, param: str, ctx: Context)
tests/server/providers/test_local_provider_resources.py:284
Method
__call__
(self, name: str, ctx: Context)
tests/server/providers/test_local_provider_prompts.py:34
Method
__call__
(self, x: int, ctx: Context)
tests/server/providers/local_provider_tools/test_context.py:130
Method
__call__
(self, x: int)
tests/server/tasks/test_sync_function_task_disabled.py:197
Method
__call__
(self)
tests/server/tasks/test_sync_function_task_disabled.py:210
Method
__call__
(self, x: int)
tests/server/tasks/test_sync_function_task_disabled.py:223
Method
__call__
(self, name: str)
tests/prompts/test_prompt.py:39
Method
__call__
Internal call doc. Args: name: From call.
tests/prompts/test_prompt.py:550
Method
__call__
(self)
tests/prompts/test_prompt.py:808
Method
__call__
(self)
tests/prompts/test_prompt.py:822
Method
__call__
( self, messages: list[SamplingMessage], params: SamplingParams, context )
examples/sampling/text.py:28
← previous
next →
1,501–1,600 of 10,312, ranked by callers