Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment: Dockerfile and Smithery config #8

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
36 changes: 36 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:22.12-alpine AS builder

# Install the build dependencies
RUN apk add --no-cache build-base python3

# Set working directory
WORKDIR /app

# Copy the package files and install dependencies
COPY package.json package-lock.json ./
RUN npm install --ignore-scripts

# Copy the source files and build the project
COPY tsconfig.json tsconfig.base.json ./
COPY src/ src/
RUN npm run build

# Create a new image from the built files
FROM node:22.12-alpine AS runner

# Set working directory
WORKDIR /app

# Copy the compiled files and package configuration from the builder stage
COPY --from=builder /app/dist/ ./dist/
COPY package.json package-lock.json ./

# Install only production dependencies
RUN npm ci --ignore-scripts --omit=dev

# Set environment variable for the access token (to be set when running the container)
ENV OSC_ACCESS_TOKEN=your_access_token_here

# Define the entry point of the application
ENTRYPOINT ["node", "dist/index.js"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Eyevinn Open Source Cloud MCP Server

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

MCP Server for [Eyevinn Open Source Cloud](www.osaas.io) API, enabling creation of solutions based on open web services. Web services based on open source where the creator gets a share of the revenue the platform generates. No vendor-lock in as the web services are based on open source.

### Features
Expand Down Expand Up @@ -34,6 +36,14 @@ MCP Server for [Eyevinn Open Source Cloud](www.osaas.io) API, enabling creation

## Setup

### Installing via Smithery

To install Eyevinn Open Source Cloud MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@osaas/mcp-server):

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

### Personal Access Token

- If you have not already done so, sign up for an [Eyevinn OSC account](https://app.osaas.io).
Expand Down
17 changes: 17 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- oscAccessToken
properties:
oscAccessToken:
type: string
description: The Personal Access Token for the Eyevinn Open Source Cloud API.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
config => ({command: 'node', args: ['dist/index.js'], env: {OSC_ACCESS_TOKEN: config.oscAccessToken}})