MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,312 in github.com/PrefectHQ/fastmcp

↓ 1 callersMethod_show_consent_page
Display consent page or auto-approve/deny based on cookies.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:311
↓ 1 callersFunction_single_pass_optimize
Optimize JSON schemas in a single traversal for better performance. This function combines three schema cleanup operations that would normal
fastmcp_slim/fastmcp/utilities/json_schema.py:405
↓ 1 callersFunction_slugify
Convert text to a URL-friendly slug format. Only contains lowercase letters, uppercase letters, numbers, and underscores.
fastmcp_slim/fastmcp/server/providers/openapi/components.py:115
↓ 1 callersFunction_spec_files_for_provider
Find all spec files for a given provider.
tests/utilities/json_schema_type/test_real_world_schemas.py:234
↓ 1 callersFunction_start_user_server
Start the user's MCP server as a subprocess on mcp_port.
fastmcp_slim/fastmcp/cli/apps_dev.py:1662
↓ 1 callersFunction_stdio_transport_connect_task
A standalone connection task for a stdio transport. It is not a part of the StdioTransport class to ensure that the connection task does not hold
fastmcp_slim/fastmcp/client/transports/stdio.py:175
↓ 1 callersFunction_stream_and_cleanup
(resp: httpx.Response)
fastmcp_slim/fastmcp/cli/apps_dev.py:1541
↓ 1 callersFunction_strip_discriminator
Recursively remove OpenAPI ``discriminator`` keys from a schema. Pydantic emits ``discriminator.mapping`` with values like ``#/$defs/ClassNam
fastmcp_slim/fastmcp/utilities/json_schema.py:77
↓ 1 callersMethod_submit_consent
Handle consent approval/denial, set cookies, and redirect appropriately.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:446
↓ 1 callersFunction_test_provider
Run json_schema_to_type on every schema for one provider.
tests/utilities/json_schema_type/test_real_world_schemas.py:257
↓ 1 callersMethod_to_server_and_underlying_transport
Turn the transforming server into a FastMCP proxy and return its transport.
fastmcp_slim/fastmcp/mcp_config.py:122
↓ 1 callersFunction_tool_call
Build a regular tool-use reply.
tests/client/test_sampling_result_types.py:569
↓ 1 callersMethod_tool_reply
(value: int)
tests/client/test_sampling_result_types.py:461
↓ 1 callersFunction_tool_skill_section
Generate a SKILL.md section for a single tool.
fastmcp_slim/fastmcp/cli/generate.py:567
↓ 1 callersFunction_tools_to_json
Serialize a list of tools to JSON-safe dicts.
fastmcp_slim/fastmcp/cli/client.py:473
↓ 1 callersMethod_translate_scopes_from_idp
Strip ``{identifier_uri}/`` from custom API scopes Azure echoes back. Inverse of :meth:`_prefix_scopes_for_azure`. Azure echoes the prefixed
fastmcp_slim/fastmcp/server/auth/providers/azure.py:446
↓ 1 callersFunction_unclamp_logger
Remove all clamped log filters from the logger.
fastmcp_slim/fastmcp/utilities/logging.py:240
↓ 1 callersMethod_unflatten_arguments
Maps flat arguments back to their OpenAPI locations using the parameter map. Args: route: HTTPRoute with parameter_map c
fastmcp_slim/fastmcp/utilities/openapi/director.py:156
↓ 1 callersFunction_unwrap_result
Extract the logical return value from a ToolResult.
tests/experimental/transforms/test_code_mode_discovery.py:17
↓ 1 callersFunction_unwrap_tool_result
Convert a ToolResult for use in the sandbox. - Output schema present → structured_content dict (matches the schema) - Otherwise → concatenate
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:54
↓ 1 callersMethod_uses_alternate_verification
Whether this provider verifies a different token than the access token. When True, ``load_access_token`` patches the validated result with
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1664
↓ 1 callersFunction_validate
()
fastmcp_slim/fastmcp/cli/cimd.py:170
↓ 1 callersMethod_verify_consent_binding_cookie
Verify the consent binding for a specific transaction.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:253
↓ 1 callersFunction_wait_for_server
Poll until the server is accepting connections.
fastmcp_slim/fastmcp/cli/apps_dev.py:1697
↓ 1 callersFunction_walk_provider
(provider: Provider)
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:163
↓ 1 callersMethod_wrap_list_handler
Wrap a list handler to pass the request and return ServerResult.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:87
↓ 1 callersMethodadd
(a: int, b: int)
tests/client/auth/test_oauth_static_client.py:246
↓ 1 callersMethodadd
(a: int, b: int)
tests/server/middleware/test_middleware_nested.py:180
↓ 1 callersFunctionaddBanner
()
docs/v2-banner.js:5
↓ 1 callersFunctionadd_memory
(content: str, deps: Deps)
examples/memory.py:173
↓ 1 callersFunctionanalyze_data
Filter and analyze sales data. Returns rows, summary, and chart data.
examples/apps/explorer/explorer_server.py:337
↓ 1 callersMethodasend
(self, value)
tests/client/auth/test_oauth_client.py:354
↓ 1 callersFunctionattach_metadata
(fn: F, tool_name: str | None)
fastmcp_slim/fastmcp/tools/function_tool.py:504
↓ 1 callersFunctionattach_metadata
(fn: F)
fastmcp_slim/fastmcp/resources/function_resource.py:323
↓ 1 callersFunctionattach_metadata
(fn: F, prompt_name: str | None)
fastmcp_slim/fastmcp/prompts/function_prompt.py:477
↓ 1 callersFunctionblob_resource
(uri: str, data: bytes)
tests/utilities/test_skills.py:44
↓ 1 callersMethodbody
()
tests/server/providers/proxy/test_stateful_proxy_client.py:234
↓ 1 callersFunctionbounded_execute
(tool_use: ToolUseContent)
fastmcp_slim/fastmcp/server/sampling/run.py:371
↓ 1 callersFunctionbuildPageViewProperties
()
docs/fastmcp-analytics.js:80
↓ 1 callersFunctionbuild_parser
()
fastmcp_remote/fastmcp_remote/cli.py:98
↓ 1 callersFunctionbuild_token_storage
(storage_dir: Path)
fastmcp_remote/fastmcp_remote/cli.py:196
↓ 1 callersMethodcall
Add two numbers.
tests/tools/tool/test_tool.py:426
↓ 1 callersFunctioncall_sampling_handler
Make LLM call using the fallback handler. Note: This function expects the caller (sample_step) to have validated that sampling_handler is set
fastmcp_slim/fastmcp/server/sampling/run.py:200
↓ 1 callersMethodcancel_task
Cancel a task, transitioning it to cancelled state. Sends a 'tasks/cancel' MCP protocol request. Task will halt execution and transit
fastmcp_slim/fastmcp/client/mixins/task_management.py:135
↓ 1 callersMethodclear
(self)
fastmcp_slim/fastmcp/cli/apps_dev.py:147
↓ 1 callersMethodclient_supports_extension
Check whether the connected client supports a given MCP extension. Inspects the ``extensions`` extra field on ``ClientCapabilities``
fastmcp_slim/fastmcp/server/context.py:587
↓ 1 callersMethodclose
(self)
fastmcp_slim/fastmcp/client/transports/config.py:219
↓ 1 callersMethodclose_issue
Close an issue with a comment. Closes first, then comments — so a failed comment never leaves a misleading "closing" notice on a stil
scripts/auto_close_needs_mre.py:222
↓ 1 callersMethodclose_issue
Close an issue with a comment and add duplicate label.
scripts/auto_close_duplicates.py:184
↓ 1 callersMethodclose_obo_credentials
Close all cached OBO credentials.
fastmcp_slim/fastmcp/server/auth/providers/azure.py:677
↓ 1 callersMethodcomplete
Send a completion request to the server. Args: ref (mcp.types.ResourceTemplateReference | mcp.types.PromptReference): The referen
fastmcp_slim/fastmcp/client/client.py:879
↓ 1 callersMethodcomplete_mcp
Send a completion request and return the complete MCP protocol result. Args: ref (mcp.types.ResourceTemplateReference | mcp.types
fastmcp_slim/fastmcp/client/client.py:848
↓ 1 callersFunctioncompute_file_hash
Compute SHA256 hash of a file.
fastmcp_slim/fastmcp/server/providers/skills/_common.py:77
↓ 1 callersMethodconnect_session
( self, **session_kwargs: Unpack[SessionKwargs] )
fastmcp_slim/fastmcp/client/transports/sse.py:117
↓ 1 callersMethodconnect_session
( self, **session_kwargs: Any )
tests/client/client/test_client.py:431
↓ 1 callersMethodconnect_session
(self, **session_kwargs: Any)
tests/client/transports/test_transports.py:22
↓ 1 callersMethodconvert_result
Convert a raw result to ResourceResult. This is used in two contexts: 1. In _read() to convert user function return values to Resourc
fastmcp_slim/fastmcp/resources/base.py:311
↓ 1 callersFunctioncosine_similarity
(a: list[float], b: list[float])
examples/memory.py:48
↓ 1 callersMethodcreate_app
Create the mock OAuth server application.
tests/server/auth/oauth_proxy/conftest.py:63
↓ 1 callersFunctioncreate_client_server
Create a FastMCP server from a client URL. Args: url: The URL to connect to Returns: A FastMCP server instance
fastmcp_slim/fastmcp/cli/run.py:90
↓ 1 callersFunctioncreate_closure
()
tests/tools/test_tool_future_annotations.py:175
↓ 1 callersFunctioncreate_detail_box
Create a detail box with key-value pairs. Args: rows: List of (label, value) tuples Returns: HTML for detail box
fastmcp_slim/fastmcp/utilities/ui.py:568
↓ 1 callersFunctioncreate_final_response_tool
Create a synthetic 'final_response' tool for structured output. This tool is used to capture structured responses from the LLM. The tool's sc
fastmcp_slim/fastmcp/server/sampling/run.py:448
↓ 1 callersFunctioncreate_github_server
Create FastMCP server with GitHub OAuth protection.
tests/integration_tests/auth/test_github_provider_integration.py:43
↓ 1 callersFunctioncreate_github_server_with_mock_callback
Create FastMCP server with GitHub OAuth that mocks the callback for testing.
tests/integration_tests/auth/test_github_provider_integration.py:72
↓ 1 callersFunctioncreate_mcp_server
( public_key: str, auth_kwargs: dict[str, Any] | None = None, )
tests/server/auth/test_jwt_provider.py:117
↓ 1 callersFunctioncreate_prompt
( fn: Callable[..., Any], prompt_name: str | None )
fastmcp_slim/fastmcp/prompts/function_prompt.py:460
↓ 1 callersFunctioncreate_server
()
examples/get_file.py:13
↓ 1 callersFunctioncreate_test_server
Create a FastMCP server with a slow tool.
tests/integration_tests/test_timeout_fix.py:13
↓ 1 callersFunctioncreate_tool
(fn: Callable[..., Any], tool_name: str | None)
fastmcp_slim/fastmcp/tools/function_tool.py:483
↓ 1 callersFunctioncreate_unregistered_client_html
Create styled HTML error page for unregistered client attempts. Args: client_id: The unregistered client ID that was provided reg
fastmcp_slim/fastmcp/server/auth/handlers/authorize.py:41
↓ 1 callersFunctioncreate_visibility_transforms
Convert rule dicts to Visibility transforms.
fastmcp_slim/fastmcp/server/transforms/visibility.py:332
↓ 1 callersFunctiondefault_progress_handler
Default handler for progress notifications. Logs progress updates at debug level, properly handling missing total or message values. Args:
fastmcp_slim/fastmcp/client/progress.py:12
↓ 1 callersFunctiondefault_serializer
(data: Any)
fastmcp_slim/fastmcp/tools/base.py:65
↓ 1 callersFunctiondefault_storage_dir
(resource: str | None = None)
fastmcp_remote/fastmcp_remote/cli.py:87
↓ 1 callersFunctiondelete_memory
(memory_id: int, deps: Deps)
examples/memory.py:168
↓ 1 callersFunctiondetermine_handler_mode
Determine whether to use fallback handler or client for sampling. Args: context: The MCP context. needs_tools: Whether the sampli
fastmcp_slim/fastmcp/server/sampling/run.py:141
↓ 1 callersMethoddisable
Removed in 3.0. Use server.disable(keys=[...]) instead.
fastmcp_slim/fastmcp/utilities/components.py:216
↓ 1 callersMethoddispatch
(self, message: Message)
fastmcp_slim/fastmcp/client/messages.py:30
↓ 1 callersFunctiondisplay_memory_tree
(deps: Deps)
examples/memory.py:256
↓ 1 callersFunctionelicit_for_task
Send an elicitation request from a background task. This function handles the complexity of eliciting user input when running in a Docket wor
fastmcp_slim/fastmcp/server/tasks/elicitation.py:47
↓ 1 callersFunctionelicitation_handler
(message, response_type, params, ctx)
tests/test_mcp_config.py:888
↓ 1 callersMethodenable
Removed in 3.0. Use server.enable(keys=[...]) instead.
fastmcp_slim/fastmcp/utilities/components.py:209
↓ 1 callersFunctionensure_subscriber_running
Start notification subscriber if not already running (idempotent). Subscriber is created on first task submission and cleaned up on disconnect.
fastmcp_slim/fastmcp/server/tasks/notifications.py:246
↓ 1 callersFunctionenter_and_never_reach_body
()
tests/client/client/test_client.py:511
↓ 1 callersMethoderror_callback
(error, context)
tests/server/middleware/test_error_handling.py:526
↓ 1 callersFunctionexample_usage
()
examples/custom_tool_serializer_decorator.py:57
↓ 1 callersFunctionextract_tool_calls
Extract tool calls from a response.
fastmcp_slim/fastmcp/server/sampling/run.py:436
↓ 1 callersFunctionfastmcp_server
Create a FastMCP server with OAuth authentication.
tests/client/auth/test_oauth_client.py:22
↓ 1 callersMethodfind_available_port
(host: str = "127.0.0.1")
tests/client/auth/test_oauth_client.py:217
↓ 1 callersFunctionfind_duplicate_comment
Find a bot comment marking the issue as duplicate.
scripts/auto_close_duplicates.py:219
↓ 1 callersFunctionfind_kwarg_by_type
Find the name of the kwarg that is of type kwarg_type. Includes union types that contain the kwarg_type, as well as Annotated types.
fastmcp_slim/fastmcp/utilities/types.py:155
↓ 1 callersFunctionfind_label_application_date
Find when a specific label was applied to an issue.
scripts/auto_close_needs_mre.py:261
↓ 1 callersFunctionfind_similar_memories
(embedding: list[float], deps: Deps)
examples/memory.py:189
↓ 1 callersFunctionfireCallbacks
()
docs/fastmcp-analytics.js:55
↓ 1 callersMethodfn
()
tests/resources/test_resources.py:281
↓ 1 callersMethodfor_method
(self, method: str)
tests/server/tasks/test_notifications.py:33
↓ 1 callersFunctionformat_json_for_description
Formats Python data as a JSON string block for Markdown.
fastmcp_slim/fastmcp/utilities/openapi/formatters.py:183
↓ 1 callersMethodfrom_content
(cls, content: str, deps: Deps)
examples/memory.py:98
↓ 1 callersMethodfrom_function
Create a FunctionTool from a function. Args: fn: The function to wrap metadata: ToolMeta object with all configuratio
fastmcp_slim/fastmcp/tools/function_tool.py:112
← previousnext →1,201–1,300 of 10,312, ranked by callers