npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@momo-kits/mcp-expo

v2.0.0-beta.6

Published

MCP server: push AI-generated code to Expo and get LAN URL for Expo Go demo

Downloads

1,228

Readme

MCP Expo — AI Code → Expo Go Demo

MCP server nhận code từ AI tool, ghi vào expo-demo-template/App.tsx, và trả URL để mở app trên Expo Go.

Cấu trúc

/Users/sonnguyen/Documents/Momo/
├── expo-demo-template/   ← App Expo cố định (Metro đọc ở đây)
│   ├── App.tsx           ← File bị ghi đè mỗi lần gọi tool
│   ├── app.json
│   └── package.json
│
└── mcp-expo/            ← MCP server
    ├── server.mjs        ← MCP server (ESM, stdio)
    └── package.json

Setup

cd /Users/sonnguyen/Documents/Momo/mcp-expo
npm install

Chạy MCP

node server.mjs

Cấu hình MCP client (Claude Code / Claude Desktop):

{
  "mcpServers": {
    "expo-demo": {
      "command": "node",
      "args": ["/Users/sonnguyen/Documents/Momo/mcp-expo/server.mjs"]
    }
  }
}

Tools

push_screen_and_run

Ghi code AI vào App.tsx, khởi động Metro nếu cần, trả URL.

{
  "code": "import React from 'react';\nimport { View, Text } from 'react-native';\n\nexport default function Demo() {\n  return <View><Text>Hello!</Text></View>;\n}",
  "reset": false
}

| Param | Type | Mô tả | |-------|------|--------| | code | string | Nội dung TSX/JSX từ AI | | reset | boolean | true = kill + restart Metro trước. Mặc định: false |

Response:

{
  "ok": true,
  "message": "Code updated. App is reloading via HMR...",
  "expoUrl": "http://localhost:8081"
}

stop_expo

Kill Metro server đang chạy.

get_expo_status

Kiểm tra trạng thái:

{
  "isRunning": true,
  "expoUrl": "http://localhost:8081",
  "pid": 12345
}

Flow

  1. AI gen code → gọi push_screen_and_run
  2. MCP ghi code vào App.tsx
  3. Metro bundler khởi động (hoặc reload HMR nếu đang chạy)
  4. Trả URL → mở Expo Go trên điện thoại, trỏ vào URL đó
  5. App hiện màn hình AI vừa gen

Lưu ý

  • Metro chạy ở --lan (cùng WiFi). URL: http://<IP>:8081
  • Expo Go cần kết nối cùng mạng WiFi với máy tính
  • CI=1 được set tự động để tránh interactive prompts
  • Nếu máy có firewall, allow port 8081