8000 Enhance automcp init to Generate pyproject.toml by moarshy · Pull Request #6 · NapthaAI/automcp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enhance automcp init to Generate pyproject.toml #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8000
Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

moarshy
Copy link
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
0