Skip to content

Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.

chore: add smithery.yaml and Dockerfile for MCP registry listings (#415)

Gil Megidisha06b9e1e6ccb
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..6df7611
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,7 @@
+node_modules
+lib
+coverage
+test-results
+.git
+*.png
+*.mp4
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..b96c4e6
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,20 @@
+FROM node:22-slim AS build
+WORKDIR /app
+COPY package*.json ./
+RUN npm ci
+COPY . .
+RUN npm run build
+
+FROM node:22-slim
+# adb client only; devices are reached through the host's adb server
+RUN apt-get update && apt-get install -y --no-install-recommends adb && rm -rf /var/lib/apt/lists/*
+WORKDIR /app
+COPY package*.json ./
+# --ignore-scripts: "prepare" runs husky, a devDependency
+RUN npm ci --omit=dev --ignore-scripts
+COPY --from=build /app/lib ./lib
+# /app itself must be writable by node: save_screenshot writes below cwd
+RUN chown node:node /app
+USER node
+ENV ADB_SERVER_SOCKET=tcp:host.docker.internal:5037
+ENTRYPOINT ["node", "lib/index.js"]
diff --git a/smithery.yaml b/smithery.yaml
new file mode 100644
index 0000000..acbae6e
--- /dev/null
+++ b/smithery.yaml
@@ -0,0 +1,8 @@
+startCommand:
+ type: stdio
+ configSchema:
+ type: object
+ required: []
+ properties: {}
+ commandFunction: |-
+ () => ({ command: 'npx', args: ['-y', '@mobilenext/mobile-mcp@latest'] })