Documentation Index
Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
Use this file to discover all available pages before exploring further.
CLI tool to scaffold a new MCP server project using mcp-use.
copy_template
function copy_template
Copy the template to the target folder after replacing placeholders.from mcp_use.server.templates.cli import copy_template
Parameters
Dictionary of key-value pairs
Signaturedef copy_template(template_dir: pathlib.Path, target_dir: pathlib.Path, context: dict[str, str]):
detect_installer
function detect_installer
Detect the best available package installer. Returns (name, install_command).from mcp_use.server.templates.cli import detect_installer
Returns
Signature
get_available_templates
function get_available_templates
Returns the list of available templates.from mcp_use.server.templates.cli import get_available_templates
Returns
Signaturedef get_available_templates():
install_dependencies
function install_dependencies
Prompt user to install dependencies and run the installer. Returns True if installed.from mcp_use.server.templates.cli import install_dependencies
Parameters
Returns
Signaturedef install_dependencies(target_dir: pathlib.Path):
main
function main
from mcp_use.server.templates.cli import main
Signature
render_template
function render_template
Replace {{KEY}} placeholders with context values.from mcp_use.server.templates.cli import render_template
Parameters
Dictionary of key-value pairs
Returns
Signaturedef render_template(content: str, context: dict[str, str]):
run_install
function run_install
Run the installer, capturing output. Returns True on success.from mcp_use.server.templates.cli import run_install
Parameters
Returns
Signaturedef run_install(name: str, cmd: list[str], target_dir: pathlib.Path):
validate_project_name
function validate_project_name
Check if the inserted name is a valid project name.from mcp_use.server.templates.cli import validate_project_name
Parameters
Returns
Signaturedef validate_project_name(name: str):