@innerstacklabs/neuralingual-mcp 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 innerstacklabs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # neuralingual-mcp
2
+
3
+ CLI for [Neuralingual](https://neuralingual.com) — AI-powered affirmation practice sets.
4
+
5
+ Create personalized affirmation sets from natural language intent, render them as audio with premium voices, and manage your library from the command line.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @innerstacklabs/neuralingual-mcp
11
+ ```
12
+
13
+ Or run directly with npx:
14
+
15
+ ```bash
16
+ npx @innerstacklabs/neuralingual-mcp login
17
+ ```
18
+
19
+ ## Quick Start
20
+
21
+ ```bash
22
+ # Log in with Apple Sign-In (opens browser)
23
+ neuralingual login
24
+
25
+ # Create a practice set from intent text
26
+ neuralingual create "I want to feel confident before presentations"
27
+
28
+ # Browse your library
29
+ neuralingual library
30
+
31
+ # Get detailed info on a set
32
+ neuralingual info <id>
33
+
34
+ # Configure rendering
35
+ neuralingual voices # browse available voices
36
+ neuralingual render configure <id> --voice <voice-id> --context general --duration 10
37
+
38
+ # Render and play
39
+ neuralingual render start <id> --wait
40
+ neuralingual play <id> --open
41
+ ```
42
+
43
+ ## Commands
44
+
45
+ | Command | Description |
46
+ |---|---|
47
+ | `login` | Log in via Apple Sign-In |
48
+ | `logout` | Log out and clear tokens |
49
+ | `whoami` | Show current user info |
50
+ | `library` | List your practice sets |
51
+ | `search <query>` | Search by title or context |
52
+ | `create <text>` | Create a new practice set |
53
+ | `info <id>` | Show detailed set info |
54
+ | `rename <id>` | Rename a practice set |
55
+ | `delete <id>` | Delete a practice set |
56
+ | `render configure` | Configure render settings |
57
+ | `render start` | Start a render job |
58
+ | `render status` | Check render progress |
59
+ | `rerender <id>` | Re-render with current config |
60
+ | `voices` | List available voices |
61
+ | `voices preview <id>` | Preview a voice |
62
+ | `play <id>` | Download/play rendered audio |
63
+ | `download <job-id>` | Download audio as MP3 |
64
+ | `credits` | Show credit balance |
65
+ | `share <id>` | Generate a share link |
66
+ | `unshare <id>` | Revoke a share link |
67
+ | `set export <id>` | Export set as YAML |
68
+ | `set edit <id>` | Edit set in $EDITOR |
69
+ | `set apply <id>` | Apply YAML changes |
70
+ | `set create` | Create set from YAML |
71
+ | `settings` | View/update preferences |
72
+
73
+ ## License
74
+
75
+ MIT
@@ -0,0 +1,15 @@
1
+ import type { ApiEnv } from './types.js';
2
+ export interface AuthData {
3
+ env: ApiEnv;
4
+ accessToken: string;
5
+ refreshToken: string;
6
+ userId: string;
7
+ email: string | null;
8
+ }
9
+ /** Load saved auth tokens. Returns null if not logged in. */
10
+ export declare function loadAuth(): AuthData | null;
11
+ /** Save auth tokens to disk. */
12
+ export declare function saveAuth(data: AuthData): void;
13
+ /** Clear saved auth tokens (logout). */
14
+ export declare function clearAuth(): void;
15
+ //# sourceMappingURL=auth-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-store.d.ts","sourceRoot":"","sources":["../src/auth-store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAKzC,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,6DAA6D;AAC7D,wBAAgB,QAAQ,IAAI,QAAQ,GAAG,IAAI,CAS1C;AAED,gCAAgC;AAChC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAG7C;AAED,wCAAwC;AACxC,wBAAgB,SAAS,IAAI,IAAI,CAMhC"}
@@ -0,0 +1,33 @@
1
+ import { readFileSync, writeFileSync, mkdirSync, unlinkSync } from 'fs';
2
+ import { join } from 'path';
3
+ import { homedir } from 'os';
4
+ const CONFIG_DIR = join(homedir(), '.config', 'neuralingual');
5
+ const AUTH_FILE = join(CONFIG_DIR, 'auth.json');
6
+ /** Load saved auth tokens. Returns null if not logged in. */
7
+ export function loadAuth() {
8
+ try {
9
+ const raw = readFileSync(AUTH_FILE, 'utf8');
10
+ const data = JSON.parse(raw);
11
+ if (!data.accessToken || !data.refreshToken || !data.env)
12
+ return null;
13
+ return data;
14
+ }
15
+ catch {
16
+ return null;
17
+ }
18
+ }
19
+ /** Save auth tokens to disk. */
20
+ export function saveAuth(data) {
21
+ mkdirSync(CONFIG_DIR, { recursive: true });
22
+ writeFileSync(AUTH_FILE, JSON.stringify(data, null, 2) + '\n', { mode: 0o600 });
23
+ }
24
+ /** Clear saved auth tokens (logout). */
25
+ export function clearAuth() {
26
+ try {
27
+ unlinkSync(AUTH_FILE);
28
+ }
29
+ catch {
30
+ // File may not exist — that's fine
31
+ }
32
+ }
33
+ //# sourceMappingURL=auth-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-store.js","sourceRoot":"","sources":["../src/auth-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAG7B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;AAC9D,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAUhD,6DAA6D;AAC7D,MAAM,UAAU,QAAQ;IACtB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC5C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAa,CAAC;QACzC,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,GAAG;YAAE,OAAO,IAAI,CAAC;QACtE,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,gCAAgC;AAChC,MAAM,UAAU,QAAQ,CAAC,IAAc;IACrC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AAClF,CAAC;AAED,wCAAwC;AACxC,MAAM,UAAU,SAAS;IACvB,IAAI,CAAC;QACH,UAAU,CAAC,SAAS,CAAC,CAAC;IACxB,CAAC;IAAC,MAAM,CAAC;QACP,mCAAmC;IACrC,CAAC;AACH,CAAC"}
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}