Skip to content

Deployment: Dockerfile and Smithery config #1

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

Merged
merged 2 commits into from
Mar 15, 2025
Merged
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ await tools.execute_menu_item({

## Installation

### Installing via Smithery

To install MCP Unity for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@CoderGamester/mcp-unity):

```bash
npx -y @smithery/cli install @CoderGamester/mcp-unity --client claude
```

### Installing the Unity MCP Server package via Unity Package Manager
1. Open the Unity Package Manager (Window > Package Manager)
2. Click the "+" button in the top-left corner
Expand Down
23 changes: 23 additions & 0 deletions Server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:lts-alpine

# Create app directory
WORKDIR /app

# Copy package.json and package-lock.json if exists
COPY package*.json ./

# Install dependencies, skipping prepare scripts to avoid unwanted builds
RUN npm install --ignore-scripts

# Copy the rest of the project source
COPY . .

# Build the project
RUN npm run build

# Expose WebSocket port, default 8080
EXPOSE 8080

# Command to run the MCP server
CMD ["node", "build/index.js"]