Skip to main content
Glama
doriandarren

Splytin MCP Project Generator

by doriandarren

Project

Related MCP server: feuse-mcp

MCP

This repository already includes an MCP server via stdio in mcp_server.py.

Run

python3 mcp_server.py

Available tools

  • create_python_django_project

  • create_python_django_crud

  • create_react_project

  • create_php_project

MCP configuration example

{
  "mcpServers": {
    "project-generator": {
      "command": "python3",
      "args": ["/Users/dorian/PythonProjects/splytin_mcp/mcp_server.py"]
    }
  }
}
{
  "mcpServers": {
    "project-generator": {
      "command": "python3",
      "args": ["/Users/milena/workspaces/WorkSpacePython/PROJECTS/splytin_mcp"]
    }
  }
}

Local smoke test

python3 tests/test_mcp.py

Notes

  • The current interactive CLI still works.

  • The MCP uses the same generation logic, but without menus or input().

  • If you are going to run actual generators, you will need to have the project dependencies and external tools that each stack uses installed, for example python3, npm, or composer.

Create virtual environment

## Entorno virtual MacOs
python3 -m venv .venv
source .venv/bin/activate                     # Activar entorno
deactivate                                    # Desactivar entorno

## Entorno virtual Windows
py -m venv .venv                               # Windows
.\.venv\Scripts\activate                       # Windows
py -m pip install --upgrade pip                # Windows
deactivate                                     # Desactivar
py -m pip xxx                                  # Usar este comando para instrucciones


## Actualizar
pip install --upgrade pip


## Instala los requerimientos:
pip list
pip freeze > requirements.txt                  # Crear archivo requerimientos -> Respaldo / Export
pip install -r requirements.txt                # Instalar requerimientos Restore / Import

# Si No se tiene el archivo: requirements.txt
pip install pipreqs                             # Install
pipreqs . --force                               # Ejecutar

Libraries gen


pip install questionary                                      # Console / Terminal
pip install colorama                                         # Console / Terminal
pip install requests                                         # Conexion API
pip install schedule                                         # Cronjobs
pip install inflect                                          # Pluralize

pip install sqlalchemy psycopg2-binary alembic python-dotenv  # DB
pip install pymysql                                           # DB

Project flow

## Para proyectos (to_create_project)
pymain -> pystart -> pystartproject -> pygenerate

## Para modulos (to_create_module_crud)
pymain -> pystart -> pystartmodule -> pystandard -> pygenerate

Steps:

1. crear carpeta proyecto "xxx" y archivo "_ _ init _ _.py" y el archivo: "main_xxx"
2. crear carpetas con sus respectivos archivos "_ _ init _ _.py":

   - "to_create_module_crud"
   - "to_create_project"

3. crear dentro de la carpeta "to_create_project" el archivo: start_project_xxx.py
4. crear dentro de la carpeta "to_create_module_crud" el archivo: start_module_xxx.py

Format Example -> columns

[{'name': 'user_id', 'type': 'fk', 'is_fk': True, 'related_table': 'users', 'related_model': 'User'}, {'name': 'name', 'type': 'string', 'is_fk': False}, {'name': 'age', 'type': 'integer', 'is_fk': False}, {'name': 'description', 'type': 'string', 'is_fk': False}]

Example: CRUD


/Users/dorian/PythonProjects/python.generator
main
AgendaUnloading
AgendaUnloadings
[{'name': 'user_id', 'type': 'fk', 'is_fk': True, 'related_table': 'users', 'related_model': 'User'}, {'name': 'name', 'type': 'string', 'is_fk': False}, {'name': 'age', 'type': 'integer', 'is_fk': False}, {'name': 'description', 'type': 'string', 'is_fk': False}]
['api_route', 'api_serializer', 'api_wiewset', 'api_model', 'api_service']

TODOS:

PYTHON:

  • cors: 'corsheaders.middleware.CorsMiddleware', # required for cors, goes above: 'django.middleware.common.CommonMiddleware',

  • In PHP: when a project is created, the following must be changed in the ".env" and ".env.example" files: "LOG_CHANNEL=daily"

  • in the file for the postman API, "execute" must be added to the Dev:

Related MCP Connectors

Related MCP Servers

  • F
    license
    C
    quality
    D
    maintenance
    This is an MCP server that facilitates building tools for interacting with various APIs and workflows, supporting Python-based development with potential for customizable prompts and user configurations.
    1
    -
  • A
    license
    B
    quality
    C
    maintenance
    An MCP server that provides utilities for web developers to automate API integration, convert Figma designs to code, and optimize development workflows with tools for asset management and code generation.
    2
    8
    19 npm
    38
    Mozilla Public 2.0
  • A
    license
    A
    quality
    D
    maintenance
    A unified MCP server for scaffolding project structures across multiple frameworks including Spring Boot, React, Vue, Next.js, FastAPI, Django, Flask, Express, and more.
    2
    19 npm
    1
    MIT