Repository navigation
feat(minimax-bot-bridge): add the MiniMax Bot Bridge Mini App - #109
Open
nattiini45 wants to merge 1 commit into
Open
nattiini45 wants to merge 1 commit into
nattiini45 wants to merge 1 commit into
Conversation
Pairs a phone with the MiniMax Bot team on your desktop. The bridge shows a pairing code, lists and revokes paired phones, and carries the team's conversations and tool activity over a relay the operator runs. The runtime payload is self-contained: Node's standard library only, with the shared protocol vendored into miniapp/node/protocol. The package declares agentAccess [session.run] and toolAccess [call], writes only inside the Host's data directory, and spawns no processes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it is
MiniMax Bot Bridge pairs a phone with the MiniMax Bot team on your desktop. It is the Mini App that runs on the desktop side of the pairing: it shows a single-use pairing code, keeps the list of paired phones, and carries the team's conversations and tool activity to the phone over a relay you operate.
The desktop makes an outbound connection to the relay, so no desktop port is exposed to the internet. The relay is a Cloudflare Worker the operator runs; it is a connection service, not an agent hosted in the cloud, and it holds no MiniMax account credential.
This is an independent project, not an official MiniMax application. It does not modify or reproduce the official MiniMax Bot plugin: it calls the team tools the Host already exposes and leaves the desktop in charge.
What it needs
docs/PAIRING.md. The relay Worker and the minting command live in the phone app's repository.The phone itself is a separate project: https://github.com/nattiini45/minimax-bot-mobile (Expo / React Native, Android, iOS and web).
Contract notes
agentAccess: ["session.run"]session.readis not declared. The team conversation history it shows comes from the team tools, not from the session API.toolAccess: ["call"]minimax-botteam tools the Host exposes (mcp__minimax-bot__…) to read the team, its groups and its conversation history, and to send messages. Every call is judged by the user's permission rules.surface.windowgetUserMedia, nospeech.transcribe, no host connector providers, no MCP servers, no skills, no subagents.Other things the reviewer asked about:
context.dataDir:bridge-config.json,bridge-token(owner-only mode) andledger.json(turn, tool and permission records — counters and identifiers, not message text), plus onerooms/<hash>/ledger.jsonper room. No other file on the machine is read or written; the Host's own files are not touched.http:///ws://address is accepted only for a loopback relay, andwss:///https://name the same relay so the credential never crosses between them.context.logger; noconsole.*orprocess.stdout.writein the payload./bridgefor the surface and/api/*for its own endpoints. Nothing under/__mavis/.miniapp/node/protocol/. Nonode_modules, no network imports.Testing
npm testinside the package: 344 tests, 343 pass, 1 skipped, 0 fail. No dependencies to install, no network, no fixtures outside the OS temporary directory.node scripts/validate.mjs plugins/nattiini45/minimax-bot-bridge→OK, no errors and no warnings.npm run checkat the repository root →repository: OK, 87 tests pass.Notes
LICENSE-MINIMAX.txt, kept with the package.docs/PROTOCOL.mdanddocs/PAIRING.mddocument the wire contract and the credential flow. Paths that point into the original workspace were rewritten to absolute links into the source repository.README.mdandREADME.zh-CN.mddescribe what the app does, how to install and open it, the tested environment, and exactly what it reads, writes, calls and stores.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.