@schematic-tech/super-mcp 0.1.1 → 0.1.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.
Files changed (28) hide show
  1. package/bin/super-mcp.mjs +16 -6
  2. package/lib/config.mjs +7 -1
  3. package/lib/dashboard.mjs +250 -0
  4. package/lib/server.mjs +87 -15
  5. package/package.json +4 -2
  6. package/public/_app/immutable/assets/0.BsBqVHHJ.css +2 -0
  7. package/public/_app/immutable/assets/ibm-plex-sans-latin-400-normal.CDDApCn2.woff2 +0 -0
  8. package/public/_app/immutable/assets/ibm-plex-sans-latin-400-normal.CYLoc0-x.woff +0 -0
  9. package/public/_app/immutable/assets/ibm-plex-sans-latin-500-normal.6ng42L7E.woff2 +0 -0
  10. package/public/_app/immutable/assets/ibm-plex-sans-latin-500-normal.BgVn5rGT.woff +0 -0
  11. package/public/_app/immutable/assets/ibm-plex-sans-latin-600-normal.Cu4Hd6ag.woff +0 -0
  12. package/public/_app/immutable/assets/ibm-plex-sans-latin-600-normal.CuJfVYMP.woff2 +0 -0
  13. package/public/_app/immutable/assets/instrument-sans-latin-ext-wght-normal.B5bTHO_g.woff2 +0 -0
  14. package/public/_app/immutable/assets/instrument-sans-latin-wght-normal.BbzFLZTg.woff2 +0 -0
  15. package/public/_app/immutable/assets/jetbrains-mono-latin-400-normal.6-qcROiO.woff +0 -0
  16. package/public/_app/immutable/assets/jetbrains-mono-latin-400-normal.V6pRDFza.woff2 +0 -0
  17. package/public/_app/immutable/chunks/BXv8KQAP.js +3 -0
  18. package/public/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  19. package/public/_app/immutable/chunks/QuO7UMw2.js +1 -0
  20. package/public/_app/immutable/chunks/xihTtKlq.js +1 -0
  21. package/public/_app/immutable/entry/app.3CN-niP6.js +2 -0
  22. package/public/_app/immutable/entry/start.Bk4Qwo2G.js +1 -0
  23. package/public/_app/immutable/nodes/0.H36oRvec.js +1 -0
  24. package/public/_app/immutable/nodes/1.CtJLvTYg.js +1 -0
  25. package/public/_app/immutable/nodes/2.D_zf8FIQ.js +2 -0
  26. package/public/_app/version.json +1 -0
  27. package/public/index.html +46 -0
  28. package/public/licenses.txt +296 -0
package/bin/super-mcp.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { serveStdio } from '@modelcontextprotocol/server/stdio';
3
+ import { Dashboard } from '../lib/dashboard.mjs';
3
4
  import { CliBridge } from '../lib/cli.mjs';
4
5
  import { clientConfiguration, configuration, HELP, PACKAGE } from '../lib/config.mjs';
5
6
  import { createServer } from '../lib/server.mjs';
@@ -14,19 +15,28 @@ try {
14
15
  const bridge = new CliBridge(options);
15
16
  const directory = await bridge.directory();
16
17
  if (options.printConfig) {
17
- process.stdout.write(`${JSON.stringify(clientConfiguration(options, directory), null, 2)}\n`);
18
+ process.stdout.write(
19
+ `${JSON.stringify(clientConfiguration(options, directory), null, 2)}\n`,
20
+ );
18
21
  } else {
19
- const handle = serveStdio(() => createServer(bridge, options), {
20
- onerror: () => console.error('Super MCP encountered a protocol error.'),
21
- });
22
+ const dashboard = new Dashboard(bridge);
23
+ const handle = options.dashboard
24
+ ? undefined
25
+ : serveStdio(() => createServer(bridge, { ...options, dashboard }), {
26
+ onerror: () => console.error('Super MCP encountered a protocol error.'),
27
+ });
22
28
  let closing;
23
29
  const close = () => {
24
- closing ??= Promise.allSettled([bridge.close(), handle.close()]);
30
+ closing ??= Promise.allSettled([dashboard.close(), bridge.close(), handle?.close()]);
25
31
  return closing;
26
32
  };
27
33
  process.once('SIGINT', close);
28
34
  process.once('SIGTERM', close);
29
- process.stdin.once('end', close);
35
+ if (options.dashboard) {
36
+ const shown = await dashboard.show();
37
+ console.error(`Super history: ${shown.url}`);
38
+ if (shown.message) console.error(shown.message);
39
+ } else process.stdin.once('end', close);
30
40
  }
31
41
  }
32
42
  } catch (error) {
package/lib/config.mjs CHANGED
@@ -17,12 +17,16 @@ export function configuration(args = process.argv.slice(2)) {
17
17
  'super-bin': { type: 'string' },
18
18
  'read-only': { type: 'boolean', default: false },
19
19
  'timeout-seconds': { type: 'string', default: '120' },
20
+ dashboard: { type: 'boolean', default: false },
20
21
  'print-config': { type: 'boolean', default: false },
21
22
  help: { type: 'boolean', short: 'h', default: false },
22
23
  version: { type: 'boolean', short: 'v', default: false },
23
24
  },
24
25
  });
