8000 chore(dev): local playtest server by Mnehmos · Pull Request #356 · Mnehmos/rpg-mcp-live · GitHub
[go: up one dir, main page]

Skip to content

chore(dev): local playtest server - #356

Merged
Mnehmos merged 2 commits into
mainfrom
chore/dev-local
Nov 2, 2026
Merged

Mnehmos merged 2 commits into
mainfrom
chore/dev-local

Conversation

@Mnehmos
@Mnehmos Mnehmos commented Nov 2, 2026
Copy link
Copy Markdown
Owner

What

npm run dev:local (tools/dev-local.mjs) starts the reference engine (sibling mnehmos.rpg.mcp checkout, HTTP mode) and the web app (tsx watch) together for local playtesting:

  • Sign-in bypassed via the existing DEV_AUTH_BYPASS: Clerk keys are blanked, so the bypass applies; it is still impossible in production.
  • All state is local under tmp/dev/ (web SQLite + engine campaign DBs; gitignored). Delete the folder for a fresh start.
  • Engine and web share local-only transport and tenant secrets; Stripe is off.
  • The model key comes from the environment. railway run -s rpg-mcp-live -e staging -- npm run dev:local borrows staging's OpenRouter key at run time without writing it to disk; everything that points at hosted state (database, engine, Clerk, Stripe) is overridden, so a local run never touches staging or production.
  • ENGINE_DIR, WEB_PORT, ENGINE_PORT override the defaults (sibling folder, 3000, 3101).

Risk

None for production: a new script plus a gitignore entry.

Acceptance criteria

  • npm run dev:local serves the game at http://localhost:3000, signed in as local-player, against a local engine.

Verification

Ran it locally: the engine came up and was reported healthy by the web app; a quickstart created a campaign, character and starter scene in the local engine; and the page rendered with the 3D scene from #355 and no console errors.

🤖 Generated with Claude Code

…cal state)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Nov 2, 2026 •
Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T17:57:51.432146Z b3ee216 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mnehmos
Mnehmos merged commit dbadc28 into main Nov 2, 2026
2 checks passed
@Mnehmos
Mnehmos deleted the chore/dev-local branch November 2, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0