๐Ÿ“ฆ tobinsouth / mentra-mcp

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/tobinsouth/mentra-mcp.git
HTTPS git clone https://github.com/tobinsouth/mentra-mcp.git
SSH git clone git@github.com:tobinsouth/mentra-mcp.git
CLI gh repo clone tobinsouth/mentra-mcp
Tobin South Tobin South Initial commit 5dcb135 8 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ src
๐Ÿ“„ .env.example
๐Ÿ“„ .gitignore
๐Ÿ“„ bun.lock
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ README.md

MentraOS-Cloud-Example-App

Install MentraOS on your phone

MentraOS install links: mentra.glass/install

(Easiest way to get started) Set up ngrok

  • brew install ngrok
  • Make an ngrok account

Register your App with MentraOS

  • Click "Sign In", and log in with the same account you're using for MentraOS
  • Click "Create App"
  • Set a unique package name like com.yourName.yourAppName
  • For "Public URL", enter your Ngrok's static URL
  • In the edit app screen, add the microphone permission

Get your App running!

  • Create a new repo from this template using the Use this template dropdown in the upper right or the following command: gh repo create --template Mentra-Community/MentraOS-Cloud-Example-App
Create repo from template

  • Clone your new repo locally: git clone <your-repo-url>
  • cd into your repo, then type bun install
  • Set up your environment variables:
  • Create a .env file in the root directory by copying the example: cp .env.example .env
  • Edit the .env file with your app details:
PORT=3000
     PACKAGE_NAME=com.yourName.yourAppName
     MENTRAOS_API_KEY=your_api_key_from_console
  • Make sure the PACKAGE_NAME matches what you registered in the MentraOS Console
  • Get your API_KEY from the MentraOS Developer Console
  • Run your app with bun run dev
  • To expose your app to the internet (and thus MentraOS) with ngrok, run: ngrok http --url=<YOUR_NGROK_URL_HERE> 3000
  • 3000 is the port. It must match what is in the app config. For example, if you entered port: 8080, use 8080 for ngrok instead.

Next Steps

Check out the full documentation at docs.mentra.glass

Subscribing to events

You can listen for transcriptions, translations, and other events within the onSession function.