MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,524 in github.com/PrefectHQ/fastmcp

Functioncheck_excluded_headers
Check that problematic headers are excluded from get_http_headers().
tests/server/http/test_http_dependencies.py:143
Functioncheck_gemini_cli_available
Check if Gemini CLI is available.
fastmcp_slim/fastmcp/cli/install/gemini_cli.py:64
Functioncheck_headers
( headers: dict[str, str] = CurrentHeaders(), request: Request = CurrentRequest(), )
tests/server/http/test_http_dependencies.py:195
Functioncheck_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
Functioncheck_meta
A tool that returns the meta from the request context.
tests/client/client/test_client.py:89
Methodcheck_origin_request_id
(ctx: Context, docket=CurrentDocket())
tests/server/tasks/test_context_background_task.py:259
Functioncheck_permission
( action: str, admin: str = Depends(get_admin_status) )
tests/server/test_dependencies.py:587
Functioncheck_request_header
()
tests/server/http/test_http_dependencies.py:177
Methodcheck_result
(context: Context)
tests/client/test_sampling_result_types.py:246
Methodcheck_rules
(ctx: Context)
tests/server/test_session_visibility.py:146
Methodcheck_token
(ctx: Context)
tests/server/tasks/test_context_background_task.py:422
Functioncheck_worker
( worker: Worker = CurrentWorker(), docket: Docket = CurrentDocket(), )
tests/server/test_server_docket.py:63
Methodchild_config
()
tests/server/telemetry/test_provider_tracing.py:55
Methodchild_config
()
tests/server/telemetry/test_delegate_method.py:41
Functionchild_item_resource
A child resource template that can execute as a task.
tests/server/tasks/test_task_mount.py:76
Methodchild_lifespan
(_mcp: FastMCP)
tests/server/mount/test_advanced.py:484
Functionchild_prompt
A child prompt that can execute as a task.
tests/server/tasks/test_task_mount.py:66
Methodchild_prompt
()
tests/server/telemetry/test_provider_tracing.py:81
Methodchild_prompt
()
tests/server/telemetry/test_delegate_method.py:66
Functionchild_resource
A child resource that can be read as a task.
tests/server/tasks/test_task_mount.py:71
Functionchild_server
Create a child server with task-enabled components.
tests/server/tasks/test_task_mount.py:45
Methodchild_tool
()
tests/server/telemetry/test_provider_tracing.py:20
Methodchild_tool
()
tests/server/telemetry/test_delegate_method.py:19
Methodchild_with_modes
Create a child server with tools in all three TaskConfig modes.
tests/server/tasks/test_task_mount.py:600
Methodchoose
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
Methodcimd_doc_with_inline_jwks
Create CIMD document with inline JWKS.
tests/server/auth/test_cimd_validators.py:88
Methodcimd_doc_with_jwks_uri
Create CIMD document with jwks_uri.
tests/server/auth/test_cimd_validators.py:78
Functionclaude_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
Functionclaude_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
Functionclean_schema_for_display
Clean up a schema dictionary for display by removing internal/complex fields.
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:14
Functionclear_progress_messages
()
tests/client/test_progress.py:9
Methodclear_rules
(ctx: Context)
tests/server/test_session_visibility.py:247
Functionclient
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
Methodclient
(self)
tests/tools/tool/test_results.py:15
Methodclient
Create a test client for the FastMCP server.
tests/contrib/test_component_manager.py:46
Methodclient_id
Get the client ID if available.
fastmcp_slim/fastmcp/server/context.py:615
Methodclient_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
Methodclient_test_tool
(x: int)
tests/server/tasks/test_task_meta_parameter.py:193
Functionclient_unauthorized
(streamable_http_server: str)
tests/client/auth/test_oauth_client.py:57
Functionclient_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/client/auth/test_oauth_client.py:62
Functionclient_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/server/auth/providers/test_descope.py:215
Functionclient_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/server/auth/providers/test_supabase.py:185
Functionclient_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/server/auth/providers/test_scalekit.py:146
Functionclient_with_headless_oauth
Client with headless OAuth that bypasses browser interaction.
tests/server/auth/providers/test_workos.py:224
Methodclient_with_path
(self, mcp_with_path)
tests/contrib/test_component_manager.py:428
Methodclose
Close the transport.
fastmcp_slim/fastmcp/client/transports/base.py:73
Methodclose
(self)
fastmcp_slim/fastmcp/client/transports/http.py:215
Methodclose
(self)
fastmcp_slim/fastmcp/client/transports/stdio.py:161
Methodclose
(self)
tests/client/client/test_client.py:465
Methodclose_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
Functionclosure_tool
(value: str | None)
tests/tools/test_tool_future_annotations.py:179
Functioncode_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
Methodcoerce_task_arguments
Validate and coerce task arguments before any task state is created. Called by ``submit_to_docket`` up front, so invalid inputs raise before
fastmcp_slim/fastmcp/utilities/components.py:235
Methodcollect_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
Functioncollection_server
Server with tools returning various collection types.
tests/server/tasks/test_task_return_types.py:303
Methodcollision_route
Create a route with parameter name collisions.
tests/utilities/openapi/test_schemas.py:39
Methodcollision_route
Create a route with parameter name collisions.
tests/utilities/openapi/test_director.py:108
Functioncollision_spec
OpenAPI spec with parameter name collisions.
tests/utilities/openapi/conftest.py:91
Methodcollision_spec
OpenAPI spec with parameter name collisions.
tests/server/providers/openapi/test_parameter_collisions.py:27
Methodcollision_spec
OpenAPI spec with parameter collisions.
tests/server/providers/openapi/test_end_to_end_compatibility.py:58
Functioncombined_lifespan
(app: FastAPI)
tests/server/test_fastapi_testclient_compat.py:23
Functioncomplex_arguments_fn
( an_int: int, must_be_none: None, must_be_none_dumb_annotation: Annotated[None, "blah"], list
tests/utilities/test_typeadapter.py:53
Functioncomplex_operation
A complex operation with structured data.
tests/server/middleware/test_logging.py:414
Methodcomplex_operation
A complex operation with structured data.
tests/server/middleware/test_logging.py:452
Methodcomplex_route
Create a complex route with multiple parameter types.
tests/utilities/openapi/test_schemas.py:71
Methodcomplex_route
Create a complex HTTPRoute with multiple parameter types.
tests/utilities/openapi/test_director.py:45
Functioncomplex_spec
Complex OpenAPI spec with multiple parameter types.
tests/utilities/openapi/conftest.py:170
Methodcomplex_tool
( used_param: UsedType, unused_param: UnusedType | None = None )
tests/tools/tool_transform/test_schemas.py:408
Methodcomplex_tool
()
tests/server/providers/local_provider_tools/test_output_schema.py:205
Functioncomplex_types
Tool with complex type annotations.
tests/tools/test_tool_future_annotations.py:23
Methodcomprehensive_openapi_spec
Comprehensive OpenAPI spec covering all major features.
tests/server/providers/openapi/test_comprehensive.py:31
Methodcomprehensive_spec
Comprehensive OpenAPI spec for performance testing.
tests/server/providers/openapi/test_performance_comparison.py:29
Methodcompute
Compute something.
tests/utilities/test_inspect_icons.py:501
Methodcompute
(x: int)
tests/server/providers/test_fastmcp_provider.py:312
Methodcompute
(x: int)
tests/server/tasks/test_task_mount.py:758
Methodcompute
(n: int)
tests/server/tasks/test_task_mount.py:992
Methodconcurrent_prompt
()
tests/prompts/test_prompt.py:837
Methodconcurrent_resource
()
tests/resources/test_function_resources.py:340
Methodconcurrent_tool
Tool that proves concurrency via barrier synchronization.
tests/tools/tool/test_callable.py:57
Methodconfig
()
tests/server/versioning/test_mounting.py:125
Methodconfig
()
tests/server/versioning/test_calls.py:215
Methodconfig_resource
(config: str = Shared(get_config))
tests/server/test_dependencies.py:1160
Methodconfig_resource
Get configuration.
tests/deprecated/test_tool_injection_middleware.py:156
Methodconfig_unversioned
()
tests/server/versioning/test_calls.py:30
Functionconfig_v1
()
examples/versioning/versioned_components.py:41
Methodconfig_v1
()
tests/server/versioning/test_mounting.py:259
Methodconfig_v1
()
tests/server/versioning/test_versioning.py:326
Methodconfig_v1
()
tests/server/versioning/test_calls.py:24
Methodconfig_v1
()
tests/server/versioning/test_calls.py:123
Methodconfig_v1
()
tests/server/versioning/test_filtering.py:232
Functionconfig_v2
()
examples/versioning/versioned_components.py:46
Methodconfig_v2
()
tests/server/versioning/test_mounting.py:263
Methodconfig_v2
()
tests/server/versioning/test_versioning.py:330
Methodconfig_v2
()
tests/server/versioning/test_calls.py:127
Methodconfig_v2
()
tests/server/versioning/test_filtering.py:236
Functionconfirm_purchase
(context: Context)
tests/client/test_elicitation.py:126
Functionconformance_server
Start the conformance test server in a background thread.
tests/conformance/test_conformance.py:37
Methodconnect_session
( self, **session_kwargs: Unpack[SessionKwargs] )
fastmcp_slim/fastmcp/client/transports/memory.py:40
Methodconnect_session
Establishes a connection and yields an active ClientSession. The ClientSession is *not* expected to be initialized in this context m
fastmcp_slim/fastmcp/client/transports/base.py:47
Methodconnect_session
( self, **session_kwargs: Unpack[SessionKwargs] )
fastmcp_slim/fastmcp/client/transports/http.py:150
← previousnext →2,401–2,500 of 10,524, ranked by callers