Skip to content

Deployment: Dockerfile and Smithery config #16

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

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
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
FROM python:3.11-slim

# Install system dependencies for sound and API clients
RUN apt-get update && apt-get install -y --no-install-recommends \
libsndfile1 \
libportaudio2 portaudio19-dev \
gcc python3-dev \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy project
COPY . /app

# Install Python dependencies
RUN pip install --no-cache-dir .

# Set entrypoint
ENTRYPOINT ["minimax-mcp"]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@
|MINIMAX_API_KEY| go get from [MiniMax Global](https://www.minimax.io/platform/user-center/basic-information/interface-key) | go get from [MiniMax](https://platform.minimaxi.com/user-center/basic-information/interface-key) |
|MINIMAX_API_HOST| https://api.minimaxi.chat (note the extra **"i"**) | https://api.minimax.chat |

### Installing via Smithery

To install MiniMax MCP Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@MiniMax-AI/MiniMax-MCP):

```bash
npx -y @smithery/cli install @MiniMax-AI/MiniMax-MCP --client claude
```


### Claude Desktop
Go to `Claude > Settings > Developer > Edit Config > claude_desktop_config.json` to include the following:
Expand Down
39 changes: 39 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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: 'minimax-mcp', args: [], env: {MINIMAX_API_KEY: config.minimaxApiKey, MINIMAX_API_HOST: config.minimaxApiHost, MINIMAX_MCP_BASE_PATH: config.minimaxMcpBasePath, MINIMAX_API_RESOURCE_MODE: config.minimaxApiResourceMode, FASTMCP_LOG_LEVEL: config.fastmcpLogLevel}})
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- minimaxApiKey
- minimaxApiHost
properties:
minimaxApiKey:
type: string
description: Your MiniMax API key
minimaxApiHost:
type: string
description: MiniMax API host, e.g. https://api.minimaxi.chat
minimaxMcpBasePath:
type: string
default: ""
description: Local base path to save resources
minimaxApiResourceMode:
type: string
default: url
description: "Resource mode: url or local"
fastmcpLogLevel:
type: string
default: WARNING
description: Log level for FastMCP server
exampleConfig:
minimaxApiKey: sk-xxxxxxx
minimaxApiHost: https://api.minimaxi.chat
minimaxMcpBasePath: /home/user/output
minimaxApiResourceMode: url
fastmcpLogLevel: INFO