Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
# Dockerfile for together-mcp-server
FROM node:lts-alpine AS builder
WORKDIR /app

# Install dependencies
COPY package.json package-lock.json* tsconfig.json ./
COPY src ./src

# Install and build
RUN npm install --ignore-scripts && npm run build

# Production image
FROM node:lts-alpine
WORKDIR /app

# Copy built files and dependencies
COPY --from=builder /app/build ./build
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/node_modules ./node_modules

# Ensure permissions
RUN chmod +x build/index.js

# Default command (will be overridden by MCP harness)
CMD ["node", "build/index.js"]
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Image Generation MCP Server

[![smithery badge](https://smithery.ai/badge/@manascb1344/together-mcp-server)](https://smithery.ai/server/@manascb1344/together-mcp-server)

A Model Context Protocol (MCP) server that enables seamless generation of high-quality images using the Flux.1 Schnell model via Together AI. This server provides a standardized interface to specify image generation parameters.
<div align="center">

Expand All @@ -24,6 +26,14 @@ A Model Context Protocol (MCP) server that enables seamless generation of high-q

## Installation

### Installing via Smithery

To install Image Generation Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@manascb1344/together-mcp-server):

```bash
npx -y @smithery/cli install @manascb1344/together-mcp-server --client claude
```

```bash
npm install together-mcp
```
Expand Down Expand Up @@ -208,4 +218,4 @@ For significant changes, please open an issue first to discuss your proposed cha

## License

This project is licensed under the MIT License. See the LICENSE file for details.
This project is licensed under the MIT License. See the LICENSE file for details.
19 changes: 19 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Smithery configuration file: https://smithery.ai/docs/build/project-config

startCommand:
type: stdio
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({ command: 'node', args: ['build/index.js'], env: { TOGETHER_API_KEY: config.togetherApiKey } })
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- togetherApiKey
properties:
togetherApiKey:
type: string
description: Together AI API key
exampleConfig:
togetherApiKey: YOUR_TOGETHER_API_KEY