slashvibe-mcp 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/auth-store.js +4 -4
- package/cli.js +43 -4
- package/package.json +1 -1
- package/setup.js +8 -5
- package/store/api.js +2 -2
- package/tools/init.js +2 -2
package/README.md
CHANGED
|
@@ -14,7 +14,11 @@ npx slashvibe-mcp
|
|
|
14
14
|
|
|
15
15
|
It configures your coding agent, opens GitHub to sign you in (your GitHub username becomes
|
|
16
16
|
your @handle), and installs the hooks that let messages reach you in Claude Code. Then
|
|
17
|
-
restart your coding session
|
|
17
|
+
restart your coding session and say `what's waiting on /vibe`.
|
|
18
|
+
|
|
19
|
+
Run it in your own terminal. If your coding agent is running it for you, have it run
|
|
20
|
+
`npx slashvibe-mcp setup` instead: without a terminal the bare command starts the server
|
|
21
|
+
and installs nothing.
|
|
18
22
|
|
|
19
23
|
## What it is like
|
|
20
24
|
|
|
@@ -83,7 +87,7 @@ the scheduler lease") and it sets it; nothing is taken from your repository.
|
|
|
83
87
|
|
|
84
88
|
## The whole surface
|
|
85
89
|
|
|
86
|
-
Eight tools, for the agent:
|
|
90
|
+
Eight tools, for the agent (plus `vibe_init` and `vibe_token`, which only handle sign-in):
|
|
87
91
|
|
|
88
92
|
| tool | what it does |
|
|
89
93
|
|---|---|
|
package/auth-store.js
CHANGED
|
@@ -126,10 +126,10 @@ function hydrate() {
|
|
|
126
126
|
|
|
127
127
|
_hydrated = true;
|
|
128
128
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
console.error('[auth-store] Hydrated: no token');
|
|
129
|
+
// Diagnostic only. Unconditional, this was the first line a newcomer read
|
|
130
|
+
// when they ran the install command.
|
|
131
|
+
if (process.env.VIBE_DEBUG) {
|
|
132
|
+
console.error(_token ? '[auth-store] Hydrated: @' + _handle : '[auth-store] Hydrated: no token');
|
|
133
133
|
}
|
|
134
134
|
} catch (e) {
|
|
135
135
|
console.error('[auth-store] Hydration failed:', e.message);
|
package/cli.js
CHANGED
|
@@ -14,7 +14,31 @@
|
|
|
14
14
|
|
|
15
15
|
const args = process.argv.slice(2);
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
const COMMANDS = ['setup', 'hook', 'trust', 'untrust', 'lines', 'quiet', 'unquiet', 'mute', 'unmute'];
|
|
18
|
+
const USAGE = `slashvibe-mcp: telepathic messaging, inside your coding agent
|
|
19
|
+
|
|
20
|
+
npx slashvibe-mcp setup install: configure your coding agent and sign in with GitHub
|
|
21
|
+
npx slashvibe-mcp hook status are the Claude Code hooks installed (also: install, uninstall)
|
|
22
|
+
npx slashvibe-mcp trust @handle open a line with someone you trust (close: untrust @handle)
|
|
23
|
+
npx slashvibe-mcp lines who you have an open line with
|
|
24
|
+
npx slashvibe-mcp quiet nothing reaches you while you work (undo: unquiet)
|
|
25
|
+
npx slashvibe-mcp mute @handle one person stops surfacing (undo: unmute @handle)
|
|
26
|
+
|
|
27
|
+
With no command it sets up on first run in a terminal; a coding agent starts it as an MCP server.
|
|
28
|
+
https://github.com/VibeCodingInc/vibe-mcp#readme`;
|
|
29
|
+
|
|
30
|
+
if (['help', '--help', '-h'].includes(args[0])) {
|
|
31
|
+
process.stdout.write(`${USAGE}\n`);
|
|
32
|
+
} else if (['--version', '-v', 'version'].includes(args[0])) {
|
|
33
|
+
process.stdout.write(`${require('./package.json').version}\n`);
|
|
34
|
+
} else if (args[0] && process.stdin.isTTY && !COMMANDS.includes(args[0]) && !args.includes('setup')) {
|
|
35
|
+
// A person typed something we do not know. This used to fall through to the
|
|
36
|
+
// full setup: "--help" wrote agent configs and opened GitHub in a browser.
|
|
37
|
+
// Only on a terminal: a host that launches the server with arguments of its
|
|
38
|
+
// own must still get the server.
|
|
39
|
+
process.stderr.write(`Unknown command: ${args[0]}\n\n${USAGE}\n`);
|
|
40
|
+
process.exitCode = 1;
|
|
41
|
+
} else if (args[0] === 'hook') {
|
|
18
42
|
require('./hook-cli')
|
|
19
43
|
.run(args.slice(1))
|
|
20
44
|
.catch((error) => {
|
|
@@ -31,7 +55,11 @@ if (args[0] === 'hook') {
|
|
|
31
55
|
const line = require('./line');
|
|
32
56
|
const say = (t) => process.stdout.write(`${t}\n`);
|
|
33
57
|
try {
|
|
34
|
-
if (
|
|
58
|
+
if (['trust', 'untrust'].includes(args[0]) && args.length > 2) {
|
|
59
|
+
// One handle, exactly as typed. "trust @sam and @ada" must not quietly
|
|
60
|
+
// open a line with whoever the first word happens to name.
|
|
61
|
+
throw new Error(`One handle at a time: npx slashvibe-mcp ${args[0]} @handle`);
|
|
62
|
+
} else if (args[0] === 'trust' && args[1]) {
|
|
35
63
|
const h = line.open(args[1]);
|
|
36
64
|
say(`Open line with @${h}.`);
|
|
37
65
|
say(`Your agent may now ask @${h}'s agent a question from your work, and answer theirs from yours, without stopping you. It is told to give information about the work only; the code caps it at ${line.MAX_PER_HOUR} messages an hour, refuses anything shaped like a credential, and marks each message as your agent's, unread by you. You are told what was said. It works both ways only if @${h} opens one with you.`);
|
|
@@ -102,10 +130,21 @@ if (args[0] === 'hook') {
|
|
|
102
130
|
console.log('Commands:');
|
|
103
131
|
console.log(' npx slashvibe-mcp setup — re-run setup wizard');
|
|
104
132
|
console.log('');
|
|
105
|
-
console.log('In
|
|
133
|
+
console.log('In your coding agent, say "what\'s waiting on /vibe" to get started.');
|
|
106
134
|
process.exit(0);
|
|
107
135
|
}
|
|
108
136
|
} else {
|
|
109
|
-
// Running as MCP server (stdin is a pipe from Claude Code)
|
|
137
|
+
// Running as MCP server (stdin is a pipe from Claude Code).
|
|
138
|
+
//
|
|
139
|
+
// The same shape is an agent running the install line for its person from a
|
|
140
|
+
// shell tool: no terminal, so no setup, and until now no word of why. Say it
|
|
141
|
+
// once on stderr (a host ignores it; an agent's shell shows it). Only before
|
|
142
|
+
// first sign-in, so a working install stays silent.
|
|
143
|
+
try {
|
|
144
|
+
const config = require('./config');
|
|
145
|
+
if (!config.isInitialized() && !config.getAuthToken()) {
|
|
146
|
+
process.stderr.write('slashvibe-mcp: no terminal here, so this started as an MCP server and is waiting for a coding agent. To install /vibe, run: npx slashvibe-mcp setup\n');
|
|
147
|
+
}
|
|
148
|
+
} catch {}
|
|
110
149
|
require('./index.js');
|
|
111
150
|
}
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -40,7 +40,7 @@ const API_BASE = 'https://www.slashvibe.dev';
|
|
|
40
40
|
function printBanner() {
|
|
41
41
|
console.log(`
|
|
42
42
|
${colors.green} █░█ █ █▄▄ █▀▀${colors.reset}
|
|
43
|
-
${colors.green} ▀▄▀ █ █▄█ ██▄${colors.reset} ${colors.dim}
|
|
43
|
+
${colors.green} ▀▄▀ █ █▄█ ██▄${colors.reset} ${colors.dim}telepathic messaging, inside your coding agent${colors.reset}
|
|
44
44
|
──────────────────────────────────────────────────
|
|
45
45
|
`);
|
|
46
46
|
}
|
|
@@ -523,8 +523,6 @@ async function setup() {
|
|
|
523
523
|
console.log(`${colors.dim} 1. Check your internet connection${colors.reset}`);
|
|
524
524
|
console.log(`${colors.dim} 2. Try: ${colors.cyan}curl -s https://www.slashvibe.dev/api/health${colors.reset}`);
|
|
525
525
|
console.log(`${colors.dim} 3. If that works, try setup again${colors.reset}`);
|
|
526
|
-
console.log('');
|
|
527
|
-
console.log(`${colors.dim} Status page: ${colors.cyan}slashvibe.dev/status${colors.reset}`);
|
|
528
526
|
process.exit(1);
|
|
529
527
|
}
|
|
530
528
|
|
|
@@ -545,6 +543,10 @@ async function setup() {
|
|
|
545
543
|
oauth = await beginOAuth({ actorAware: true });
|
|
546
544
|
openBrowser(oauth.loginUrl);
|
|
547
545
|
console.log(`${colors.dim} → Waiting for authentication...${colors.reset}`);
|
|
546
|
+
// Always say where to go. The browser may have opened on a screen nobody is
|
|
547
|
+
// looking at (SSH), or not at all, and "waiting" with no link is a dead end.
|
|
548
|
+
console.log(`${colors.dim} → If no browser opened, open this to sign in:${colors.reset}`);
|
|
549
|
+
console.log(` ${colors.cyan}${oauth.loginUrl}${colors.reset}`);
|
|
548
550
|
|
|
549
551
|
const authResult = await oauth.waitForCallback();
|
|
550
552
|
|
|
@@ -580,7 +582,8 @@ async function setup() {
|
|
|
580
582
|
|
|
581
583
|
console.log(`${colors.bold} Quick start:${colors.reset}`);
|
|
582
584
|
console.log(`${colors.dim} 1. Restart your coding agent${detected.length > 1 ? `s (${detected.join(', ')})` : ''}${colors.reset}`);
|
|
583
|
-
console.log(`${colors.dim} 2. Say: "
|
|
585
|
+
console.log(`${colors.dim} 2. Say: "what's waiting on /vibe" to see who has written to you${colors.reset}`);
|
|
586
|
+
console.log(`${colors.dim} or: "message @their-handle: ..." to someone you already know${colors.reset}`);
|
|
584
587
|
// Receiving is the product: a reply has to reach you while you work, not
|
|
585
588
|
// when you remember to ask. So the hooks are installed here, by default,
|
|
586
589
|
// for Claude Code — stated plainly, with the one command that removes them.
|
|
@@ -644,7 +647,7 @@ async function setup() {
|
|
|
644
647
|
}
|
|
645
648
|
if (oauth && err.message !== 'AUTH_TIMEOUT') await oauth.cancel();
|
|
646
649
|
console.log('');
|
|
647
|
-
console.log(`${colors.dim} Need help?
|
|
650
|
+
console.log(`${colors.dim} Need help? https://github.com/VibeCodingInc/vibe-mcp/issues${colors.reset}`);
|
|
648
651
|
// On timeout the shared listener remains live during its grace window so a
|
|
649
652
|
// late browser callback gets the explanatory page instead of a refusal.
|
|
650
653
|
process.exitCode = 1;
|
package/store/api.js
CHANGED
|
@@ -515,9 +515,9 @@ async function sendMessage(from, to, body, type = 'dm', payload = null, options
|
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
|
|
518
|
+
// Never log the request or the response here: both carry the message text,
|
|
519
|
+
// and a host keeps an MCP server's stderr in its log files.
|
|
519
520
|
const result = await request('POST', endpoint, data);
|
|
520
|
-
console.error('[vibe] Got result:', JSON.stringify(result).substring(0, 300));
|
|
521
521
|
|
|
522
522
|
// Handle auth errors
|
|
523
523
|
if (!result.success && result.error?.includes('Authentication')) {
|
package/tools/init.js
CHANGED
|
@@ -60,9 +60,9 @@ function formatPresenceLabel({ humans = 0, agents = 0 } = {}) {
|
|
|
60
60
|
*/
|
|
61
61
|
function generatePreAuthBanner(presence) {
|
|
62
62
|
const label = formatPresenceLabel(presence);
|
|
63
|
-
const onlineText = label ? `🟢 ${label}` : '
|
|
63
|
+
const onlineText = label ? `🟢 ${label}` : 'not signed in yet';
|
|
64
64
|
return `
|
|
65
|
-
█░█ █ █▄▄ █▀▀
|
|
65
|
+
█░█ █ █▄▄ █▀▀ telepathic messaging
|
|
66
66
|
▀▄▀ █ █▄█ ██▄ ${onlineText}
|
|
67
67
|
──────────────────────────────────────────────────
|
|
68
68
|
`;
|