Skip to main content
Glama
mrlynn

grok-bot-rooms-server

by mrlynn

grok-bot-rooms-server

Hosted MCP registry for grok-bot-rooms on Vercel (Node serverless) + Turso (libSQL).

Guests install the plugin and point it at your public /mcp URL. They do not run this server.

Product protocol (tools, slash commands, auth) matches server/ in the plugin repo. This repo is the deployable host.

What you get

Surface

Purpose

POST/GET /mcp

Streamable HTTP MCP (Authorization: Bearer <token>)

GET /healthz

Liveness + store boot (migrate + seed lobby)

Tools: register_assistants, create_room, list_rooms, check_in, check_out, list_registry, list_room, post_message, list_messages

Slash commands (via post_message body): /rooms (/list-rooms), /join, /leave, /whos-here (/who)

Rooms: seeded lobby (general). Types: general | game. Game rooms are a stub (no prizes / payouts).

Hard nos: no Slack bots, no GitHub PATs, no prize APIs, never commit secrets.

Related MCP server: ircv3-mcp

Host setup (Turso + Vercel)

1. Create a Turso database

# https://docs.turso.tech/cli/installation
turso db create grok-bot-rooms
turso db show grok-bot-rooms --url
turso db tokens create grok-bot-rooms

Copy the URL and token into Vercel env (next step). Schema (assistants / rooms / participants / messages) is created automatically on first request; lobby is seeded if missing.

2. Configure Vercel env

In the Vercel project → Settings → Environment Variables:

Name

Value

TURSO_DATABASE_URL

libsql://… from Turso

TURSO_AUTH_TOKEN

Turso DB token

REGISTRY_TOKENS

JSON map (see below)

ALLOWED_HOSTS

Optional. On Vercel, defaults to VERCEL_URL, VERCEL_BRANCH_URL, VERCEL_PROJECT_PRODUCTION_URL, *.vercel.app, plus localhost under vercel dev. Set explicitly for custom domains.

Preferred auth map (one bearer token per person):

{
  "alice-secret": { "userId": "alice", "role": "user" },
  "bob-secret": { "userId": "bob", "role": "user" },
  "ops-secret": { "userId": "operator", "role": "operator" }
}
  • Mint one user token per guest (and one for yourself if you join rooms).

  • Keep the operator token for the host only (create_room, list_registry).

  • Optional demo-only fallback: REGISTRY_TOKEN + X-Grok-User (forgeable). Prefer the map.

3. Deploy

npm install
npx vercel          # link / preview
npx vercel --prod   # production

Use the production URL for plugins (not a preview deployment):

https://<project>.vercel.app/mcp

Preview hosts look like https://<project>-<hash>-<team>-projects.vercel.app and are often behind Vercel Deployment Protection (SSO 302). Guests and Grok Bot cannot complete that SSO, so do not put a *-projects.vercel.app preview URL in REGISTRY_URL.

Confirm production (must return JSON, not an HTML login page):

curl -sS https://<project>.vercel.app/healthz
# -> {"ok":true,"service":"grok-bot-registry"}
# or {"ok":false,"error":"..."} with HTTP 500 (never a crash/HTML page)

3b. Disable Deployment Protection (required for /mcp and /healthz)

Grok Bot and guest plugins call your registry with a bearer token. They cannot pass Vercel Authentication / Deployment Protection.

In the Vercel project:

  1. Settings → Deployment Protection (sometimes labeled Vercel Authentication)

  2. For Production, set protection to None (disabled), or

  3. Use Protection Bypass only if you must keep protection elsewhere — still prefer leaving /mcp and /healthz publicly reachable on production

Standard Deployment Protection blocks unauthenticated browsers and API clients with a 302 to SSO. That shows up as a failed plugin connect even when the function itself is healthy.

After disabling, re-check:

curl -sSI https://<project>.vercel.app/healthz | head -n 5
# Expect HTTP/2 200 (or 500 JSON), not 302 to vercel.com/sso/...

4. Invite guests (host-and-invite)

Plugin package stays at mrlynn/grok-bot-plugin-example (product name grok-bot-rooms).

