View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/server/templates/cli.py
CLI tool to scaffold a new MCP server project using mcp-use API Documentation
function copy_templatefrom mcp_use.server.templates.cli import copy_template
SignatureParameter valueParameter valueDictionary of key-value pairs
def copy_template(template_dir: pathlib.Path, target_dir: pathlib.Path, context: dict[str, str]):
function install_dependenciesfrom mcp_use.server.templates.cli import install_dependencies
ReturnsParameter value
Signature
def install_dependencies(target_dir: pathlib.Path):
function render_templatefrom mcp_use.server.templates.cli import render_template
ReturnsString valueDictionary of key-value pairs
Signature
def render_template(content: str, context: dict[str, str]):
function run_installfrom mcp_use.server.templates.cli import run_install
ReturnsName identifierList of itemsParameter value
Signature
def run_install(name: str, cmd: list[str], target_dir: pathlib.Path):
Was this page helpful?