diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..26fd62d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +FROM python:3.10-slim + +# Install required system dependencies +RUN apt-get update && apt-get install -y \ + build-essential \ + cmake \ + make \ + gcc \ + git \ + curl \ + bash \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +# Copy the entire repository into the container +COPY . . + +# Set up Python virtual environment and install dependencies +RUN python -m venv diffugen_env \ + && . diffugen_env/bin/activate \ + && pip install --upgrade pip \ + && pip install -r requirements.txt + +# Use bash explicitly for the entrypoint as diffugen.sh uses bash-specific syntax. +ENTRYPOINT [ "bash", "diffugen.sh" ] diff --git a/README.md b/README.md index 52f8645..594960f 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Forks Badge Issues Badge License Badge -

+ Installations ## 📋 Table of Contents @@ -21,6 +21,7 @@ - [Features](#-features) - [System Requirements](#-system-requirements) - [Installation](#-installation) + - [Installing via Smithery](#installing-via-smithery) - [Automatic Installation](#automatic-installation) - [Manual Installation](#manual-installation) - [Cross-Platform Considerations](#cross-platform-considerations) @@ -139,6 +140,14 @@ For troubleshooting dependency issues, consult the [DiffuGen GitHub repository]( ## 📥 Installation +### Installing via Smithery + +To install DiffuGen automatically for Claude Desktop via Smithery: + +```bash +smithery install CLOUDWERX-DEV/DiffuGen +``` + ### Automatic Installation The easiest way to install DiffuGen is using the provided setup script: diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..0f2cd1b --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,20 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + properties: {} + default: {} + description: No configuration required for DiffuGen server. All parameters are + set via environment variables or default values. + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ + command: 'bash', + args: ['diffugen.sh'], + env: { } + }) + exampleConfig: {}