Skip to content

Enhance automcp init to Generate pyproject.toml#6

Open
moarshy wants to merge 6 commits intomainfrom
feat/add-pyproject
Open

Enhance automcp init to Generate pyproject.toml#6
moarshy wants to merge 6 commits intomainfrom
feat/add-pyproject

Conversation

@moarshy
Copy link
Copy Markdown
Collaborator

@moarshy moarshy commented Apr 18, 2025

This PR enhances the automcp init command to streamline the setup process for new MCP server projects. Previously, users only received a run_mcp.py file. Now, automcp init also generates a standard pyproject.toml file, pre-populated with essential configurations and dependencies.

Key Changes:

  1. pyproject.toml Generation:
    The automcp init -f <framework> command now creates a pyproject.toml file in the target directory if one doesn't already exist.
    A new template file (automcp/cli_templates/pyproject.toml.template) has been added, containing base project structure, build system config (hatchling), and script entry points (serve_stdio, serve_sse).

  2. Dynamic Configuration:
    The generated pyproject.toml automatically sets the [project] name based on the current directory's name.
    Crucially, it reads framework-specific dependencies from automcp/cli_templates/framework_config.yaml.

  3. Documentation & Usability:
    The README.md has been updated to explain the new pyproject.toml generation, guide users on verifying/adding dependencies, and reflect the updated workflow.
    The "Next steps" instructions printed by automcp init have been modified to guide the user regarding the new pyproject.toml and dependency installation (uv sync).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant