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

Open
wants to merge 3 commits into
base: master
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
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# syntax=docker/dockerfile:1

FROM node:lts-alpine AS builder
WORKDIR /app

# Install dependencies and build
COPY package.json package-lock.json tsconfig.json ./
COPY src ./src
RUN npm ci && npm run prepare

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

# Copy built artifacts and package files
COPY --from=builder /app/lib ./lib
COPY package.json package-lock.json ./

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

# Start the MCP server
CMD ["node", "lib/index.mjs"]
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 🚀 Cursor MCP 安装工具

[![smithery badge](https://smithery.ai/badge/@yumia-pretty/cursor_mcp_installer)](https://smithery.ai/server/@yumia-pretty/cursor_mcp_installer)

> 为 Cursor 设计的 MCP 服务器安装程序,轻松扩展 AI 能力

## 📋 功能简介
Expand All @@ -17,7 +19,9 @@
- **Windows**: `C:\Users\用户名\.cursor\mcp.json`
- **macOS**: `~/.cursor/mcp.json`

### 方法一(推荐):
### 安装方式

### 方法一:从GitHub获取

```json
{
Expand All @@ -35,8 +39,7 @@
}
```

### 方法二:

### 方法二:从npm获取
```json
{
"mcpServers": {
Expand Down
13 changes: 13 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
description: Empty config
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({ command: 'node', args: ['lib/index.mjs'] })
exampleConfig: {}