From 9600d99893578afe04e91826e45370635e103f46 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 14:02:34 +0000 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..81cafa6 --- /dev/null +++ b/Dockerfile @@ -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"] From b8959c0d1b63278957488fa507ad99f20df3ddf9 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 14:02:35 +0000 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..9f8be71 --- /dev/null +++ b/smithery.yaml @@ -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 From fefd667fec25d767ed9fa2bb3bf8d55032b6f805 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Fri, 23 May 2025 14:02:35 +0000 Subject: [PATCH 3/3] Update README --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0241386..ea24283 100644 --- a/README.md +++ b/README.md @@ -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.
@@ -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 ``` @@ -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. \ No newline at end of file +This project is licensed under the MIT License. See the LICENSE file for details.