from setuptools import setup, find_packages from setuptools.command.install import install import subprocess import sys with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() class PostInstallCommand(install): """Post-installation for installation mode.""" def run(self): install.run(self) # Run the configuration script try: subprocess.check_call([sys.executable, "-m", "image_recognition_server.install"]) except Exception as e: print(f"Note: Automatic configuration failed: {e}") print("You can manually configure by running: image-recognition-mcp-install") setup( name="image-recognition-mcp", version="0.2.0", author="Your Name", author_email="your.email@example.com", description="An MCP server for AI-powered image analysis and generation using OpenAI Vision API and DALL-E", long_description=long_description, long_description_content_type="text/markdown", url="https://git.enne2.net/enne2/mcp-image-server.git", packages=find_packages(), classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ], python_requires=">=3.8", install_requires=[ "fastmcp>=2.0.0", "pillow>=10.0.0", "openai>=1.0.0", ], entry_points={ "console_scripts": [ "image-recognition-mcp=image_recognition_server.server:main", "image-recognition-mcp-install=image_recognition_server.install:main", ], }, cmdclass={ 'install': PostInstallCommand, }, keywords=["mcp", "modelcontextprotocol", "image", "vision", "openai", "ai"], )