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.
TypeScript agentandroidandroid-automationappium-alternativeclaude-codecodexcursoremulatoriosios-automationmcpmcp-servermobilemobile-automationmobile-testingreal-devicesimulatorskills
feat: return 410 with migration note on removed /sse endpoint
gmegidish15263b7efd63
diff --git a/package.json b/package.jsonindex 9b20b3d..70face9 100644--- a/package.json+++ b/package.json@@ -13,6 +13,7 @@"license": "Apache-2.0","scripts": {"build": "tsc && chmod +x lib/index.js",+ "start": "node lib/index.js","lint": "eslint .","fixlint": "eslint . --fix","test": "c8 playwright test",diff --git a/src/index.ts b/src/index.tsindex 29a1e81..2a5e44a 100644--- a/src/index.ts+++ b/src/index.ts@@ -11,6 +11,20 @@ const startHttpServer = async (host: string, port: number) => {// createMcpExpressApp applies express.json() and Host-header DNS rebinding// protection automatically when binding to localhost / 127.0.0.1 / ::1.const app = createMcpExpressApp({ host });++ // Migration hint for clients still pointing at the removed SSE transport.+ // Registered before auth so unauthenticated clients see the reason, not a 401.+ app.all("/sse", (_req: Request, res: Response) => {+ res.status(410).json({+ jsonrpc: "2.0",+ error: {+ code: -32000,+ message: "SSE transport removed. mobile-mcp now serves MCP Streamable HTTP at /mcp. See https://github.com/mobile-next/mobile-mcp#streamable-http-server-mode",+ },+ id: null,+ });+ });+const authToken = process.env.MOBILEMCP_AUTH;if (!authToken) {error("WARNING: MOBILEMCP_AUTH is not set. The HTTP server will accept unauthenticated connections. Set MOBILEMCP_AUTH to require Bearer token authentication.");