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
Method
calculate_sum
No return annotation.
tests/tools/tool/test_content.py:413
Function
calculate_value
(input: int)
tests/deprecated/test_import_server.py:254
Function
call_api
( endpoint: str, client: dict[str, str] = Depends(get_api_client) )
tests/server/test_dependencies.py:114
Function
call_endpoint
( endpoint: str, ctx: Context, version: str = Depends(get_version) )
tests/server/test_dependencies.py:354
Method
call_original_handler
( ctx: MiddlewareContext, )
fastmcp_slim/fastmcp/server/low_level.py:111
Method
call_tool
(tool_name: str, params: dict[str, Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:608
Method
callback
(event: EventMessage)
tests/server/test_event_store.py:79
Method
callback
(event: EventMessage)
tests/server/test_event_store.py:234
Function
callback1
(status: GetTaskResult)
tests/client/tasks/test_client_task_notifications.py:132
Method
callback1
(event: EventMessage)
tests/server/test_event_store.py:165
Function
callback2
(status: GetTaskResult)
tests/client/tasks/test_client_task_notifications.py:135
Method
callback2
(event: EventMessage)
tests/server/test_event_store.py:175
Function
callback_handler
Handle OAuth callback requests with proper HTML responses.
fastmcp_slim/fastmcp/client/oauth_callback.py:140
Method
callback_handler
Parse stored response and return (auth_code, state).
fastmcp_slim/fastmcp/utilities/tests.py:244
Method
cancellable
(ctx: Context)
tests/server/tasks/test_task_elicitation_relay.py:78
Method
caplog_for_mcp_validation
Capture logs from the MCP SDK's tool name validation logger.
tests/tools/tool/test_tool.py:441
Function
capture_context
(ctx: Context)
tests/server/tasks/test_concurrent_dependencies.py:136
Function
capture_docket_id
(call_num: int, docket: Docket = CurrentDocket())
tests/server/test_server_docket.py:178
Function
capture_progress
(progress: Progress = Progress())
tests/server/tasks/test_concurrent_dependencies.py:158
Method
capturing_respond
( response: mcp.types.ServerResult, )
fastmcp_slim/fastmcp/server/low_level.py:102
Function
charge
Charge a payment (v1.0 - basic).
examples/versioning/client_version_selection.py:21
Method
check
(ctx: AuthContext)
tests/server/auth/test_authorization.py:155
Method
check_1
(ctx: AuthContext)
tests/server/auth/test_authorization.py:184
Method
check_2
(ctx: AuthContext)
tests/server/auth/test_authorization.py:188
Method
check_3
(ctx: AuthContext)
tests/server/auth/test_authorization.py:192
Function
check_app_status
Check the status of the main application.
examples/mount_example.py:60
Function
check_both
(docket: Docket = CurrentDocket())
tests/server/test_server_docket.py:216
Method
check_claims
(ctx: AuthContext)
tests/server/auth/test_authorization.py:599
Function
check_claude_code_available
Check if Claude Code CLI is available.
fastmcp_slim/fastmcp/cli/install/claude_code.py:68
Function
check_docket
(docket: Docket = CurrentDocket())
tests/server/test_server_docket.py:44
Function
check_excluded_headers
Check that problematic headers are excluded from get_http_headers().
tests/server/http/test_http_dependencies.py:143
Function
check_gemini_cli_available
Check if Gemini CLI is available.
fastmcp_slim/fastmcp/cli/install/gemini_cli.py:64
Function
check_headers
( headers: dict[str, str] = CurrentHeaders(), request: Request = CurrentRequest(), )
tests/server/http/test_http_dependencies.py:195
Function
check_if_auth_required
Check if the MCP endpoint requires authentication by making a test request. Returns: True if auth appears to be required, False othe
fastmcp_slim/fastmcp/client/auth/oauth.py:53
Function
check_meta
A tool that returns the meta from the request context.
tests/client/client/test_client.py:89
Method
check_origin_request_id
(ctx: Context, docket=CurrentDocket())
tests/server/tasks/test_context_background_task.py:259
Function
check_permission
( action: str, admin: str = Depends(get_admin_status) )
tests/server/test_dependencies.py:586
Function
check_request_header
()
tests/server/http/test_http_dependencies.py:177
Method
check_result
(context: Context)
tests/client/test_sampling_result_types.py:246
Method
check_rules
(ctx: Context)
tests/server/test_session_visibility.py:146
Method
check_token
(ctx: Context)
tests/server/tasks/test_context_background_task.py:422
Function
check_worker
( worker: Worker = CurrentWorker(), docket: Docket = CurrentDocket(), )
tests/server/test_server_docket.py:63
Method
child_config
()
tests/server/telemetry/test_provider_tracing.py:55
Method
child_config
()
tests/server/telemetry/test_delegate_method.py:41
Function
child_item_resource
A child resource template that can execute as a task.
tests/server/tasks/test_task_mount.py:76
Method
child_lifespan
(_mcp: FastMCP)
tests/server/mount/test_advanced.py:484
Function
child_prompt
A child prompt that can execute as a task.
tests/server/tasks/test_task_mount.py:66
Method
child_prompt
()
tests/server/telemetry/test_provider_tracing.py:81
Method
child_prompt
()
tests/server/telemetry/test_delegate_method.py:66
Function
child_resource
A child resource that can be read as a task.
tests/server/tasks/test_task_mount.py:71
Function
child_server
Create a child server with task-enabled components.
tests/server/tasks/test_task_mount.py:45
Method
child_tool
()
tests/server/telemetry/test_provider_tracing.py:20
Method
child_tool
()
tests/server/telemetry/test_delegate_method.py:19
Method
child_with_modes
Create a child server with tools in all three TaskConfig modes.
tests/server/tasks/test_task_mount.py:600
Method
choose
Present the user with a set of options to choose from. Call this tool when you need the user to make a decision between discr
fastmcp_slim/fastmcp/apps/choice.py:84
Method
cimd_doc_with_inline_jwks
Create CIMD document with inline JWKS.
tests/server/auth/test_cimd_validators.py:88
Method
cimd_doc_with_jwks_uri
Create CIMD document with jwks_uri.
tests/server/auth/test_cimd_validators.py:78
Function
claude_code_command
Install an MCP server in Claude Code. Args: server_spec: Python file to install, optionally with :object suffix
fastmcp_slim/fastmcp/cli/install/claude_code.py:155
Function
claude_desktop_command
Install an MCP server in Claude Desktop. Args: server_spec: Python file to install, optionally with :object suffix
fastmcp_slim/fastmcp/cli/install/claude_desktop.py:139
Function
clean_schema_for_display
Clean up a schema dictionary for display by removing internal/complex fields.
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:13
Function
clear_progress_messages
()
tests/client/test_progress.py:9
Method
clear_rules
(ctx: Context)
tests/server/test_session_visibility.py:247
Function
client
Client fixture for testing. Uses async context manager and yields client synchronously. No @pytest.mark.asyncio needed - asyncio_mode =
examples/testing_demo/tests/test_server.py:14
Method
client
(self)
tests/tools/tool/test_results.py:12
Method
client
Create a test client for the FastMCP server.
tests/contrib/test_component_manager.py:46
Method
client_id
Get the client ID if available.
fastmcp_slim/fastmcp/server/context.py:615
Method
client_supports_extension
Check if the connected client supports a given MCP extension. Inspects the ``extensions`` extra field on ``ClientCapabilities`` sent
fastmcp_slim/fastmcp/server/low_level.py:56
Method
client_test_tool
(x: int)
tests/server/tasks/test_task_meta_parameter.py:193
Function
client_unauthorized
(streamable_http_server: str)
tests/client/auth/test_oauth_client.py:57
Function
client_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/client/auth/test_oauth_client.py:62
Function
client_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/server/auth/providers/test_descope.py:215
Function
client_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/server/auth/providers/test_supabase.py:185
Function
client_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/server/auth/providers/test_scalekit.py:146
Function
client_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/server/auth/providers/test_workos.py:224
Method
client_with_path
(self, mcp_with_path)
tests/contrib/test_component_manager.py:428
Method
close
Close the transport.
fastmcp_slim/fastmcp/client/transports/base.py:73
Method
close
(self)
fastmcp_slim/fastmcp/client/transports/http.py:215
Method
close
(self)
fastmcp_slim/fastmcp/client/transports/stdio.py:161
Method
close
(self)
tests/client/client/test_client.py:465
Method
close_sse_stream
Close the current response stream to trigger client reconnection. When using StreamableHTTP transport with an EventStore configured, this
fastmcp_slim/fastmcp/server/context.py:799
Function
closure_tool
(value: str | None)
tests/tools/test_tool_future_annotations.py:179
Function
code_review
Generate a code review prompt. Args: code: The code to review. language: Programming language (default: python).
examples/filesystem-provider/components/prompts/assistant.py:7
Method
collect_input
Collect structured input from the user. Args: prompt: Tell the user what you need and why. title: Optiona
fastmcp_slim/fastmcp/apps/form.py:170
Function
collection_server
Server with tools returning various collection types.
tests/server/tasks/test_task_return_types.py:303
Method
collision_route
Create a route with parameter name collisions.
tests/utilities/openapi/test_schemas.py:39
Method
collision_route
Create a route with parameter name collisions.
tests/utilities/openapi/test_director.py:108
Function
collision_spec
OpenAPI spec with parameter name collisions.
tests/utilities/openapi/conftest.py:91
Method
collision_spec
OpenAPI spec with parameter name collisions.
tests/server/providers/openapi/test_parameter_collisions.py:27
Method
collision_spec
OpenAPI spec with parameter collisions.
tests/server/providers/openapi/test_end_to_end_compatibility.py:58
Function
combined_lifespan
(app: FastAPI)
tests/server/test_fastapi_testclient_compat.py:23
Function
complex_arguments_fn
( an_int: int, must_be_none: None, must_be_none_dumb_annotation: Annotated[None, "blah"], list
tests/utilities/test_typeadapter.py:53
Function
complex_operation
A complex operation with structured data.
tests/server/middleware/test_logging.py:414
Method
complex_operation
A complex operation with structured data.
tests/server/middleware/test_logging.py:452
Method
complex_route
Create a complex route with multiple parameter types.
tests/utilities/openapi/test_schemas.py:71
Method
complex_route
Create a complex HTTPRoute with multiple parameter types.
tests/utilities/openapi/test_director.py:45
Function
complex_spec
Complex OpenAPI spec with multiple parameter types.
tests/utilities/openapi/conftest.py:170
Method
complex_tool
( used_param: UsedType, unused_param: UnusedType | None = None )
tests/tools/tool_transform/test_schemas.py:408
Method
complex_tool
()
tests/server/providers/local_provider_tools/test_output_schema.py:205
Function
complex_types
Tool with complex type annotations.
tests/tools/test_tool_future_annotations.py:23
Method
comprehensive_openapi_spec
Comprehensive OpenAPI spec covering all major features.
tests/server/providers/openapi/test_comprehensive.py:31
← previous
next →
2,301–2,400 of 10,312, ranked by callers