superbased 1.6.2 → 1.6.3
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/SUPERBASED_SKILL.md +28 -38
- package/mcp-server/dist/index.js +26 -26
- package/package.json +1 -1
package/SUPERBASED_SKILL.md
CHANGED
|
@@ -1,41 +1,31 @@
|
|
|
1
|
-
# SuperBased — AI
|
|
2
|
-
|
|
3
|
-
SuperBased
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"command": "node",
|
|
30
|
-
"args": ["/path/to/superbased/mcp-server/dist/index.js"]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
Check `~/.superbased/mcp.json` for the correct path after starting SuperBased. Restart your editor after creating the file.
|
|
36
|
-
|
|
37
|
-
### 3. Verify connection
|
|
38
|
-
Ask: "Check the SuperBased health status" — the agent should call `superbased_health` and show version, uptime, and features.
|
|
1
|
+
# SuperBased — Screen Capture & AI Tools via MCP
|
|
2
|
+
|
|
3
|
+
SuperBased gives you eyes on the user's screen. Use it to see what's visible, capture screenshots, analyze UI, extract text, record sessions, monitor for errors, and more — all via MCP tools.
|
|
4
|
+
|
|
5
|
+
## When to Use SuperBased
|
|
6
|
+
|
|
7
|
+
**You SHOULD use SuperBased tools when:**
|
|
8
|
+
- You need to **see what's on the user's screen** → `superbased_capture_image`
|
|
9
|
+
- You need to **list open windows** or find a specific app → `superbased_window_list`
|
|
10
|
+
- You need to **capture a specific window** (even if minimized) → `superbased_capture_image` with `window` param
|
|
11
|
+
- You need to **read text from the screen** → `superbased_ocr` or `superbased_ai` with `/extract`
|
|
12
|
+
- You need to **check what the user is looking at** → `superbased_capture_image` with `resolution=half`
|
|
13
|
+
- You need to **verify a UI change** after code edits → `superbased_capture_image`
|
|
14
|
+
- You need to **record the screen** over time → `superbased_recording` with `mode=smart`
|
|
15
|
+
- You need to **watch the screen for errors** → `superbased_recording` with `mode=monitor`
|
|
16
|
+
- You need to **see an image the user copied** → `superbased_clipboard` with `action=readImage`
|
|
17
|
+
- You need to **dictate or listen to the user** → `superbased_dictate` with `mic=true`
|
|
18
|
+
|
|
19
|
+
**Quick decision guide:**
|
|
20
|
+
| I need to... | Use this tool |
|
|
21
|
+
|---|---|
|
|
22
|
+
| See the screen | `superbased_capture_image` |
|
|
23
|
+
| List windows | `superbased_window_list` |
|
|
24
|
+
| Read text from screen | `superbased_ai instruction="/extract"` |
|
|
25
|
+
| Record screen changes | `superbased_recording action=start mode=smart` |
|
|
26
|
+
| Monitor for errors | `superbased_recording action=start mode=monitor` |
|
|
27
|
+
| See clipboard image | `superbased_clipboard action=readImage` |
|
|
28
|
+
| Listen via mic | `superbased_dictate mic=true` |
|
|
39
29
|
|
|
40
30
|
---
|
|
41
31
|
|
package/mcp-server/dist/index.js
CHANGED
|
@@ -144,7 +144,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
144
144
|
version: '1.0.0',
|
|
145
145
|
});
|
|
146
146
|
// ── Tool: superbased_capture ──
|
|
147
|
-
server.tool('superbased_capture', {
|
|
147
|
+
server.tool('superbased_capture', 'Take a screenshot (returns metadata only, not the image). Use superbased_capture_image instead if you need to SEE the screen.', {
|
|
148
148
|
mode: zod_1.z.enum(['fullscreen', 'region', 'active_window']).describe('Capture mode'),
|
|
149
149
|
x: zod_1.z.number().optional().describe('Left coordinate for region capture'),
|
|
150
150
|
y: zod_1.z.number().optional().describe('Top coordinate for region capture'),
|
|
@@ -181,7 +181,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
// ── Tool: superbased_ai ──
|
|
184
|
-
server.tool('superbased_ai', {
|
|
184
|
+
server.tool('superbased_ai', 'Send a screenshot to AI for analysis. Auto-captures the screen if no image is provided. Use when you need AI to analyze, explain, or extract information from what is on the user\'s screen.', {
|
|
185
185
|
instruction: zod_1.z.string().describe('What to do with the image. Slash commands: /extract, /summarize, /code, /explain, /translate, /table, /edit, /reformat. Or free text.'),
|
|
186
186
|
captureId: zod_1.z.number().optional().describe('ID of an existing capture from the gallery'),
|
|
187
187
|
screenshotPath: zod_1.z.string().optional().describe('Path to a screenshot file on disk'),
|
|
@@ -205,7 +205,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
// ── Tool: superbased_ocr ──
|
|
208
|
-
server.tool('superbased_ocr', {
|
|
208
|
+
server.tool('superbased_ocr', 'Extract text from a screenshot using local OCR (Tesseract). Use when you need to read text from an image without sending it to an external AI.', {
|
|
209
209
|
screenshotPath: zod_1.z.string().optional().describe('Path to a screenshot file on disk'),
|
|
210
210
|
captureId: zod_1.z.number().optional().describe('ID of an existing capture — loads the image from gallery'),
|
|
211
211
|
}, async ({ screenshotPath, captureId }) => {
|
|
@@ -236,7 +236,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
// ── Tool: superbased_gallery ──
|
|
239
|
-
server.tool('superbased_gallery', {
|
|
239
|
+
server.tool('superbased_gallery', 'Browse and search past screenshots. Use when you need to find a previously captured image or check capture history.', {
|
|
240
240
|
action: zod_1.z.enum(['list', 'get', 'search', 'stats']).describe('list=recent captures, get=specific capture, search=full-text, stats=statistics'),
|
|
241
241
|
captureId: zod_1.z.number().optional().describe('Capture ID (for get action)'),
|
|
242
242
|
query: zod_1.z.string().optional().describe('Search query (for search action)'),
|
|
@@ -275,7 +275,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
// ── Tool: superbased_gallery_update ──
|
|
278
|
-
server.tool('superbased_gallery_update', {
|
|
278
|
+
server.tool('superbased_gallery_update', 'Update tags or notes on a saved capture.', {
|
|
279
279
|
captureId: zod_1.z.number().describe('Capture ID to update'),
|
|
280
280
|
tags: zod_1.z.string().optional().describe('Comma-separated tags (replaces existing tags)'),
|
|
281
281
|
notes: zod_1.z.string().optional().describe('Notes text (replaces existing notes)'),
|
|
@@ -301,7 +301,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
301
301
|
}
|
|
302
302
|
});
|
|
303
303
|
// ── Tool: superbased_settings ──
|
|
304
|
-
server.tool('superbased_settings', {
|
|
304
|
+
server.tool('superbased_settings', 'View or change SuperBased settings (theme, provider, model, screenshot folder).', {
|
|
305
305
|
action: zod_1.z.enum(['get', 'set', 'get_provider']).describe('get=all settings, set=update a setting, get_provider=current AI provider'),
|
|
306
306
|
key: zod_1.z.string().optional().describe('Setting key (for set action). Common: theme, activeProvider, activeModel, screenshotFolder'),
|
|
307
307
|
value: zod_1.z.string().optional().describe('New value (for set action). Use JSON for complex values.'),
|
|
@@ -344,7 +344,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
346
|
// ── Tool: superbased_presets ──
|
|
347
|
-
server.tool('superbased_presets', {
|
|
347
|
+
server.tool('superbased_presets', 'Manage saved AI instruction presets (templates with optional keyboard shortcuts).', {
|
|
348
348
|
action: zod_1.z.enum(['list', 'create', 'update', 'delete']).describe('list, create, update, or delete a preset'),
|
|
349
349
|
id: zod_1.z.number().optional().describe('Preset ID (for update/delete)'),
|
|
350
350
|
name: zod_1.z.string().optional().describe('Preset name (for create/update)'),
|
|
@@ -387,7 +387,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
// ── Tool: superbased_recording ──
|
|
390
|
-
server.tool('superbased_recording', {
|
|
390
|
+
server.tool('superbased_recording', 'Record the screen over time. Use smart mode for change-detection capture, monitor mode for AI-powered screen watching that alerts on errors/issues. Works in headless and desktop.', {
|
|
391
391
|
action: zod_1.z.enum(['start', 'stop', 'pause', 'resume', 'status', 'capture', 'get_analysis']).describe('Recording action'),
|
|
392
392
|
name: zod_1.z.string().optional().describe('Session name (for start)'),
|
|
393
393
|
profile: zod_1.z.enum(['automated_test', 'bug_report', 'user_journey', 'compliance']).optional().describe('Recording profile (for start)'),
|
|
@@ -461,7 +461,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
461
461
|
}
|
|
462
462
|
});
|
|
463
463
|
// ── Tool: superbased_sessions ──
|
|
464
|
-
server.tool('superbased_sessions', {
|
|
464
|
+
server.tool('superbased_sessions', 'List past recording sessions or get frames from a specific session.', {
|
|
465
465
|
action: zod_1.z.enum(['list', 'frames']).describe('list=all sessions, frames=frames for a session'),
|
|
466
466
|
sessionId: zod_1.z.string().optional().describe('Session ID (required for frames action)'),
|
|
467
467
|
}, async ({ action, sessionId }) => {
|
|
@@ -482,7 +482,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
// ── Tool: superbased_export ──
|
|
485
|
-
server.tool('superbased_export', {
|
|
485
|
+
server.tool('superbased_export', 'Export a recording session as ZIP, Markdown, PDF, HTML, or GIF.', {
|
|
486
486
|
sessionId: zod_1.z.string().describe('Session ID to export'),
|
|
487
487
|
format: zod_1.z.enum(['zip', 'markdown', 'pdf', 'html', 'gif']).describe('Export format'),
|
|
488
488
|
output: zod_1.z.string().optional().describe('Output file path (optional, defaults to exports folder)'),
|
|
@@ -497,7 +497,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
497
497
|
}
|
|
498
498
|
});
|
|
499
499
|
// ── Tool: superbased_compress_text ──
|
|
500
|
-
server.tool('superbased_compress_text', {
|
|
500
|
+
server.tool('superbased_compress_text', 'Convert large text to token-efficient images. Saves tokens when sending long text (logs, code, docs) to vision models.', {
|
|
501
501
|
text: zod_1.z.string().describe('Text content to compress into optimized screenshot images'),
|
|
502
502
|
preset: zod_1.z.enum(['compact', 'standard', 'tall', 'wide', 'full', 'auto']).optional().describe('Resolution preset (default: standard)'),
|
|
503
503
|
columns: zod_1.z.union([zod_1.z.literal('auto'), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]).optional().describe('Column layout (default: auto)'),
|
|
@@ -529,7 +529,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
529
529
|
}
|
|
530
530
|
});
|
|
531
531
|
// ── Tool: superbased_capture_image ──
|
|
532
|
-
server.tool('superbased_capture_image', {
|
|
532
|
+
server.tool('superbased_capture_image', 'Capture the screen and return the image inline so you can SEE it. This is the primary tool for looking at the user\'s screen, checking UI state, reading what\'s visible, or verifying visual changes. Use this whenever you need to see what the user sees.', {
|
|
533
533
|
mode: zod_1.z.enum(['fullscreen', 'region', 'active_window']).default('fullscreen').describe('Capture mode'),
|
|
534
534
|
resolution: zod_1.z.enum(['full', 'high', 'half', 'quarter', 'thumbnail']).default('half').describe('Image resolution (half saves ~4x tokens vs full)'),
|
|
535
535
|
window: zod_1.z.string().optional().describe('Capture a specific window by name substring (use superbased_window_list to find names). Activates the window, captures, then restores focus. Works even on minimized windows.'),
|
|
@@ -558,7 +558,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
558
558
|
}
|
|
559
559
|
});
|
|
560
560
|
// ── Tool: superbased_gallery_image ──
|
|
561
|
-
server.tool('superbased_gallery_image', {
|
|
561
|
+
server.tool('superbased_gallery_image', 'Retrieve a previously saved capture image from the gallery so you can see it.', {
|
|
562
562
|
captureId: zod_1.z.number().describe('Gallery capture ID'),
|
|
563
563
|
resolution: zod_1.z.enum(['full', 'high', 'half', 'quarter', 'thumbnail']).default('half').describe('Image resolution'),
|
|
564
564
|
}, async ({ captureId, resolution }) => {
|
|
@@ -577,7 +577,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
577
577
|
}
|
|
578
578
|
});
|
|
579
579
|
// ── Tool: superbased_diff ──
|
|
580
|
-
server.tool('superbased_diff', {
|
|
580
|
+
server.tool('superbased_diff', 'Compare two recording sessions for visual differences. Use for visual regression testing.', {
|
|
581
581
|
baselineSessionId: zod_1.z.string().describe('Baseline recording session ID'),
|
|
582
582
|
currentSessionId: zod_1.z.string().describe('Current recording session ID'),
|
|
583
583
|
}, async ({ baselineSessionId, currentSessionId }) => {
|
|
@@ -590,7 +590,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
590
590
|
}
|
|
591
591
|
});
|
|
592
592
|
// ── Tool: superbased_health ──
|
|
593
|
-
server.tool('superbased_health', {}, async () => {
|
|
593
|
+
server.tool('superbased_health', 'Check if SuperBased is running, its version, uptime, and available features.', {}, async () => {
|
|
594
594
|
try {
|
|
595
595
|
const res = await client.health();
|
|
596
596
|
return { content: [{ type: 'text', text: formatResponse(res.data) }] };
|
|
@@ -600,7 +600,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
600
600
|
}
|
|
601
601
|
});
|
|
602
602
|
// ── Tool: superbased_redact ──
|
|
603
|
-
server.tool('superbased_redact', {
|
|
603
|
+
server.tool('superbased_redact', 'Auto-redact secrets (API keys, tokens) and PII (emails, phones) from a screenshot before sharing.', {
|
|
604
604
|
captureId: zod_1.z.number().optional().describe('Capture to redact'),
|
|
605
605
|
screenshotPath: zod_1.z.string().optional().describe('Path to image file'),
|
|
606
606
|
secrets: zod_1.z.boolean().default(true).describe('Redact API keys, tokens, passwords'),
|
|
@@ -621,7 +621,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
621
621
|
}
|
|
622
622
|
});
|
|
623
623
|
// ── Tool: superbased_auth ──
|
|
624
|
-
server.tool('superbased_auth', {
|
|
624
|
+
server.tool('superbased_auth', 'Check SuperBased authentication status (signed in, email, plan).', {
|
|
625
625
|
action: zod_1.z.enum(['status']).default('status').describe('Auth action (status)'),
|
|
626
626
|
}, async () => {
|
|
627
627
|
try {
|
|
@@ -633,7 +633,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
633
633
|
}
|
|
634
634
|
});
|
|
635
635
|
// ── Tool: superbased_license ──
|
|
636
|
-
server.tool('superbased_license', {}, async () => {
|
|
636
|
+
server.tool('superbased_license', 'View plan limits, feature gates, and device info.', {}, async () => {
|
|
637
637
|
try {
|
|
638
638
|
const res = await client.licenseInfo();
|
|
639
639
|
return { content: [{ type: 'text', text: formatResponse(res.data) }] };
|
|
@@ -643,7 +643,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
643
643
|
}
|
|
644
644
|
});
|
|
645
645
|
// ── Tool: superbased_transcribe ──
|
|
646
|
-
server.tool('superbased_transcribe', {
|
|
646
|
+
server.tool('superbased_transcribe', 'Transcribe an audio file to text using Whisper (raw, no cleanup). Use superbased_dictate for cleanup + mic support.', {
|
|
647
647
|
audioPath: zod_1.z.string().optional().describe('Path to audio file (wav, mp3, webm, etc.)'),
|
|
648
648
|
audioBase64: zod_1.z.string().optional().describe('Base64-encoded audio data'),
|
|
649
649
|
language: zod_1.z.string().optional().describe('BCP 47 language code (e.g. en-US)'),
|
|
@@ -657,7 +657,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
657
657
|
}
|
|
658
658
|
});
|
|
659
659
|
// ── Tool: superbased_ai_usage ──
|
|
660
|
-
server.tool('superbased_ai_usage', {}, async () => {
|
|
660
|
+
server.tool('superbased_ai_usage', 'Check daily AI quota usage (calls used, tokens consumed, limits).', {}, async () => {
|
|
661
661
|
try {
|
|
662
662
|
const res = await client.aiUsage();
|
|
663
663
|
return { content: [{ type: 'text', text: formatResponse(res.data) }] };
|
|
@@ -677,7 +677,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
677
677
|
}
|
|
678
678
|
});
|
|
679
679
|
// ── Tool: superbased_dictation_history ──
|
|
680
|
-
server.tool('superbased_dictation_history', {
|
|
680
|
+
server.tool('superbased_dictation_history', 'Query past voice transcriptions.', {
|
|
681
681
|
limit: zod_1.z.number().default(20).describe('Max entries to return'),
|
|
682
682
|
}, async ({ limit }) => {
|
|
683
683
|
try {
|
|
@@ -689,7 +689,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
691
|
// ── Tool: superbased_describe_frames ──
|
|
692
|
-
server.tool('superbased_describe_frames', {
|
|
692
|
+
server.tool('superbased_describe_frames', 'AI-describe each frame in a recording session (UI state, visible elements, changes).', {
|
|
693
693
|
sessionId: zod_1.z.string().describe('Recording session ID'),
|
|
694
694
|
limit: zod_1.z.number().default(20).describe('Max frames to describe'),
|
|
695
695
|
}, async ({ sessionId, limit }) => {
|
|
@@ -702,7 +702,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
702
702
|
}
|
|
703
703
|
});
|
|
704
704
|
// ── Tool: superbased_narrate ──
|
|
705
|
-
server.tool('superbased_narrate', {
|
|
705
|
+
server.tool('superbased_narrate', 'Generate a prose narrative summary of a recording session from frame descriptions.', {
|
|
706
706
|
sessionId: zod_1.z.string().describe('Recording session ID'),
|
|
707
707
|
descriptions: zod_1.z.array(zod_1.z.object({
|
|
708
708
|
frameNumber: zod_1.z.number(),
|
|
@@ -718,7 +718,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
718
718
|
}
|
|
719
719
|
});
|
|
720
720
|
// ── Tool: superbased_baseline ──
|
|
721
|
-
server.tool('superbased_baseline', {
|
|
721
|
+
server.tool('superbased_baseline', 'Manage workflow baselines for visual regression testing (set, get, or list history).', {
|
|
722
722
|
action: zod_1.z.enum(['set', 'get', 'history']).describe('Baseline action'),
|
|
723
723
|
workflowName: zod_1.z.string().describe('Workflow name (e.g. "checkout-flow")'),
|
|
724
724
|
sessionId: zod_1.z.string().optional().describe('Session ID (required for set)'),
|
|
@@ -754,7 +754,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
756
|
// ── Tool: superbased_annotate ──
|
|
757
|
-
server.tool('superbased_annotate', {
|
|
757
|
+
server.tool('superbased_annotate', 'Add visual annotations to a capture: rectangles, highlights, blur regions, text labels, or arrows. Use for bug reports or visual callouts.', {
|
|
758
758
|
captureId: zod_1.z.number().describe('Capture to annotate'),
|
|
759
759
|
annotations: zod_1.z.array(zod_1.z.object({
|
|
760
760
|
type: zod_1.z.enum(['rectangle', 'highlight', 'blur', 'text', 'arrow']),
|
|
@@ -781,7 +781,7 @@ async function startMcpServer(port = 47592, projectDir) {
|
|
|
781
781
|
}
|
|
782
782
|
});
|
|
783
783
|
// ── Tool: superbased_clipboard ──
|
|
784
|
-
server.tool('superbased_clipboard', {
|
|
784
|
+
server.tool('superbased_clipboard', 'Read or write the system clipboard. Use readImage to see an image the user copied (e.g. a screenshot from another app).', {
|
|
785
785
|
action: zod_1.z.enum(['read', 'write', 'readImage']).describe('Clipboard action'),
|
|
786
786
|
text: zod_1.z.string().optional().describe('Text to write (for write action)'),
|
|
787
787
|
}, async ({ action, text }) => {
|