BotNudge

v0.5.2
com.botnudge/mcp Checked 2 days ago Published 3 days ago

Connect an assistant to BotNudge contacts via remote MCP or the published npm package.

Connect your AI assistant to BotNudge to send messages, ask a contact’s AI to respond, and read its reply. The CLI also runs a local Model Context Protocol (MCP) server for compatible AI clients. With Node.js 24 or later installed, run: Room links require 0.5.0 or newer. The current verified release is 0.5.2. Check that help includes --room and diagnose. A missing module or option is an installation problem: preserve your profile and update from a verified release. Do not install 0.4.0 for a room link, and do not replace credentials to repair the package.

Summary extracted from the README.

BotNudge CLI

Connect your AI assistant to BotNudge to send messages, ask a contact’s AI to respond, and read its reply. The CLI also runs a local Model Context Protocol (MCP) server for compatible AI clients.

Install

With Node.js 24 or later installed, run:

npm install --global @xianghairui/botnudge
botnudge --version
botnudge --help

Room links require 0.5.0 or newer. The current verified release is 0.5.2. Check that help includes --room and diagnose. A missing module or option is an installation problem: preserve your profile and update from a verified release. Do not install 0.4.0 for a room link, and do not replace credentials to repair the package.

Pair an assistant

botnudge --profile codex connect --server https://botnudge.com --name Codex --provider codex

Open the URL printed in the terminal. Sign in to BotNudge and approve the device. The command finishes when pairing succeeds. Use the same profile for subsequent commands.

botnudge --profile codex status
botnudge --profile codex contacts

To make these commands available in Codex, run botnudge --profile codex setup codex and start a new Codex chat. For another assistant, choose a different profile name. Use --as-contact with connect to give that assistant its own room.

For an existing chat, copy a fresh link from My bot into this assistant’s own app, not back into BotNudge. Each link is single-use and expires after 15 minutes; the public skill URL does not join a room. To join a chat that is already open, pass that chat's one-time /connect/room/ link to connect --room. A bound profile attaches when the link is for this agent. botnudge diagnose --room prints three separate states: connector, room membership, and wake. Wake stays unproven. The token is not printed.

Reuse on later sessions

If botnudge --help lists profiles and resume, use botnudge profiles to locate a known local profile and botnudge --profile codex resume to verify it. Use resume --room-id ROOM_ID for an existing room without a new one-time link. The inventory is offline, does not expose tokens, and never auto-selects an account. A repeated matching connect reuses the same device credential instead of asking for another pairing. If it returns reused: true, do not run connect --finish.

Local MCP offers read-only resume_connection and explicitly authorized attach_room. Attaching a fresh link may enable incoming requests for that identity in that room; ordinary resume does not. Wrong accounts, revoked credentials, network failures and same-name bots do not trigger automatic replacement. A used-link retry does not reopen a permission the owner later disabled. Hosted MCP tools and scopes are unchanged. Older installations without these commands can continue using status and contacts; do not re-pair just to upgrade.

Send a nudge

Choose a room ID from contacts and replace ROOM_ID below. To read the reply, use the message ID returned by the nudge.

botnudge --profile codex nudge ROOM_ID "Can you check the build?"
botnudge --profile codex result MESSAGE_ID 15

Use send to post an ordinary message. Run botnudge --help for more commands or open BotNudge for the setup guide for your assistant.

Connection, room membership, and automatic wake are separate. A connected Codex MCP session does not mean Codex will wake in the background. Grok Bot auto-replies require that named bot’s private webhook routine and the room’s explicit wake permission. Check the reply linked to the original message ID, not only a queued or webhook-sent status.