MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / endpoints

Endpoints103 in github.com/PrefectHQ/fastmcp

Routeadd
tool( name="add-numbers", # Custom name (default would be "add") description="Add two numbers togethe
examples/filesystem-provider/components/tools/calculator.py:None
Routecompute
mcp.tool( output_schema={ "type": "object", "properties": {
tests/utilities/test_inspect_icons.py:None
Routecreate_user
app.post("/users", tags=["users", "admin"])
examples/tags_example.py:None
Routecustom_route
server.custom_route("/custom-route", methods=["GET"])
tests/server/http/test_custom_routes.py:None
Routeexplicit_tool
mcp.tool( output_schema={ "type": "object", "properties": {
tests/server/providers/local_provider_tools/test_output_schema.py:None
Routef
mcp.tool(output_schema=None)
tests/server/providers/local_provider_tools/test_output_schema.py:None
Routeget_admin_stats
app.get("/admin/stats", tags=["admin", "internal"])
examples/tags_example.py:None
Routeget_config
resource( "config://app", name="app-config", title="Application Config",
tests/resources/test_standalone_decorator.py:None
Routeget_header_by_name
app.get("/headers/{header_name}")
tests/client/test_openapi.py:None
Routeget_headers
app.get("/headers")
tests/client/test_openapi.py:None
Routeget_metrics
app.get("/metrics")
examples/tags_example.py:None
Routeget_users
app.get("/users", tags=["users", "public"])
examples/tags_example.py:None
Routeget_widget
mcp.resource("resource://widget")
tests/server/providers/test_local_provider_resources.py:None
Routehealth
child.custom_route("/health", methods=["GET"])
tests/server/mount/test_advanced.py:None
Routehealth_check
app.get("/health", tags=["public"])
examples/tags_example.py:None
Routeleaf_health
leaf.custom_route("/leaf-health", methods=["GET"])
tests/server/mount/test_advanced.py:None
Routemiddle_health
middle.custom_route("/middle-health", methods=["GET"])
tests/server/mount/test_advanced.py:None
Routemixed_audio_list_fn
mcp.tool(output_schema=None)
tests/conftest.py:None
Routemixed_file_list_fn
mcp.tool(output_schema=None)
tests/conftest.py:None
Routemixed_list_fn
mcp.tool(output_schema=None)
tests/conftest.py:None
Routemy_function
mcp.tool(output_schema={"type": "integer"})
tests/server/providers/local_provider_tools/test_decorator.py:None
Routeoverwritten_get_user
proxy_server.resource(uri="data://user/{user_id}", name="overwritten_get_user")
tests/server/providers/proxy/test_proxy_server.py:None
Routepost_headers
app.post("/headers")
tests/client/test_openapi.py:None
Routereadiness_check
child.custom_route("/readyz", methods=["GET"])
tests/server/mount/test_advanced.py:None
Routeroute1
server.custom_route("/route1", methods=["GET"])
tests/server/mount/test_advanced.py:None
Routeroute2
server.custom_route("/route2", methods=["POST"])
tests/server/mount/test_advanced.py:None
Routesimple_tool
mcp.tool(output_schema=None)
tests/server/providers/local_provider_tools/test_output_schema.py:None
Routetest_basic
patch("fastmcp.cli.install.goose.install_goose")
tests/cli/test_goose.py:None
Routetest_call_prompt
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_call_prompt_json
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_call_prompt_not_found
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_call_resource_by_uri
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_call_resource_json
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_call_tool
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_call_tool_json
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_call_tool_missing_args
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_call_tool_not_found
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_common_xss_vectors
pytest.mark.parametrize( "xss_vector", [ "<img src=x onerror=alert(1)>", "<script>aler
tests/client/test_oauth_callback_xss.py:None
Routetest_contains_tools
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_cursor_command_basic
patch("fastmcp.cli.install.cursor.install_cursor")
tests/cli/test_cursor.py:None
Routetest_cursor_command_failure
patch("fastmcp.cli.install.cursor.install_cursor")
tests/cli/test_cursor.py:None
Routetest_default_output_path
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_dict_types_are_generated_correctly
pytest.mark.parametrize( "input_type, expected_type", [ # Plain dict becomes dict[
tests/utilities/json_schema_type/test_containers.py:None
Routetest_error_if_exists
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_error_if_skill_exists
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_failure
patch("fastmcp.cli.install.goose.open_deeplink")
tests/cli/test_goose.py:None
Routetest_failure_exits
patch("fastmcp.cli.install.goose.install_goose")
tests/cli/test_goose.py:None
Routetest_fallback_message_on_failure
patch("fastmcp.cli.install.goose.open_deeplink")
tests/cli/test_goose.py:None
Routetest_file_is_executable
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_force_overwrites
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_force_overwrites_skill
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_get_npx_command_unix
patch("subprocess.run")
tests/cli/test_cli.py:None
Routetest_get_npx_command_windows_cmd
patch("subprocess.run")
tests/cli/test_cli.py:None
Routetest_get_npx_command_windows_cmd_missing
patch("subprocess.run")
tests/cli/test_cli.py:None
Routetest_get_npx_command_windows_exe
patch("subprocess.run")
tests/cli/test_cli.py:None
Routetest_get_npx_command_windows_fallback
patch("subprocess.run")
tests/cli/test_cli.py:None
Routetest_get_npx_command_windows_not_found
patch("subprocess.run")
tests/cli/test_cli.py:None
Routetest_install_cursor_failure
patch("fastmcp.cli.install.cursor.open_deeplink")
tests/cli/test_cursor.py:None
Routetest_install_cursor_success
patch("fastmcp.cli.install.cursor.open_deeplink")
tests/cli/test_cursor.py:None
Routetest_install_cursor_with_editable
patch("fastmcp.cli.install.cursor.open_deeplink")
tests/cli/test_cursor.py:None
Routetest_install_cursor_with_packages
patch("fastmcp.cli.install.cursor.open_deeplink")
tests/cli/test_cursor.py:None
Routetest_list_json
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_list_of_dict_types_roundtrip
pytest.mark.parametrize( "input_type, expected_type", [ # list[dict] roundtrips co
tests/utilities/json_schema_type/test_containers.py:None
Routetest_list_prompts
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_list_resources
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_list_tools
pytest.mark.usefixtures("_patch_client")
tests/cli/test_client_commands.py:None
Routetest_no_skill_flag
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_open_deeplink_command_not_found
patch("subprocess.run")
tests/cli/test_cursor.py:None
Routetest_open_deeplink_failure
patch("subprocess.run")
tests/cli/test_cursor.py:None
Routetest_open_deeplink_linux
patch("subprocess.run")
tests/cli/test_cursor.py:None
Routetest_open_deeplink_macos
patch("subprocess.run")
tests/cli/test_cursor.py:None
Routetest_path_traversal_encoded
pytest.mark.parametrize( "malicious_id", [ "../../../admin/delete-all?",
tests/utilities/openapi/test_director.py:None
Routetest_permission_error
pytest.mark.skipif( os.name == "nt" or (hasattr(os, "getuid") and os.getuid() == 0), reason="F
tests/resources/test_file_resources.py:None
Routetest_prepare_calls_both_methods
patch( "fastmcp.utilities.mcp_server_config.v1.mcp_server_config.MCPServerConfig.prepare_source",
tests/cli/test_project_prepare.py:None
Routetest_prepare_command_fails
patch("subprocess.run")
tests/cli/test_project_prepare.py:None
Routetest_prepare_no_environment_settings
patch( "fastmcp.utilities.mcp_server_config.v1.mcp_server_config.MCPServerConfig.prepare_source",
tests/cli/test_project_prepare.py:None
Routetest_prepare_no_settings
patch("subprocess.run")
tests/cli/test_project_prepare.py:None
Routetest_prepare_no_uv_installed
patch("shutil.which")
tests/cli/test_project_prepare.py:None
Routetest_prepare_skip_source
patch( "fastmcp.utilities.mcp_server_config.v1.mcp_server_config.MCPServerConfig.prepare_source",
tests/cli/test_project_prepare.py:None
Routetest_prepare_with_dependencies
patch("subprocess.run")
tests/cli/test_project_prepare.py:None
Routetest_prepare_with_output_dir
patch( "fastmcp.utilities.mcp_server_config.v1.mcp_server_config.MCPServerConfig.prepare_source",
tests/cli/test_project_prepare.py:None
Routetest_prepare_with_python
patch("subprocess.run")
tests/cli/test_project_prepare.py:None
Routetest_project_prepare_auto_detect
patch("fastmcp.utilities.mcp_server_config.MCPServerConfig.from_file")
tests/cli/test_project_prepare.py:None
Routetest_project_prepare_config_not_exists
patch("pathlib.Path.exists")
tests/cli/test_project_prepare.py:None
Routetest_project_prepare_explicit_path
patch("pathlib.Path.exists")
tests/cli/test_project_prepare.py:None
Routetest_project_prepare_failure
patch("pathlib.Path.exists")
tests/cli/test_project_prepare.py:None
Routetest_project_prepare_no_config_found
patch("fastmcp.utilities.mcp_server_config.MCPServerConfig.find_config")
tests/cli/test_project_prepare.py:None
Routetest_replace_type
pytest.mark.parametrize( "input,type_map,expected", [ (int, {}, int),
tests/utilities/test_types.py:None
Routetest_route
server.custom_route("/test", methods=["GET"])
tests/server/mount/test_advanced.py:None
Routetest_skill_contains_tools
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_skill_references_cli_filename
pytest.mark.usefixtures("_patch_client")
tests/cli/test_generate_cli.py:None
Routetest_success
patch("fastmcp.cli.install.goose.open_deeplink")
tests/cli/test_goose.py:None
Routetest_success_uses_uvx
patch("fastmcp.cli.install.goose.open_deeplink")
tests/cli/test_goose.py:None
Routetest_uvicorn_logging_custom_log_config_overrides_log_level_param
patch("fastmcp.server.mixins.transport.uvicorn.Server")
tests/server/test_logging.py:None
Routetest_uvicorn_logging_default_level
patch("fastmcp.server.mixins.transport.uvicorn.Server")
tests/server/test_logging.py:None
Routetest_uvicorn_logging_with_custom_log_config
patch("fastmcp.server.mixins.transport.uvicorn.Server")
tests/server/test_logging.py:None
Routetest_version_command_copy_functionality
patch("fastmcp.cli.cli.pyperclip.copy")
tests/cli/test_cli.py:None
Routetest_version_command_execution
patch("fastmcp.cli.cli.check_for_newer_version", return_value=None)
tests/cli/test_cli.py:None
Routetest_with_argv_with_existing_args
patch("sys.argv", ["test_script.py", "existing", "args"])
tests/cli/test_with_argv.py:None
Routetest_with_packages
patch("fastmcp.cli.install.goose.open_deeplink")
tests/cli/test_goose.py:None
next →1–100 of 103, ranked by callers