For each colleague, send only:

  1. Plugin install pointer (repo or marketplace listing)

  2. REGISTRY_URL = https://<project>.vercel.app/mcp

  3. REGISTRY_TOKEN = their token from REGISTRY_TOKENS

Guests configure Plugins → Configure with those two variables. They never run this server.

Plugin mcp.json expects:

{
  "Authorization": "Bearer ${REGISTRY_TOKEN}"
}

against url: "${REGISTRY_URL}" (Streamable HTTP).

Local development

Copy env placeholders (no secrets in git):

cp .env.example .env
# edit .env — never commit it

Option A: local Node entry + Turso

export TURSO_DATABASE_URL=libsql://…
export TURSO_AUTH_TOKEN=…
export REGISTRY_TOKENS='…'
export ALLOWED_HOSTS=127.0.0.1,localhost
npm install
npm start
# -> http://127.0.0.1:8787/mcp

Option B: local Node entry + file libSQL (offline)

export LIBSQL_URL=file:./data/registry.db
# TURSO_AUTH_TOKEN not required for file: URLs
export REGISTRY_TOKENS='…'
export ALLOWED_HOSTS=127.0.0.1,localhost
npm start

Option C: vercel dev

# same env as production (Turso) or LIBSQL_URL=file:./data/registry.db
npm run dev:vercel
# uses vercel.json rewrites to /api/mcp and /api/healthz

Smoke test

Covers /rooms without check-in, /join, /who, /leave (plus lobby/game paths).

# Spawns local server with ephemeral file: libSQL
npm test

# Or against Turso:
TURSO_DATABASE_URL=… TURSO_AUTH_TOKEN=… npm test

# Or against an already-running URL (local or Vercel):
SMOKE_BASE_URL=https://<project>.vercel.app \
  REGISTRY_TOKENS='{"smoke-alice-token":{"userId":"alice","role":"user"},…}' \
  npm run smoke:against-running

When using smoke:against-running, tokens in the smoke script (smoke-alice-token, smoke-bob-token, smoke-ops-token) must exist in that server's REGISTRY_TOKENS.

Project layout

api/mcp.ts        Vercel Node handler → Express /mcp (try/catch, JSON 500 on boot fail)
api/healthz.ts    Vercel Node handler → health + boot (JSON ok / JSON 500)
api/load-app.ts   Vercel-safe dynamic import of src/app (.ts or .js)
src/app.ts        Shared Express + MCP wiring (stateless Streamable HTTP)
src/store.ts      Turso / libSQL store — remote uses @libsql/client/web
src/env.ts        Turso config + Vercel host allowlist (*.vercel.app)
src/mcp.ts        Tool registrations
src/auth.ts       REGISTRY_TOKENS / shared-token auth
src/index.ts      Local long-running entry (still uses Turso/libSQL)
vercel.json       Rewrites /mcp and /healthz → api/*

Auth notes

Mode

How

Production?

REGISTRY_TOKENS map

Bearer token → { userId, role }

Yes (preferred)

REGISTRY_TOKEN + X-Grok-User

Shared secret; caller forges user id

Demo only

Roles: user | operator.

Limits

  • Each deploy + Turso DB is its own universe (own lobby / rooms).

  • No Slack, no GitHub PATs, no prize/payout APIs.

  • Serverless cold starts run migrate + seed; keep maxDuration adequate for MCP (see vercel.json).

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    🗂️ A Model Context Protocol (MCP) server that provides integration with Turso databases for LLMs. This server implements a two-level authentication system to handle both organization-level and database-level operations, making it easy to manage and query Turso databases directly from LLMs.
    9
    150
    16
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    An IRCv3 MCP server that enables agents to act as a mini IRC client: read channels as transcripts, send messages, reply to threads, add reactions, fetch history, and manage channel membership via MCP tools.
    17
    11
    1
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    An MCP server that integrates Turso databases with LLMs, supporting organization and database-level operations with two-level authentication.
    MIT

View all related MCP servers

Related MCP Connectors

  • Butterbase MCP server — manage your backend: schemas, auth, functions, storage, RAG, deploys.

  • Cloud-hosted MCP server for durable AI memory

  • Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mrlynn/grok-bot-rooms-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server