v0.3.5
v0.3.5
v0.3.4 exposed a major UX gap for global npm installs: users had no clear place to put their .env file. The MCP server only loaded from process.cwd(), while the bundled .env.example lived deep inside the npm install path.
This release fixes that.
What's new
-
Added
brainrouter-mcp initbrainrouter-mcp init
Creates
~/.config/brainrouter/server.envfrom the bundled example file (chmod 0600). Won’t overwrite existing configs. -
New env loading priority:
$BRAINROUTER_ENV_FILE~/.config/brainrouter/server.env./.env
-
Server now prints which env file was loaded:
env: loaded 17 vars from ~/.config/brainrouter/server.env -
README rewritten for actual npm users
- Proper global install flow
$PATHusage- sudo guidance for system Node installs
-
SETUP.mdsplit into:- Install from npm
- Clone and build for development
Recommended install flow
npm install -g @kinqs/brainrouter-cli @kinqs/brainrouter-mcp-server
brainrouter-mcp init
$EDITOR ~/.config/brainrouter/server.env
# Terminal 1
brainrouter-mcp --http --port 3747
# Terminal 2
brainrouter config && brainrouter login
brainrouterCompatibility
- Existing monorepo
.envsetups still work - All 109 CLI tests still passing
Diff
Full Changelog: v0.3.4...v0.3.5