25
- if (!/^[1-9]\d*$/.test(values['timeout-seconds']) || Number(values['timeout-seconds']) > 600) {
26
+ if (
27
+ !/^[1-9]\d*$/.test(values['timeout-seconds']) ||
28
+ Number(values['timeout-seconds']) > 600
29
+ ) {
26
30
  throw new Error('--timeout-seconds must be an integer from 1 to 600.');
27
31
  }
28
32
  return {
@@ -30,6 +34,7 @@ export function configuration(args = process.argv.slice(2)) {
30
34
  binary: values['super-bin'],
31
35
  readOnly: values['read-only'],
32
36
  timeoutMs: Number(values['timeout-seconds']) * 1000,
37
+ dashboard: values.dashboard,
33
38
  printConfig: values['print-config'],
34
39
  help: values.help,
35
40
  version: values.version,
@@ -45,6 +50,7 @@ Requires Super CLI ${MINIMUM_CLI_VERSION} or later. Run super login in your term
45
50
  --super-bin PATH Use a particular Super executable
46
51
  --read-only Expose inspection tools without starting checks or making changes
47
52
  --timeout-seconds N Interrupt a CLI command after 1–600 seconds (default: 120)
53
+ --dashboard Open live history in a browser without an MCP client
48
54
  --print-config Print MCP client JSON configuration and exit
49
55
  --version, -v Print the MCP sidecar version
50
56
  --help, -h Show this help
@@ -0,0 +1,250 @@
1
+ import { createServer } from 'node:http';
2
+ import { randomBytes, timingSafeEqual } from 'node:crypto';
3
+ import { readFile, realpath, stat } from 'node:fs/promises';
4
+ import path from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
+ import open, { apps } from 'open';
7
+
8
+ const PUBLIC = fileURLToPath(new URL('../public/', import.meta.url));
9
+ const TYPES = {
10
+ '.html': 'text/html; charset=utf-8',
11
+ '.js': 'text/javascript; charset=utf-8',
12
+ '.css': 'text/css; charset=utf-8',
13
+ '.json': 'application/json',
14
+ '.woff2': 'font/woff2',
15
+ '.woff': 'font/woff',
16
+ '.svg': 'image/svg+xml',
17
+ '.txt': 'text/plain; charset=utf-8',
18
+ };
19
+ const decimal = (value) =>
20
+ /^[1-9]\d{0,18}$/.test(value) && BigInt(value) <= 9223372036854775807n;
21
+
22
+ export async function launchBrowser(
23
+ url,
24
+ options,
25
+ { platform = process.platform, launch = open } = {},
26
+ ) {
27
+ if (platform !== 'darwin') {
28
+ try {
29
+ // Chromium-family browsers and Firefox honor this on Windows and Linux.
30
+ return await launch(url, {
31
+ ...options,
32
+ app: { name: apps.browser, arguments: ['--new-window'] },
33
+ });
34
+ } catch {
35
+ // Unrecognized default browsers still get the normal operating-system opener.
36
+ }
37
+ }
38
+ return launch(url, options);
39
+ }
40
+
41
+ export class Dashboard {
42
+ constructor(
43
+ bridge,
44
+ { openBrowser = launchBrowser, publicDirectory = PUBLIC, cacheMs = 2000 } = {},
45
+ ) {
46
+ this.bridge = bridge;
47
+ this.openBrowser = openBrowser;
48
+ this.publicDirectory = publicDirectory;
49
+ this.cacheMs = cacheMs;
50
+ this.token = randomBytes(32).toString('hex');
51
+ this.cache = new Map();
52
+ this.closed = false;
53
+ this.controller = new AbortController();
54
+ }
55
+
56
+ async start() {
57
+ if (this.closed) throw new Error('The dashboard is shutting down.');
58
+ this.starting ??= (async () => {
59
+ await stat(path.join(this.publicDirectory, 'index.html'));
60
+ this.directory = await this.bridge.directory();
61
+ const server = createServer((req, res) => {
62
+ this.handle(req, res).catch(() => {
63
+ if (!res.headersSent)
64
+ this.json(res, 503, {
65
+ error: 'Could not read Super history. Retry in a moment.',
66
+ });
67
+ else res.destroy();
68
+ });
69
+ });
70
+ this.server = server;
71
+ server.requestTimeout = 10000;
72
+ server.headersTimeout = 10000;
73
+ await new Promise((resolve, reject) => {
74
+ server.once('error', reject);
75
+ server.listen(0, '127.0.0.1', resolve);
76
+ });
77
+ this.origin = `http://127.0.0.1:${server.address().port}`;
78
+ this.url = `${this.origin}/#token=${this.token}`;
79
+ if (this.closed) await this.closeServer();
80
+ return this.url;
81
+ })().catch((error) => {
82
+ this.starting = undefined;
83
+ throw error;
84
+ });
85
+ return this.starting;
86
+ }
87
+
88
+ async show({ openBrowser = true } = {}) {
89
+ const url = await this.start();
90
+ if (!openBrowser) return { url, browser_requested: false };
91
+ try {
92
+ // open dispatches through macOS, Windows/WSL or Linux's default browser.
93
+ // Browser preferences can still choose a tab rather than a separate window.
94
+ const child = await this.openBrowser(url, {
95
+ newInstance: true,
96
+ wait: false,
97
+ });
98
+ // Catch launch failures reported just after spawn, without waiting for the browser to close.
99
+ await new Promise((resolve, reject) => {
100
+ const timer = setTimeout(resolve, 300);
101
+ child.once('error', (error) => {
102
+ clearTimeout(timer);
103
+ reject(error);
104
+ });
105
+ child.once('exit', (code) => {
106
+ clearTimeout(timer);
107
+ code && code !== 0 ? reject(new Error('Browser exited')) : resolve();
108
+ });
109
+ });
110
+ return { url, browser_requested: true };
111
+ } catch {
112
+ return {
113
+ url,
114
+ browser_requested: false,
115
+ message:
116
+ 'Open this link in a browser on the same machine. Automatic browser launch is unavailable.',
117
+ };
118
+ }
119
+ }
120
+
121
+ json(res, code, body) {
122
+ res.writeHead(code, { 'Content-Type': 'application/json; charset=utf-8' });
123
+ res.end(JSON.stringify(body));
124
+ }
125
+
126
+ async snapshot(kind, value) {
127
+ const key = `${kind}:${value ?? ''}`;
128
+ const cached = this.cache.get(key);
129
+ if (cached && (cached.pending || Date.now() - cached.at < this.cacheMs))
130
+ return cached.promise;
131
+ // Keep memory bounded when paging or inspecting many individual checks.
132
+ if (this.cache.size >= 32) this.cache.delete(this.cache.keys().next().value);
133
+ const entry = { pending: true, at: Date.now() };
134
+ entry.promise = (async () => {
135
+ const args =
136
+ kind === 'check'
137
+ ? [`--check=${value}`]
138
+ : ['--history', ...(value ? [`--before=${value}`] : []), '--', '.'];
139
+ const response = await this.bridge.run('status', args, {
140
+ signal: this.controller.signal,
141
+ });
142
+ if (response.isError) {
143
+ const error = response.output.events.find((event) => event.type === 'error')?.data;
144
+ return {
145
+ error:
146
+ error?.message ??
147
+ response.output.error ??
148
+ 'Super could not read this worktree. Run super login and super link in your terminal.',
149
+ code: error?.code,
150
+ };
151
+ }
152
+ const report = response.output.events.findLast((event) => event.type === 'results')?.data;
153
+ if (!report) return { error: 'Super returned no history. Try refreshing.' };
154
+ return {
155
+ directory: this.directory,
156
+ updated_at: new Date().toISOString(),
157
+ ...report,
158
+ };
159
+ })()
160
+ .catch((error) => ({
161
+ error:
162
+ error.code === 'busy'
163
+ ? 'Super is busy. History will retry shortly.'
164
+ : 'Could not read Super history. Check the CLI installation and repository link.',
165
+ }))
166
+ .finally(() => {
167
+ entry.pending = false;
168
+ entry.at = Date.now();
169
+ });
170
+ this.cache.set(key, entry);
171
+ return entry.promise;
172
+ }
173
+
174
+ async handle(req, res) {
175
+ res.setHeader('Cache-Control', 'no-store');
176
+ res.setHeader('X-Content-Type-Options', 'nosniff');
177
+ res.setHeader('Referrer-Policy', 'no-referrer');
178
+ res.setHeader('X-Frame-Options', 'DENY');
179
+ res.setHeader(
180
+ 'Content-Security-Policy',
181
+ "frame-ancestors 'none'; connect-src 'self'; object-src 'none'; base-uri 'none'",
182
+ );
183
+ if (
184
+ !this.origin ||
185
+ req.headers.host !== new URL(this.origin).host ||
186
+ (req.headers.origin && req.headers.origin !== this.origin) ||
187
+ req.headers['sec-fetch-site'] === 'cross-site'
188
+ )
189
+ return this.json(res, 403, { error: 'Local dashboard access only.' });
190
+ if (req.method !== 'GET') return this.json(res, 405, { error: 'Read-only dashboard.' });
191
+ const url = new URL(req.url, this.origin);
192
+ if (url.pathname.startsWith('/api/')) {
193
+ const supplied = Buffer.from(req.headers.authorization ?? '');
194
+ const expected = Buffer.from(`Bearer ${this.token}`);
195
+ if (supplied.length !== expected.length || !timingSafeEqual(supplied, expected))
196
+ return this.json(res, 401, {
197
+ error: 'Open the dashboard link from Super to reconnect.',
198
+ });
199
+ let kind, value;
200
+ if (url.pathname === '/api/history') {
201
+ kind = 'history';
202
+ value = url.searchParams.get('before');
203
+ if ([...url.searchParams.keys()].some((key) => key !== 'before'))
204
+ return this.json(res, 400, { error: 'Invalid history request.' });
205
+ } else if (url.pathname.startsWith('/api/check/')) {
206
+ kind = 'check';
207
+ value = url.pathname.slice('/api/check/'.length);
208
+ if (!value || url.search)
209
+ return this.json(res, 400, { error: 'Invalid check number.' });
210
+ } else return this.json(res, 404, { error: 'Not found.' });
211
+ if (value !== null && value !== undefined && !decimal(value))
212
+ return this.json(res, 400, { error: 'Invalid check number.' });
213
+ const report = await this.snapshot(kind, value);
214
+ return this.json(res, report.error ? 503 : 200, report);
215
+ }
216
+ const relative =
217
+ url.pathname === '/' ? 'index.html' : decodeURIComponent(url.pathname).slice(1);
218
+ if (!relative || relative.split(/[\\/]/).some((part) => !part || part.startsWith('.')))
219
+ return this.json(res, 404, { error: 'Not found.' });
220
+ try {
221
+ const root = await realpath(this.publicDirectory);
222
+ const file = await realpath(path.join(root, relative));
223
+ if (!file.startsWith(`${root}${path.sep}`))
224
+ return this.json(res, 404, { error: 'Not found.' });
225
+ const type = TYPES[path.extname(file)];
226
+ if (!type) return this.json(res, 404, { error: 'Not found.' });
227
+ const body = await readFile(file);
228
+ res.writeHead(200, { 'Content-Type': type });
229
+ res.end(body);
230
+ } catch {
231
+ this.json(res, 404, { error: 'Not found.' });
232
+ }
233
+ }
234
+
235
+ async closeServer() {
236
+ if (!this.server?.listening) return;
237
+ await new Promise((resolve) => {
238
+ this.server.close(resolve);
239
+ this.server.closeAllConnections();
240
+ });
241
+ }
242
+
243
+ async close() {
244
+ this.closed = true;
245
+ this.controller.abort();
246
+ await this.starting?.catch(() => {});
247
+ await this.closeServer();
248
+ this.cache.clear();
249
+ }
250
+ }
package/lib/server.mjs CHANGED
@@ -30,8 +30,10 @@ const selection = (shape = {}, required = false) =>
30
30
  .strictObject({ ...targets, ...shape })
31
31
  .refine(
32
32
  (args) =>
33
- ['path', 'run_id', 'check_number'].filter((name) => args[name] !== undefined).length <= 1 &&
34
- (!required || ['path', 'run_id', 'check_number'].some((name) => args[name] !== undefined)),
33
+ ['path', 'run_id', 'check_number'].filter((name) => args[name] !== undefined).length <=
34
+ 1 &&
35
+ (!required ||
36
+ ['path', 'run_id', 'check_number'].some((name) => args[name] !== undefined)),
35
37
  required
36
38
  ? 'Choose exactly one of path, run_id, or check_number.'
37
39
  : 'Choose at most one of path, run_id, or check_number.',
@@ -42,7 +44,13 @@ const resultSchema = z.object({
42
44
  signal: z.string().nullable(),
43
45
  stopped: z.string().nullable(),
44
46
  integer_encoding: z.string(),
45
- events: z.array(z.object({ schema_version: z.literal(1), type: z.string(), data: z.unknown() })),
47
+ events: z.array(
48
+ z.object({
49
+ schema_version: z.literal(1),
50
+ type: z.string(),
51
+ data: z.unknown(),
52
+ }),
53
+ ),
46
54
  diagnostics: z.string().optional(),
47
55
  error: z.string().optional(),
48
56
  recovery: z.string().optional(),
@@ -84,7 +92,7 @@ function requestOptions(context) {
84
92
  };
85
93
  }
86
94
 
87
- export function createServer(bridge, { readOnly = false } = {}) {
95
+ export function createServer(bridge, { readOnly = false, dashboard } = {}) {
88
96
  const instructions = [
89
97
  'Super checks code behavior. This server serves one configured Git worktree using the installed Super CLI and its existing login.',
90
98
  `Requires Super CLI ${MINIMUM_CLI_VERSION} or later. Authentication is managed outside MCP: run super login in a terminal. Never request API keys or login secrets through tools.`,
@@ -101,11 +109,17 @@ export function createServer(bridge, { readOnly = false } = {}) {
101
109
  ]
102
110
  : []),
103
111
  ].join('\n');
104
- const server = new McpServer({ name: PACKAGE.name, version: PACKAGE.version }, { instructions });
112
+ const server = new McpServer(
113
+ { name: PACKAGE.name, version: PACKAGE.version },
114
+ { instructions },
115
+ );
105
116
 
106
117
  async function invoke(command, args, options, context) {
107
118
  try {
108
- const response = await bridge.run(command, args, { ...requestOptions(context), ...options });
119
+ const response = await bridge.run(command, args, {
120
+ ...requestOptions(context),
121
+ ...options,
122
+ });
109
123
  return result(response.output, response.isError);
110
124
  } catch (error) {
111
125
  const code =
@@ -161,6 +175,37 @@ export function createServer(bridge, { readOnly = false } = {}) {
161
175
  );
162
176
  }
163
177
 
178
+ if (dashboard)
179
+ server.registerTool(
180
+ 'super_open_dashboard',
181
+ {
182
+ title: 'Open Super history',
183
+ description:
184
+ 'Show the live recent supertest history for this worktree in a local browser. Call only when the user asks to view history in the browser. Opens a new browser instance where supported; browser preferences may choose a tab. Set open_browser=false to return the URL only. Available in read-only mode.',
185
+ inputSchema: z.strictObject({
186
+ open_browser: z.boolean().default(true),
187
+ }),
188
+ annotations: {
189
+ readOnlyHint: true,
190
+ destructiveHint: false,
191
+ idempotentHint: false,
192
+ openWorldHint: false,
193
+ },
194
+ },
195
+ async ({ open_browser }) => {
196
+ try {
197
+ return result(await dashboard.show({ openBrowser: open_browser }));
198
+ } catch {
199
+ return result(
200
+ {
201
+ error: 'Could not start the local dashboard. Restart or update the MCP sidecar.',
202
+ },
203
+ true,
204
+ );
205
+ }
206
+ },
207
+ );
208
+
164
209
  const info = async () => {
165
210
  const directory = await bridge.directory();
166
211
  let cli;
@@ -201,7 +246,10 @@ export function createServer(bridge, { readOnly = false } = {}) {
201
246
  tool(
202
247
  'super_status',
203
248
  'Read existing checks or a run without uploading source or starting work. With no selection, reads the latest run. Set history=true and use next_before for pagination. Status success does not mean the checks passed.',
204
- selection({ history: z.boolean().default(false), before: checkNumber.optional() }).refine(
249
+ selection({
250
+ history: z.boolean().default(false),
251
+ before: checkNumber.optional(),
252
+ }).refine(
205
253
  (args) => args.before === undefined || args.history,
206
254
  'before requires history=true.',
207
255
  ),
@@ -262,7 +310,11 @@ export function createServer(bridge, { readOnly = false } = {}) {
262
310
  invoke(
263
311
  'status',
264
312
  argumentsForTarget(args, ['--watch']),
265
- { selector: args.path, observation: true, timeoutMs: args.timeout_seconds * 1000 },
313
+ {
314
+ selector: args.path,
315
+ observation: true,
316
+ timeoutMs: args.timeout_seconds * 1000,
317
+ },
266
318
  context,
267
319
  ),
268
320
  );
@@ -281,7 +333,10 @@ export function createServer(bridge, { readOnly = false } = {}) {
281
333
  (args) => !args.include_uncommitted || args.commit === undefined,
282
334
  'commit and include_uncommitted are mutually exclusive.',
283
335
  )
284
- .refine((args) => !args.commit?.startsWith('-'), 'A Git revision cannot start with a dash.'),
336
+ .refine(
337
+ (args) => !args.commit?.startsWith('-'),
338
+ 'A Git revision cannot start with a dash.',
339
+ ),
285
340
  false,
286
341
  (args, context) =>
287
342
  invoke(
@@ -303,7 +358,8 @@ export function createServer(bridge, { readOnly = false } = {}) {
303
358
  'Explicitly cancel shared checks for all observers. Requires a path, run ID, or check number. Inspect each cancellation outcome; requested or unconfirmed outcomes need a later status check.',
304
359
  selection({}, true),
305
360
  false,
306
- (args, context) => invoke('cancel', argumentsForTarget(args), { selector: args.path }, context),
361
+ (args, context) =>
362
+ invoke('cancel', argumentsForTarget(args), { selector: args.path }, context),
307
363
  { idempotent: true },
308
364
  );
309
365
 
@@ -312,7 +368,8 @@ export function createServer(bridge, { readOnly = false } = {}) {
312
368
  'Retrieve and preview a proposed fix for one check, including its exact diff, instructions, validation, and applicability. Does not change working files. May wait for a pending proposal.',
313
369
  z.strictObject({ check_number: checkNumber }),
314
370
  true,
315
- (args, context) => invoke('fix', [`--check=${args.check_number}`, '--dry-run'], {}, context),
371
+ (args, context) =>
372
+ invoke('fix', [`--check=${args.check_number}`, '--dry-run'], {}, context),
316
373
  );
317
374
 
318
375
  tool(
@@ -321,7 +378,12 @@ export function createServer(bridge, { readOnly = false } = {}) {
321
378
  z.strictObject({ check_number: checkNumber }),
322
379
  false,
323
380
  (args, context) =>
324
- invoke('fix', [`--check=${args.check_number}`, '--yes'], { mutatesWorktree: true }, context),
381
+ invoke(
382
+ 'fix',
383
+ [`--check=${args.check_number}`, '--yes'],
384
+ { mutatesWorktree: true },
385
+ context,
386
+ ),
325
387
  );
326
388
 
327
389
  tool(
@@ -349,7 +411,10 @@ export function createServer(bridge, { readOnly = false } = {}) {
349
411
  const response = await invoke(command, args, options, context);
350
412
  return resource(
351
413
  uri,
352
- JSON.stringify({ ...response.structuredContent, isError: response.isError }),
414
+ JSON.stringify({
415
+ ...response.structuredContent,
416
+ isError: response.isError,
417
+ }),
353
418
  );
354
419
  };
355
420
  server.registerResource(
@@ -381,7 +446,9 @@ export function createServer(bridge, { readOnly = false } = {}) {
381
446
  mimeType: 'application/json',
382
447
  },
383
448
  (uri, context) =>
384
- resourceResponse(uri, 'usage', ['--period=30d'], context, { repository: false }),
449
+ resourceResponse(uri, 'usage', ['--period=30d'], context, {
450
+ repository: false,
451
+ }),
385
452
  );
386
453
  server.registerResource(
387
454
  'super-check',
@@ -392,7 +459,12 @@ export function createServer(bridge, { readOnly = false } = {}) {
392
459
  mimeType: 'application/json',
393
460
  },
394
461
  (uri, variables, context) =>
395
- resourceResponse(uri, 'status', [`--check=${checkNumber.parse(variables.number)}`], context),
462
+ resourceResponse(
463
+ uri,
464
+ 'status',
465
+ [`--check=${checkNumber.parse(variables.number)}`],
466
+ context,
467
+ ),
396
468
  );
397
469
  server.registerResource(
398
470
  'super-run',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematic-tech/super-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Model Context Protocol sidecar for the Super CLI",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -17,7 +17,8 @@
17
17
  "bin/",
18
18
  "lib/",
19
19
  "LICENSE",
20
- "README.md"
20
+ "README.md",
21
+ "public/"
21
22
  ],
22
23
  "engines": {
23
24
  "node": ">=22.14.0"
@@ -27,6 +28,7 @@
27
28
  },
28
29
  "dependencies": {
29
30
  "@modelcontextprotocol/server": "2.4.0",
31
+ "open": "11.0.4",
30
32
  "zod": "4.6.7"
31
33
  },
32
34
  "devDependencies": {
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.relative{position:relative}.contents{display:contents}.hidden{display:none}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/_app/immutable/assets/ibm-plex-sans-latin-400-normal.CDDApCn2.woff2)format("woff2"),url(/_app/immutable/assets/ibm-plex-sans-latin-400-normal.CYLoc0-x.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/_app/immutable/assets/ibm-plex-sans-latin-500-normal.6ng42L7E.woff2)format("woff2"),url(/_app/immutable/assets/ibm-plex-sans-latin-500-normal.BgVn5rGT.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/_app/immutable/assets/ibm-plex-sans-latin-600-normal.CuJfVYMP.woff2)format("woff2"),url(/_app/immutable/assets/ibm-plex-sans-latin-600-normal.Cu4Hd6ag.woff)format("woff")}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/_app/immutable/assets/instrument-sans-latin-ext-wght-normal.B5bTHO_g.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/_app/immutable/assets/instrument-sans-latin-wght-normal.BbzFLZTg.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/_app/immutable/assets/jetbrains-mono-latin-400-normal.V6pRDFza.woff2)format("woff2"),url(/_app/immutable/assets/jetbrains-mono-latin-400-normal.6-qcROiO.woff)format("woff")}:root{color:#061a33;font-synthesis:none;--navy:#061a33;--muted:#536579;--accent:#5c6cff;--line:#061a331c;background:#f8f7f3;font-family:IBM Plex Sans,Arial,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{min-width:360px;margin:0}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline-offset:4px;outline:3px solid #5c6cff}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}h1,h2,h3,.brand{font-family:Instrument Sans Variable,IBM Plex Sans,sans-serif}code,pre{font-family:JetBrains Mono,monospace}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.75}svg{flex-shrink:0}.app-shell{grid-template-columns:232px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--navy);color:#e5e8ef;flex-direction:column;height:100vh;padding:32px 20px 24px;display:flex;position:sticky;top:0}.brand{letter-spacing:-1px;align-items:center;gap:9px;margin:0 9px 48px;font-size:24px;font-weight:590;display:flex}.brand svg{color:#bbb4ff}.workspace-label,.eyebrow{letter-spacing:.12em;font-size:12px;font-weight:600}.workspace-label{color:#8c9db2;margin:0 12px 14px}.workspace{align-items:center;gap:12px;margin:0 10px 28px;display:flex}.workspace strong{font-size:16px;font-weight:500;display:block}.workspace div>span{color:#9bacbf;font-size:12px}.product-mark{background:#5c6cff;border-radius:10px;place-items:center;width:36px;height:36px;font-family:Instrument Sans Variable,sans-serif;font-size:24px;font-weight:600;display:grid;box-shadow:inset 0 0 0 1px #ffffff25}.nav-active{color:#fff;background:#182d48;border:1px solid #ffffff0c;border-radius:9px;align-items:center;gap:10px;padding:12px;font-size:14px;display:flex}.nav-active>span:first-child{color:#aab4ff;font-size:22px;line-height:1}.nav-count{color:#aab4ff;margin-left:auto;font-size:12px}.sidebar-bottom{color:#9bacbf;margin-top:auto;padding:0 10px;font-size:12px}.local-dot{background:#31b987;border-radius:50%;width:6px;height:6px;margin-right:7px;display:inline-block}.sidebar-bottom a{border-top:1px solid #ffffff17;justify-content:space-between;margin-top:20px;padding-top:20px;font-size:14px;display:flex}.topbar{border-bottom:1px solid var(--line);height:76px;color:var(--muted);justify-content:space-between;align-items:center;padding:0 44px;font-size:14px;display:flex}.breadcrumb{color:#99a3af;margin:0 14px}.topbar strong{color:var(--navy);font-weight:500}.connection{color:#187856;align-items:center;gap:8px;font-size:12px;font-weight:500;display:flex}.connection>span{background:#27876a;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #27876a13}.connection.offline{color:#896017}.connection.offline>span{box-shadow:none;background:#a68032}.page{max-width:1510px;margin:auto;padding:44px}.page-heading{justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px;display:flex}.eyebrow{color:var(--muted);margin-bottom:10px}h1{letter-spacing:-1.8px;font-size:clamp(30px,3vw,43px);font-weight:590;line-height:1.2}.heading-dot{color:var(--accent)}.worktree{color:var(--muted);overflow-wrap:anywhere;max-width:640px;margin-top:12px;font-size:14px}.actions{gap:10px;display:flex}.button{white-space:nowrap;background:#fff;border:1px solid #061a3328;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 15px;font-size:14px;font-weight:500;transition:background .15s,box-shadow .15s;display:inline-flex}.button:hover{background:#f8f9fc;box-shadow:0 3px 8px #061a330a}.button.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.button.primary:hover{background:#153150}.button.small{min-height:32px;padding:0 10px;font-size:12px}.metrics{border:1px solid var(--line);background:#fff;border-radius:12px;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:32px;display:grid;overflow:hidden;box-shadow:0 2px 5px #061a3303}.metric{padding:24px 26px;position:relative}.metric+.metric:before{content:"";background:var(--line);width:1px;position:absolute;top:24px;bottom:24px;left:0}.metric>span{color:var(--muted);align-items:center;gap:8px;font-size:14px;display:flex}.metric strong{letter-spacing:-1.5px;margin:14px 0 7px;font-family:Instrument Sans Variable,sans-serif;font-size:42px;font-weight:550;line-height:1.2;display:block}.metric small{color:var(--muted);font-size:12px}.dot{border-radius:50%;width:7px;height:7px;display:inline-block}.dot.pass{background:#27876a}.dot.attention{background:#bd6851}.dot.running{background:var(--accent)}.history-card{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 5px #061a3303}.list-toolbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;display:flex}.filters{flex-wrap:wrap;gap:5px;display:flex}.filters button{color:var(--muted);background:0 0;border:0;border-radius:6px;padding:7px 10px;font-size:12px;font-weight:500}.filters button.active{color:#4250c6;background:#e9ebff}.filters button:hover{background:#f0f1f8}.search{border:1px solid var(--line);border-radius:7px;align-items:center;gap:8px;max-width:240px;padding:5px 10px;display:flex}.search>span{color:var(--muted);font-size:23px;line-height:1}.search input{background:0 0;border:0;outline:none;width:100%;min-width:120px;height:24px;font-size:14px}.search:focus-within{outline-offset:2px;outline:2px solid #5c6cff}.table-scroll{overflow:auto}table{border-collapse:collapse;text-align:left;width:100%}th{color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;background:#fafbfce0;padding:12px 22px;font-size:12px;font-weight:500}td{border-bottom:1px solid #061a330c;padding:19px 22px}tr:last-child td{border-bottom:0}tbody tr:hover,tbody tr.selected{background:#f8f9fd}td:first-child{width:45%}.check-name{text-align:left;overflow-wrap:anywhere;color:var(--navy);background:0 0;border:0;padding:0;font-size:14px;font-weight:500}.check-name:hover{color:#5261ed}.check-path{color:var(--muted);overflow-wrap:anywhere;margin-top:5px;font-size:12px}.check-path span{color:#748092;margin-left:4px}.status{white-space:nowrap;color:#536579;background:#f0f2f6;border-radius:5px;align-items:center;gap:7px;padding:4px 8px;font-size:12px;font-weight:500;display:inline-flex}.status i{background:currentColor;border-radius:50%;width:5px;height:5px;display:inline-block}.status.pass{color:#187856;background:#edf7f1}.status.fail,.status.error{color:#b3443c;background:#fff1ef}.status.conditional{color:#896017;background:#fbf5e8}.status.running{color:#5261ed;background:#eef0ff}.pending{color:#617286;margin-top:5px;font-size:12px}.revision{color:#536579;background:#f2f4f6;border-radius:4px;padding:4px 6px;font-size:12px}.timestamp{color:var(--muted);white-space:nowrap;font-size:12px}.detail-button{color:#6b778a;background:0 0;border:1px solid #0000;border-radius:6px;width:30px;height:30px}.detail-button:hover{border-color:var(--line);color:var(--accent);background:#fff}.list-footer{color:var(--muted);border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;min-height:65px;padding:16px 22px;font-size:12px;display:flex}.page-footer{color:#617286;justify-content:space-between;gap:20px;margin-top:25px;font-size:12px;display:flex}.empty{text-align:center;padding:60px 24px}.empty>span{color:#5c6cff;margin-bottom:14px;font-size:36px;display:block}.empty h2{letter-spacing:-.4px;font-size:21px}.empty p{color:var(--muted);margin-top:8px;font-size:14px}.notice{color:#795b26;background:#fcf6eb;border:1px solid #e9d1ae;border-radius:9px;margin-bottom:20px;padding:15px 18px;font-size:14px;line-height:1.6}.detail-overlay{z-index:10;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#061a3350;justify-content:flex-end;display:flex;position:fixed;inset:0}.detail-panel{scrollbar-gutter:stable;background:#fff;outline:none;width:min(640px,100%);height:100%;padding:28px 32px;overflow:auto;box-shadow:-12px 0 40px #061a3320}.detail-top{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.detail-top .eyebrow{margin:0}.close-button{border:1px solid var(--line);background:#fff;border-radius:7px;width:32px;height:32px;font-size:24px;line-height:1}.detail-panel h2{letter-spacing:-.8px;overflow-wrap:anywhere;margin:18px 0 9px;font-size:28px;line-height:1.25}.detail-path{color:var(--muted);overflow-wrap:anywhere;font-size:14px}.detail-meta{border-top:1px solid var(--line);border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr;gap:20px;margin:28px 0;padding:22px 0;display:grid}dt{color:var(--muted);margin-bottom:6px;font-size:12px}dd{overflow-wrap:anywhere;margin:0;font-size:14px}dd code{font-size:12px}.detail-section{margin-top:28px}.detail-section h3{margin-bottom:15px;font-size:19px}.detail-section p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;font-size:16px;line-height:1.75}.detail-section .emphasized{font-weight:600}.muted{color:var(--muted)}.live-note{color:var(--muted);padding:12px 0;font-size:14px}.live-note i{margin-right:7px}.detail-section pre{background:#f4f5f8;border-radius:8px;margin:16px 0;padding:16px}.detail-section .patch{color:#d7e6f3;background:#081b31}.raw-result{border-top:1px solid var(--line);margin-top:32px;padding-top:20px;font-size:14px}.raw-result summary{cursor:pointer;color:var(--muted)}.raw-result pre{background:#f4f5f8;border-radius:8px;margin-top:14px;padding:16px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width>=1600px){.page{padding-top:56px}.page-heading{margin-bottom:42px}.metrics{margin-bottom:38px}}@media (width<=1150px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:28px 14px}.brand{font-size:21px}.page{padding:32px 26px}.topbar{padding:0 26px}.metric{padding:20px}.metric small{display:none}.list-toolbar{flex-direction:column;align-items:flex-start}.search{width:100%;max-width:none}.page-heading{flex-direction:column;align-items:flex-start}.actions{align-self:flex-end}.metrics{margin-bottom:24px}td,th{padding-left:16px;padding-right:16px}}@media (width<=700px){.app-shell{display:block}.sidebar{flex-direction:row;justify-content:space-between;align-items:center;height:auto;padding:16px 20px;position:static}.brand,.workspace{margin:0}.workspace div>span,.workspace-label,.sidebar nav,.sidebar-bottom{display:none}.product-mark{width:28px;height:28px;font-size:20px}.workspace strong{font-size:14px}.topbar{height:56px;padding:0 20px;font-size:12px}.breadcrumb{margin:0 7px}.page{padding:28px 18px}.page-heading{gap:18px;margin-bottom:24px}.actions{align-self:flex-start}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:18px 20px}.metric:nth-child(3),.metric:nth-child(4){border-top:1px solid var(--line)}.metric:nth-child(3):before{display:none}.metric strong{margin-top:8px;font-size:34px}.metric>span{font-size:12px}.list-toolbar{padding:14px}.filters{gap:0}.filters button{padding:7px 8px}.timestamp,th:nth-child(4),td:nth-child(3),th:nth-child(3){display:none}td{padding-top:16px;padding-bottom:16px}.list-footer{flex-wrap:wrap;padding:14px}.page-footer{flex-direction:column;gap:5px}.detail-panel{padding:22px}.detail-section p{font-size:16px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media (width<=700px){thead{display:none}tbody tr{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) 32px;padding:16px;display:grid}tbody tr:last-child{border:0}td{border:0;padding:0}td:first-child{grid-area:1/1;width:auto}.check-name{font-size:14px}.check-path{overflow-wrap:break-word}.check-path span{white-space:nowrap}td:nth-child(2){grid-area:2/1;margin-top:12px}td:last-child{grid-area:1/2/3}.check-path{font-size:12px}}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}