@syntica/mcp 2.1.2 → 2.2.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/dist/index.js CHANGED
@@ -18804,7 +18804,7 @@ var require_view = __commonJS({
18804
18804
  var debug = require_src()("express:view");
18805
18805
  var path = require("node:path");
18806
18806
  var fs = require("node:fs");
18807
- var dirname = path.dirname;
18807
+ var dirname2 = path.dirname;
18808
18808
  var basename = path.basename;
18809
18809
  var extname = path.extname;
18810
18810
  var join5 = path.join;
@@ -18843,7 +18843,7 @@ var require_view = __commonJS({
18843
18843
  for (var i = 0; i < roots.length && !path2; i++) {
18844
18844
  var root = roots[i];
18845
18845
  var loc = resolve(root, name);
18846
- var dir = dirname(loc);
18846
+ var dir = dirname2(loc);
18847
18847
  var file = basename(loc);
18848
18848
  path2 = this.resolve(dir, file);
18849
18849
  }
@@ -26818,11 +26818,11 @@ var require_utils4 = __commonJS({
26818
26818
  let endIpv6 = false;
26819
26819
  let consume = consumeHextets;
26820
26820
  for (let i = 0; i < input.length; i++) {
26821
- const cursor = input[i];
26822
- if (cursor === "[" || cursor === "]") {
26821
+ const cursor2 = input[i];
26822
+ if (cursor2 === "[" || cursor2 === "]") {
26823
26823
  continue;
26824
26824
  }
26825
- if (cursor === ":") {
26825
+ if (cursor2 === ":") {
26826
26826
  if (endipv6Encountered === true) {
26827
26827
  endIpv6 = true;
26828
26828
  }
@@ -26838,13 +26838,13 @@ var require_utils4 = __commonJS({
26838
26838
  }
26839
26839
  address.push(":");
26840
26840
  continue;
26841
- } else if (cursor === "%") {
26841
+ } else if (cursor2 === "%") {
26842
26842
  if (!consume(buffer, address, output)) {
26843
26843
  break;
26844
26844
  }
26845
26845
  consume = consumeIsZone;
26846
26846
  } else {
26847
- buffer.push(cursor);
26847
+ buffer.push(cursor2);
26848
26848
  continue;
26849
26849
  }
26850
26850
  }
@@ -55183,8 +55183,8 @@ var Protocol = class {
55183
55183
  }
55184
55184
  }
55185
55185
  },
55186
- listTasks: (cursor) => {
55187
- return taskStore.listTasks(cursor, sessionId);
55186
+ listTasks: (cursor2) => {
55187
+ return taskStore.listTasks(cursor2, sessionId);
55188
55188
  }
55189
55189
  };
55190
55190
  }
@@ -55474,8 +55474,8 @@ var ExperimentalServerTasks = class {
55474
55474
  *
55475
55475
  * @experimental
55476
55476
  */
55477
- async listTasks(cursor, options) {
55478
- return this._server.listTasks(cursor ? { cursor } : void 0, options);
55477
+ async listTasks(cursor2, options) {
55478
+ return this._server.listTasks(cursor2 ? { cursor: cursor2 } : void 0, options);
55479
55479
  }
55480
55480
  /**
55481
55481
  * Cancels a running task.
@@ -57307,38 +57307,492 @@ var import_fs2 = require("fs");
57307
57307
  var import_os2 = require("os");
57308
57308
  var import_path2 = require("path");
57309
57309
 
57310
- // apps/mcp-server/src/cli/setup.ts
57310
+ // apps/mcp-server/src/cli/agents.ts
57311
57311
  var import_child_process = require("child_process");
57312
57312
  var import_fs = require("fs");
57313
57313
  var import_os = require("os");
57314
57314
  var import_path = require("path");
57315
+
57316
+ // apps/mcp-server/src/cli/config-merge.ts
57317
+ function mergeJsonServer(existing, key, serversField, entry) {
57318
+ let doc = {};
57319
+ if (existing !== null && existing.trim() !== "") {
57320
+ try {
57321
+ const parsed = JSON.parse(existing);
57322
+ if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
57323
+ return { ok: false, reason: "the file is not a JSON object" };
57324
+ }
57325
+ doc = parsed;
57326
+ } catch (err) {
57327
+ return { ok: false, reason: `the file is not valid JSON (${err instanceof Error ? err.message : "parse failed"})` };
57328
+ }
57329
+ }
57330
+ const servers = doc[serversField];
57331
+ const table = servers !== void 0 && servers !== null && typeof servers === "object" && !Array.isArray(servers) ? { ...servers } : {};
57332
+ const next = { ...doc, [serversField]: { ...table, [key]: entry } };
57333
+ const content = `${JSON.stringify(next, null, 2)}
57334
+ `;
57335
+ const before = existing ?? "";
57336
+ return { ok: true, content, changed: content !== before };
57337
+ }
57338
+ function removeJsonServer(existing, key, serversField) {
57339
+ if (existing === null || existing.trim() === "") {
57340
+ return { ok: true, content: "", changed: false };
57341
+ }
57342
+ let doc;
57343
+ try {
57344
+ const parsed = JSON.parse(existing);
57345
+ if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
57346
+ return { ok: false, reason: "the file is not a JSON object" };
57347
+ }
57348
+ doc = parsed;
57349
+ } catch {
57350
+ return { ok: false, reason: "the file is not valid JSON" };
57351
+ }
57352
+ const servers = doc[serversField];
57353
+ if (servers === void 0 || servers === null || typeof servers !== "object" || Array.isArray(servers)) {
57354
+ return { ok: true, content: existing, changed: false };
57355
+ }
57356
+ const table = { ...servers };
57357
+ if (!(key in table)) {
57358
+ return { ok: true, content: existing, changed: false };
57359
+ }
57360
+ const kept = Object.fromEntries(Object.entries(table).filter(([name]) => name !== key));
57361
+ const content = `${JSON.stringify({ ...doc, [serversField]: kept }, null, 2)}
57362
+ `;
57363
+ return { ok: true, content, changed: true };
57364
+ }
57365
+ function mergeTomlServer(existing, key, entry) {
57366
+ const header = `[mcp_servers.${key}]`;
57367
+ const block = renderTomlBlock(key, entry);
57368
+ const before = existing ?? "";
57369
+ if (before.trim() === "") {
57370
+ return { ok: true, content: block, changed: true };
57371
+ }
57372
+ if (/^\s*mcp_servers\s*=/m.test(before)) {
57373
+ return {
57374
+ ok: false,
57375
+ reason: "mcp_servers is written as an inline table, which this installer will not edit automatically"
57376
+ };
57377
+ }
57378
+ const start = findTableStart(before, header);
57379
+ if (start === -1) {
57380
+ const separator = before.endsWith("\n\n") ? "" : before.endsWith("\n") ? "\n" : "\n\n";
57381
+ return { ok: true, content: `${before}${separator}${block}`, changed: true };
57382
+ }
57383
+ const end = findTableEnd(before, start);
57384
+ const content = `${before.slice(0, start)}${block}${before.slice(end)}`;
57385
+ return { ok: true, content, changed: content !== before };
57386
+ }
57387
+ function removeTomlServer(existing, key) {
57388
+ if (existing === null || existing.trim() === "") {
57389
+ return { ok: true, content: "", changed: false };
57390
+ }
57391
+ const start = findTableStart(existing, `[mcp_servers.${key}]`);
57392
+ if (start === -1) {
57393
+ return { ok: true, content: existing, changed: false };
57394
+ }
57395
+ const end = findTableEnd(existing, start);
57396
+ return { ok: true, content: `${existing.slice(0, start)}${existing.slice(end)}`, changed: true };
57397
+ }
57398
+ function findTableStart(content, header) {
57399
+ const pattern = new RegExp(`^[ \\t]*${header.replace(/[.[\]]/g, "\\$&")}[ \\t]*$`, "m");
57400
+ return pattern.exec(content)?.index ?? -1;
57401
+ }
57402
+ function findTableEnd(content, start) {
57403
+ const rest = content.slice(start);
57404
+ const nextHeader = /\n[ \t]*\[/.exec(rest.slice(1));
57405
+ return nextHeader === null ? content.length : start + 1 + nextHeader.index + 1;
57406
+ }
57407
+ function renderTomlBlock(key, entry) {
57408
+ const lines = [
57409
+ `[mcp_servers.${key}]`,
57410
+ `command = ${JSON.stringify(entry.command)}`,
57411
+ `args = [${entry.args.map((a) => JSON.stringify(a)).join(", ")}]`
57412
+ ];
57413
+ if (entry.env !== void 0 && Object.keys(entry.env).length > 0) {
57414
+ lines.push(`[mcp_servers.${key}.env]`);
57415
+ for (const [name, value] of Object.entries(entry.env)) {
57416
+ lines.push(`${name} = ${JSON.stringify(value)}`);
57417
+ }
57418
+ }
57419
+ return `${lines.join("\n")}
57420
+ `;
57421
+ }
57422
+ var SECTION_START = "<!-- syntica:start -->";
57423
+ var SECTION_END = "<!-- syntica:end -->";
57424
+ function upsertMarkdownSection(existing, body) {
57425
+ const section = `${SECTION_START}
57426
+ ${body.trim()}
57427
+ ${SECTION_END}
57428
+ `;
57429
+ const before = existing ?? "";
57430
+ if (before.trim() === "") {
57431
+ return { ok: true, content: section, changed: true };
57432
+ }
57433
+ const start = before.indexOf(SECTION_START);
57434
+ const end = before.indexOf(SECTION_END);
57435
+ if (start !== -1 && end !== -1 && end > start) {
57436
+ const content = `${before.slice(0, start)}${section}${before.slice(end + SECTION_END.length + 1)}`;
57437
+ return { ok: true, content, changed: content !== before };
57438
+ }
57439
+ if (start !== -1 || end !== -1) {
57440
+ return { ok: false, reason: "the syntica section markers are incomplete \u2014 fix or remove them and re-run" };
57441
+ }
57442
+ const separator = before.endsWith("\n\n") ? "" : before.endsWith("\n") ? "\n" : "\n\n";
57443
+ return { ok: true, content: `${before}${separator}${section}`, changed: true };
57444
+ }
57445
+ function removeMarkdownSection(existing) {
57446
+ if (existing === null || existing.trim() === "") {
57447
+ return { ok: true, content: "", changed: false };
57448
+ }
57449
+ const start = existing.indexOf(SECTION_START);
57450
+ const end = existing.indexOf(SECTION_END);
57451
+ if (start === -1 || end === -1 || end < start) {
57452
+ return { ok: true, content: existing, changed: false };
57453
+ }
57454
+ const content = `${existing.slice(0, start).trimEnd()}
57455
+ ${existing.slice(end + SECTION_END.length + 1)}`.trimStart();
57456
+ return { ok: true, content, changed: true };
57457
+ }
57458
+
57459
+ // apps/mcp-server/src/cli/agents.ts
57315
57460
  var HOME = (0, import_os.homedir)();
57316
57461
  var PLUGIN_INSTALL_DIR = (0, import_path.join)(HOME, ".syntica", "plugin");
57317
- function run(cmd) {
57318
- (0, import_child_process.execSync)(cmd, { stdio: "inherit" });
57319
- }
57320
- function runSetup() {
57462
+ var SERVER = { command: "npx", args: ["-y", "@syntica/mcp"] };
57463
+ var SERVER_KEY = "syntica";
57464
+ function installSkills() {
57321
57465
  const skillsDir = (0, import_path.join)(__dirname, "..", "skills");
57322
57466
  if (!(0, import_fs.existsSync)(skillsDir)) {
57323
- console.warn(" Skills directory not found \u2014 plugin not installed.");
57324
- return;
57467
+ return false;
57325
57468
  }
57326
57469
  (0, import_fs.rmSync)(PLUGIN_INSTALL_DIR, { recursive: true, force: true });
57327
57470
  (0, import_fs.mkdirSync)(PLUGIN_INSTALL_DIR, { recursive: true });
57328
57471
  (0, import_fs.cpSync)(skillsDir, PLUGIN_INSTALL_DIR, { recursive: true });
57329
- console.log(`\u2713 Plugin files copied to ${PLUGIN_INSTALL_DIR}`);
57472
+ return true;
57473
+ }
57474
+ function applyMerge(path, result, what) {
57475
+ if (!result.ok) {
57476
+ return { ok: false, detail: `${path} left untouched \u2014 ${result.reason}. Add the server by hand, or fix the file and re-run.` };
57477
+ }
57478
+ if (!result.changed) {
57479
+ return { ok: true, detail: `${what} already registered` };
57480
+ }
57481
+ (0, import_fs.mkdirSync)((0, import_path.dirname)(path), { recursive: true });
57482
+ if ((0, import_fs.existsSync)(path)) {
57483
+ (0, import_fs.copyFileSync)(path, `${path}.bak`);
57484
+ }
57485
+ (0, import_fs.writeFileSync)(path, result.content, "utf8");
57486
+ return { ok: true, detail: `${what} written to ${path}` };
57487
+ }
57488
+ function readIfExists(path) {
57489
+ return (0, import_fs.existsSync)(path) ? (0, import_fs.readFileSync)(path, "utf8") : null;
57490
+ }
57491
+ function onPath(binary) {
57330
57492
  try {
57331
- run(`claude plugin marketplace add "${PLUGIN_INSTALL_DIR}"`);
57332
- run("claude plugin install syntica@syntica --scope user");
57333
- console.log("\u2713 Plugin installed via claude CLI");
57493
+ (0, import_child_process.execFileSync)(process.platform === "win32" ? "where" : "which", [binary], { stdio: "ignore" });
57494
+ return true;
57334
57495
  } catch {
57335
- console.warn(" Could not install plugin automatically. Run manually:");
57336
- console.warn(` claude plugin marketplace add "${PLUGIN_INSTALL_DIR}"`);
57337
- console.warn(" claude plugin install syntica@syntica");
57496
+ return false;
57497
+ }
57498
+ }
57499
+ var claude = {
57500
+ name: "claude",
57501
+ label: "Claude Code",
57502
+ detect: () => onPath("claude") || (0, import_fs.existsSync)((0, import_path.join)(HOME, ".claude")),
57503
+ install: () => {
57504
+ try {
57505
+ (0, import_child_process.execFileSync)("claude", ["plugin", "marketplace", "add", PLUGIN_INSTALL_DIR], { stdio: "inherit" });
57506
+ (0, import_child_process.execFileSync)("claude", ["plugin", "install", "syntica@syntica", "--scope", "user"], { stdio: "inherit" });
57507
+ return { ok: true, detail: "plugin installed (tools and skills)" };
57508
+ } catch {
57509
+ return {
57510
+ ok: false,
57511
+ detail: `could not run the claude CLI. Install by hand:
57512
+ claude plugin marketplace add "${PLUGIN_INSTALL_DIR}"
57513
+ claude plugin install syntica@syntica`
57514
+ };
57515
+ }
57516
+ },
57517
+ teardown: () => {
57518
+ try {
57519
+ (0, import_child_process.execFileSync)("claude", ["plugin", "uninstall", "syntica"], { stdio: "inherit" });
57520
+ return { ok: true, detail: "plugin removed" };
57521
+ } catch {
57522
+ return { ok: false, detail: "could not run the claude CLI \u2014 remove with: claude plugin uninstall syntica" };
57523
+ }
57524
+ }
57525
+ };
57526
+ var CODEX_CONFIG = (0, import_path.join)(HOME, ".codex", "config.toml");
57527
+ var CODEX_PROMPTS = (0, import_path.join)(HOME, ".codex", "prompts");
57528
+ var codex = {
57529
+ name: "codex",
57530
+ label: "Codex CLI",
57531
+ detect: () => onPath("codex") || (0, import_fs.existsSync)((0, import_path.join)(HOME, ".codex")),
57532
+ install: () => {
57533
+ const merged = applyMerge(CODEX_CONFIG, mergeTomlServer(readIfExists(CODEX_CONFIG), SERVER_KEY, SERVER), "MCP server");
57534
+ if (!merged.ok) {
57535
+ return merged;
57536
+ }
57537
+ const prompts = writeSkillPointers(CODEX_PROMPTS, ".md");
57538
+ return { ok: true, detail: `${merged.detail}; ${String(prompts)} skill prompt(s) written to ${CODEX_PROMPTS}` };
57539
+ },
57540
+ teardown: () => {
57541
+ const removed = applyMerge(CODEX_CONFIG, removeTomlServer(readIfExists(CODEX_CONFIG), SERVER_KEY), "MCP server");
57542
+ removeSkillPointers(CODEX_PROMPTS, ".md");
57543
+ return removed.ok ? { ok: true, detail: "MCP server and skill prompts removed" } : removed;
57544
+ }
57545
+ };
57546
+ var CURSOR_CONFIG = (0, import_path.join)(HOME, ".cursor", "mcp.json");
57547
+ var CURSOR_RULES = (0, import_path.join)(HOME, ".cursor", "rules", "syntica.mdc");
57548
+ var cursor = {
57549
+ name: "cursor",
57550
+ label: "Cursor",
57551
+ detect: () => (0, import_fs.existsSync)((0, import_path.join)(HOME, ".cursor")),
57552
+ install: () => {
57553
+ const merged = applyMerge(
57554
+ CURSOR_CONFIG,
57555
+ mergeJsonServer(readIfExists(CURSOR_CONFIG), SERVER_KEY, "mcpServers", SERVER),
57556
+ "MCP server"
57557
+ );
57558
+ if (!merged.ok) {
57559
+ return merged;
57560
+ }
57561
+ (0, import_fs.mkdirSync)((0, import_path.dirname)(CURSOR_RULES), { recursive: true });
57562
+ (0, import_fs.writeFileSync)(CURSOR_RULES, cursorRules(), "utf8");
57563
+ return { ok: true, detail: `${merged.detail}; rules written to ${CURSOR_RULES}` };
57564
+ },
57565
+ teardown: () => {
57566
+ const removed = applyMerge(
57567
+ CURSOR_CONFIG,
57568
+ removeJsonServer(readIfExists(CURSOR_CONFIG), SERVER_KEY, "mcpServers"),
57569
+ "MCP server"
57570
+ );
57571
+ (0, import_fs.rmSync)(CURSOR_RULES, { force: true });
57572
+ return removed.ok ? { ok: true, detail: "MCP server and rules removed" } : removed;
57573
+ }
57574
+ };
57575
+ var WINDSURF_DIR = (0, import_path.join)(HOME, ".codeium", "windsurf");
57576
+ var WINDSURF_CONFIG = (0, import_path.join)(WINDSURF_DIR, "mcp_config.json");
57577
+ var WINDSURF_RULES = (0, import_path.join)(WINDSURF_DIR, "memories", "global_rules.md");
57578
+ var windsurf = {
57579
+ name: "windsurf",
57580
+ label: "Windsurf",
57581
+ detect: () => (0, import_fs.existsSync)(WINDSURF_DIR),
57582
+ install: () => {
57583
+ const merged = applyMerge(
57584
+ WINDSURF_CONFIG,
57585
+ mergeJsonServer(readIfExists(WINDSURF_CONFIG), SERVER_KEY, "mcpServers", SERVER),
57586
+ "MCP server"
57587
+ );
57588
+ if (!merged.ok) {
57589
+ return merged;
57590
+ }
57591
+ const rules = applyMerge(WINDSURF_RULES, upsertMarkdownSection(readIfExists(WINDSURF_RULES), skillPointerMarkdown()), "skill rules");
57592
+ return rules.ok ? { ok: true, detail: `${merged.detail}; ${rules.detail}` } : rules;
57593
+ },
57594
+ teardown: () => {
57595
+ const removed = applyMerge(
57596
+ WINDSURF_CONFIG,
57597
+ removeJsonServer(readIfExists(WINDSURF_CONFIG), SERVER_KEY, "mcpServers"),
57598
+ "MCP server"
57599
+ );
57600
+ applyMerge(WINDSURF_RULES, removeMarkdownSection(readIfExists(WINDSURF_RULES)), "skill rules");
57601
+ return removed.ok ? { ok: true, detail: "MCP server and rules removed" } : removed;
57338
57602
  }
57339
- console.log("\nSetup complete! Restart Claude Code to activate the syntica tools.");
57340
- console.log("Then use /syntica-onboard to get started.");
57341
- console.log("To remove everything later: claude plugin uninstall syntica");
57603
+ };
57604
+ var GEMINI_CONFIG = (0, import_path.join)(HOME, ".gemini", "settings.json");
57605
+ var GEMINI_RULES = (0, import_path.join)(HOME, ".gemini", "GEMINI.md");
57606
+ var gemini = {
57607
+ name: "gemini",
57608
+ label: "Gemini CLI",
57609
+ detect: () => onPath("gemini") || (0, import_fs.existsSync)((0, import_path.join)(HOME, ".gemini")),
57610
+ install: () => {
57611
+ const merged = applyMerge(
57612
+ GEMINI_CONFIG,
57613
+ mergeJsonServer(readIfExists(GEMINI_CONFIG), SERVER_KEY, "mcpServers", SERVER),
57614
+ "MCP server"
57615
+ );
57616
+ if (!merged.ok) {
57617
+ return merged;
57618
+ }
57619
+ const rules = applyMerge(GEMINI_RULES, upsertMarkdownSection(readIfExists(GEMINI_RULES), skillPointerMarkdown()), "skill instructions");
57620
+ return rules.ok ? { ok: true, detail: `${merged.detail}; ${rules.detail}` } : rules;
57621
+ },
57622
+ teardown: () => {
57623
+ const removed = applyMerge(
57624
+ GEMINI_CONFIG,
57625
+ removeJsonServer(readIfExists(GEMINI_CONFIG), SERVER_KEY, "mcpServers"),
57626
+ "MCP server"
57627
+ );
57628
+ applyMerge(GEMINI_RULES, removeMarkdownSection(readIfExists(GEMINI_RULES)), "skill instructions");
57629
+ return removed.ok ? { ok: true, detail: "MCP server and instructions removed" } : removed;
57630
+ }
57631
+ };
57632
+ var ADAPTERS = [claude, codex, cursor, windsurf, gemini];
57633
+ function detectAgents() {
57634
+ return ADAPTERS.filter((a) => a.detect());
57635
+ }
57636
+ var SKILLS = [
57637
+ { name: "syntica-onboard", summary: "set an existing project up on Syntica for the first time" },
57638
+ { name: "syntica-deploy", summary: "push code and deploy an application" },
57639
+ { name: "syntica-debug", summary: "inspect a running application: logs, containers, database" },
57640
+ { name: "syntica-connections", summary: "connect third-party services to an application" },
57641
+ { name: "syntica-manage", summary: "manage applications, environments and machine sizes" },
57642
+ { name: "syntica-security", summary: "review an application for security problems before shipping" },
57643
+ { name: "pre-commit-validation", summary: "run the platform validation prompts against staged changes" }
57644
+ ];
57645
+ function writeSkillPointers(dir, extension) {
57646
+ (0, import_fs.mkdirSync)(dir, { recursive: true });
57647
+ let written = 0;
57648
+ for (const skill of SKILLS) {
57649
+ const target = (0, import_path.join)(PLUGIN_INSTALL_DIR, "skills", skill.name, "SKILL.md");
57650
+ if (!(0, import_fs.existsSync)(target)) {
57651
+ continue;
57652
+ }
57653
+ const body = [
57654
+ `Read ${target} and follow it exactly.`,
57655
+ "",
57656
+ `That file is the Syntica "${skill.name}" skill: ${skill.summary}.`,
57657
+ "It uses the syntica MCP tools, which are registered in this agent already.",
57658
+ ""
57659
+ ].join("\n");
57660
+ (0, import_fs.writeFileSync)((0, import_path.join)(dir, `${skill.name}${extension}`), body, "utf8");
57661
+ written += 1;
57662
+ }
57663
+ return written;
57664
+ }
57665
+ function removeSkillPointers(dir, extension) {
57666
+ for (const skill of SKILLS) {
57667
+ (0, import_fs.rmSync)((0, import_path.join)(dir, `${skill.name}${extension}`), { force: true });
57668
+ }
57669
+ }
57670
+ function skillPointerMarkdown() {
57671
+ return [
57672
+ "# Syntica",
57673
+ "",
57674
+ "This machine has the Syntica MCP tools registered. When the user asks for",
57675
+ "something on this list, read the matching skill file first and follow it:",
57676
+ "",
57677
+ ...SKILLS.map((s) => `- **${s.summary}** \u2014 read \`${(0, import_path.join)(PLUGIN_INSTALL_DIR, "skills", s.name, "SKILL.md")}\``),
57678
+ "",
57679
+ "The skill files hold the exact order of tool calls, the authentication flow",
57680
+ "and the failure handling. Do not improvise around them."
57681
+ ].join("\n");
57682
+ }
57683
+ function cursorRules() {
57684
+ return [
57685
+ "---",
57686
+ "description: Syntica platform skills \u2014 read the named skill file before acting on a Syntica task",
57687
+ "alwaysApply: true",
57688
+ "---",
57689
+ "",
57690
+ skillPointerMarkdown(),
57691
+ ""
57692
+ ].join("\n");
57693
+ }
57694
+
57695
+ // apps/mcp-server/src/cli/setup.ts
57696
+ function parseSetupArgs(argv) {
57697
+ const agents = [];
57698
+ let all = false;
57699
+ for (let i = 0; i < argv.length; i += 1) {
57700
+ const arg = argv[i];
57701
+ if (arg === "--all") {
57702
+ all = true;
57703
+ continue;
57704
+ }
57705
+ if (arg === "--agent") {
57706
+ const value = argv[i + 1];
57707
+ if (value?.startsWith("--") === false) {
57708
+ agents.push(value);
57709
+ i += 1;
57710
+ }
57711
+ continue;
57712
+ }
57713
+ if (arg?.startsWith("--agent=") === true) {
57714
+ agents.push(arg.slice("--agent=".length));
57715
+ }
57716
+ }
57717
+ return { agents, all };
57718
+ }
57719
+ function selectAgents(options, available, detected) {
57720
+ if (options.all) {
57721
+ return { chosen: available, unknown: [] };
57722
+ }
57723
+ if (options.agents.length > 0) {
57724
+ const chosen = [];
57725
+ const unknown2 = [];
57726
+ for (const name of options.agents) {
57727
+ const adapter = available.find((a) => a.name === name);
57728
+ if (adapter === void 0) {
57729
+ unknown2.push(name);
57730
+ } else {
57731
+ chosen.push(adapter);
57732
+ }
57733
+ }
57734
+ return { chosen, unknown: unknown2 };
57735
+ }
57736
+ return { chosen: detected, unknown: [] };
57737
+ }
57738
+ function runSetup(argv = []) {
57739
+ const options = parseSetupArgs(argv);
57740
+ const { chosen, unknown: unknown2 } = selectAgents(options, ADAPTERS, detectAgents());
57741
+ for (const name of unknown2) {
57742
+ console.warn(` Unknown agent "${name}". Known agents: ${ADAPTERS.map((a) => a.name).join(", ")}`);
57743
+ }
57744
+ if (chosen.length === 0) {
57745
+ console.warn("No supported coding agent found on this machine.");
57746
+ console.warn(`Install one, or name it explicitly: npx @syntica/mcp setup --agent ${ADAPTERS.map((a) => a.name).join("|")}`);
57747
+ return;
57748
+ }
57749
+ if (!installSkills()) {
57750
+ console.warn(" Skills directory not found in this package \u2014 nothing installed.");
57751
+ return;
57752
+ }
57753
+ console.log(`\u2713 Skills installed to ${PLUGIN_INSTALL_DIR}`);
57754
+ let failures = 0;
57755
+ for (const adapter of chosen) {
57756
+ const result = adapter.install();
57757
+ if (result.ok) {
57758
+ console.log(`\u2713 ${adapter.label}: ${result.detail}`);
57759
+ } else {
57760
+ failures += 1;
57761
+ console.warn(` ${adapter.label}: ${result.detail}`);
57762
+ }
57763
+ }
57764
+ console.log("");
57765
+ console.log(failures === 0 ? "Setup complete. Restart your agent to pick up the tools." : "Setup finished with warnings above.");
57766
+ if (chosen.some((a) => a.name === "claude")) {
57767
+ console.log("In Claude Code, start with /syntica-onboard.");
57768
+ } else {
57769
+ console.log("Then ask it to set your project up on Syntica \u2014 it will use the syntica-onboard skill.");
57770
+ console.log("");
57771
+ console.log("Tip: Claude Code gets the fullest version of this \u2014 the skills become real");
57772
+ console.log(" commands there (/syntica-onboard, /syntica-deploy) rather than files your");
57773
+ console.log(" agent has to be pointed at. Install it and re-run setup to add it.");
57774
+ }
57775
+ console.log("To remove everything later: npx @syntica/mcp teardown");
57776
+ }
57777
+ function runTeardown(argv = []) {
57778
+ const options = parseSetupArgs(argv);
57779
+ const { chosen, unknown: unknown2 } = selectAgents(
57780
+ options.agents.length > 0 ? options : { ...options, all: true },
57781
+ ADAPTERS,
57782
+ detectAgents()
57783
+ );
57784
+ for (const name of unknown2) {
57785
+ console.warn(` Unknown agent "${name}". Known agents: ${ADAPTERS.map((a) => a.name).join(", ")}`);
57786
+ }
57787
+ for (const adapter of chosen) {
57788
+ const result = adapter.teardown();
57789
+ console.log(`${result.ok ? "\u2713" : " "} ${adapter.label}: ${result.detail}`);
57790
+ }
57791
+ console.log("");
57792
+ console.log(`The skills are still at ${PLUGIN_INSTALL_DIR} \u2014 delete that directory to remove them too.`);
57793
+ }
57794
+ function runClaudeSetup() {
57795
+ runSetup(["--agent", "claude"]);
57342
57796
  }
57343
57797
 
57344
57798
  // apps/mcp-server/src/cli/migrate.ts
@@ -57390,7 +57844,7 @@ function runMigrate() {
57390
57844
  console.log("No old vibetocloud plugin install found on this machine \u2014 nothing to remove.\n");
57391
57845
  }
57392
57846
  console.log("Installing the syntica plugin (skills + MCP server entry)...");
57393
- runSetup();
57847
+ runClaudeSetup();
57394
57848
  console.log("\nMigration complete.");
57395
57849
  console.log("The five /vibetocloud-* slash commands are now /syntica-*. Restart Claude Code to pick up the change.");
57396
57850
  console.log(`Your previous plugin files are kept at ${OLD_PLUGIN_BACKUP_DIR} until you delete it yourself.`);
@@ -57580,6 +58034,27 @@ function selectRegisteredTools(allTools2, options) {
57580
58034
  });
57581
58035
  }
57582
58036
 
58037
+ // apps/mcp-server/src/lib/skill-digest.generated.ts
58038
+ var EXPECTED_SKILL_SHA256 = "5a7affff15cd59d87f1c258b7247849998a34009bf3606fe9c1465fc4fd5f1fe";
58039
+
58040
+ // apps/mcp-server/src/lib/skill-integrity.ts
58041
+ var import_crypto3 = require("crypto");
58042
+ function skillDigest(content) {
58043
+ return (0, import_crypto3.createHash)("sha256").update(content, "utf-8").digest("hex");
58044
+ }
58045
+ function verifySkillContent(content, expected) {
58046
+ const actual = skillDigest(content);
58047
+ return actual === expected ? { ok: true } : { ok: false, actual };
58048
+ }
58049
+ function skillMismatchMessage(expected, actual) {
58050
+ return `[mcp-server] refusing to install: the downloaded skill does not match the digest published with this release.
58051
+ expected ${expected}
58052
+ received ${actual}
58053
+ Nothing has been written to .claude/commands/vibe.md.
58054
+ If the skill was updated server-side, upgrade and retry: npx @syntica/mcp@latest install
58055
+ If it was not, do not run the downloaded file \u2014 it would execute as a slash command with your full tool access.`;
58056
+ }
58057
+
57583
58058
  // libs/shared/src/types/gitConnection.ts
57584
58059
  var UpstreamRequestError = class extends Error {
57585
58060
  constructor(code, message, status) {
@@ -57829,7 +58304,7 @@ var import_common5 = __toESM(require_common2());
57829
58304
  var import_jsonwebtoken = __toESM(require_jsonwebtoken());
57830
58305
 
57831
58306
  // libs/shared/src/utils/auth-public-key.ts
57832
- var import_crypto3 = require("crypto");
58307
+ var import_crypto4 = require("crypto");
57833
58308
  var import_common3 = __toESM(require_common2());
57834
58309
  var AuthPublicKeyCache = class _AuthPublicKeyCache {
57835
58310
  constructor() {
@@ -57880,7 +58355,7 @@ var AuthPublicKeyCache = class _AuthPublicKeyCache {
57880
58355
  }
57881
58356
  /** SHA-256 of the PEM, for logging — never log the key material itself. */
57882
58357
  static fingerprint(key) {
57883
- return (0, import_crypto3.createHash)("sha256").update(key).digest("hex").slice(0, 16);
58358
+ return (0, import_crypto4.createHash)("sha256").update(key).digest("hex").slice(0, 16);
57884
58359
  }
57885
58360
  /**
57886
58361
  * A bad response must not cost us the key we already have. Serving a slightly
@@ -57899,7 +58374,7 @@ var AuthPublicKeyCache = class _AuthPublicKeyCache {
57899
58374
  /** Parse it rather than pattern-match it: a truncated or corrupted PEM can carry the header and still be unusable. */
57900
58375
  isUsablePublicKey(key) {
57901
58376
  try {
57902
- (0, import_crypto3.createPublicKey)(key);
58377
+ (0, import_crypto4.createPublicKey)(key);
57903
58378
  return true;
57904
58379
  } catch {
57905
58380
  return false;
@@ -58552,6 +59027,18 @@ var UserClient = class {
58552
59027
  patchMember(orgId, userId, patch) {
58553
59028
  return this.request("PATCH", `/organisations/${orgId}/members/${userId}`, patch);
58554
59029
  }
59030
+ /**
59031
+ * Hand an organisation to the platform's ordinary erasure path.
59032
+ *
59033
+ * Used by the beta sweep when an expired organisation has slept out its keep
59034
+ * window. Deliberately the same call a person makes, so destruction has one
59035
+ * audited, restorable implementation rather than a second one written for a
59036
+ * background job.
59037
+ */
59038
+ async scheduleOrgErasure(orgId) {
59039
+ const org = await this.request("POST", `/organisations/${orgId}/erase`, {});
59040
+ return org !== null;
59041
+ }
58555
59042
  listSuspendedOrgs(before) {
58556
59043
  return this.request(
58557
59044
  "GET",
@@ -58948,7 +59435,7 @@ var import_common11 = __toESM(require_common2());
58948
59435
  var logger = new import_common11.Logger("RateLimiter");
58949
59436
 
58950
59437
  // libs/shared/src/utils/session-store.ts
58951
- var import_crypto4 = require("crypto");
59438
+ var import_crypto5 = require("crypto");
58952
59439
 
58953
59440
  // libs/shared/src/notifications/registry.ts
58954
59441
  function v(vars, k) {
@@ -59173,6 +59660,24 @@ var NOTIFICATION_TYPES = {
59173
59660
  body: (x) => v(x, "summary"),
59174
59661
  target: () => null
59175
59662
  },
59663
+ // A demo that stops without warning reads as the platform breaking, and the
59664
+ // person who could have renewed it hears about it from a colleague asking why
59665
+ // the site is down.
59666
+ "beta.ending": {
59667
+ key: "beta.ending",
59668
+ category: "billing",
59669
+ severity: "warning",
59670
+ audience: "admins",
59671
+ // In-app only until there is a Contentful template for it. Defaulting email
59672
+ // on without one promises a mail that never arrives, which for a warning
59673
+ // about losing access is worse than not offering email at all.
59674
+ inAppDefault: true,
59675
+ emailDefault: false,
59676
+ emailTemplateId: null,
59677
+ title: (x) => `Your beta ends in ${v(x, "days")} days`,
59678
+ body: (x) => `On ${v(x, "endsOn")} your applications stop and your data is kept for two months. Contact us to keep going.`,
59679
+ target: () => "/settings/billing"
59680
+ },
59176
59681
  "app.unreachable": {
59177
59682
  key: "app.unreachable",
59178
59683
  category: "deploy",
@@ -60153,7 +60658,7 @@ var appDbAuditTool = {
60153
60658
  properties: {
60154
60659
  token: { type: "string", description: "JWT session token from org_verify_otp" },
60155
60660
  applicationId: { type: "string", description: "Application ID" },
60156
- environment: { type: "string", enum: [...ENVIRONMENT_NAMES] },
60661
+ environment: { type: "string", enum: [...ENVIRONMENT_NAMES], description: "Which environment: dev, staging or production" },
60157
60662
  service: { type: "string", description: "Optional: filter to one service" },
60158
60663
  limit: { type: "number", description: "Max entries (default 100, cap 1000)" }
60159
60664
  },
@@ -61297,7 +61802,7 @@ var appServiceStartTool = {
61297
61802
  properties: {
61298
61803
  token: { type: "string", description: "JWT session token from org_verify_otp" },
61299
61804
  applicationId: { type: "string", description: "Application ID" },
61300
- environment: { type: "string", enum: [...ENVIRONMENT_NAMES] },
61805
+ environment: { type: "string", enum: [...ENVIRONMENT_NAMES], description: "Which environment: dev, staging or production" },
61301
61806
  service: { type: "string", description: "Service name (from docker-compose)" }
61302
61807
  },
61303
61808
  required: ["token", "applicationId", "environment", "service"]
@@ -61312,7 +61817,7 @@ var appServiceStopTool = {
61312
61817
  properties: {
61313
61818
  token: { type: "string", description: "JWT session token from org_verify_otp" },
61314
61819
  applicationId: { type: "string", description: "Application ID" },
61315
- environment: { type: "string", enum: [...ENVIRONMENT_NAMES] },
61820
+ environment: { type: "string", enum: [...ENVIRONMENT_NAMES], description: "Which environment: dev, staging or production" },
61316
61821
  service: { type: "string", description: "Service name (from docker-compose)" }
61317
61822
  },
61318
61823
  required: ["token", "applicationId", "environment", "service"]
@@ -61327,7 +61832,7 @@ var appServiceRestartTool = {
61327
61832
  properties: {
61328
61833
  token: { type: "string", description: "JWT session token from org_verify_otp" },
61329
61834
  applicationId: { type: "string", description: "Application ID" },
61330
- environment: { type: "string", enum: [...ENVIRONMENT_NAMES] },
61835
+ environment: { type: "string", enum: [...ENVIRONMENT_NAMES], description: "Which environment: dev, staging or production" },
61331
61836
  service: { type: "string", description: "Service name (from docker-compose)" }
61332
61837
  },
61333
61838
  required: ["token", "applicationId", "environment", "service"]
@@ -61342,7 +61847,7 @@ var appServiceLogsTool = {
61342
61847
  properties: {
61343
61848
  token: { type: "string", description: "JWT session token from org_verify_otp" },
61344
61849
  applicationId: { type: "string", description: "Application ID" },
61345
- environment: { type: "string", enum: [...ENVIRONMENT_NAMES] },
61850
+ environment: { type: "string", enum: [...ENVIRONMENT_NAMES], description: "Which environment: dev, staging or production" },
61346
61851
  service: { type: "string", description: "Service name (from docker-compose)" },
61347
61852
  tail: { type: "number", description: "Number of log lines to return (default 100)" }
61348
61853
  },
@@ -61358,7 +61863,7 @@ var appServiceTailLogsTool = {
61358
61863
  properties: {
61359
61864
  token: { type: "string", description: "JWT session token from org_verify_otp" },
61360
61865
  applicationId: { type: "string", description: "Application ID" },
61361
- environment: { type: "string", enum: [...ENVIRONMENT_NAMES] },
61866
+ environment: { type: "string", enum: [...ENVIRONMENT_NAMES], description: "Which environment: dev, staging or production" },
61362
61867
  service: { type: "string", description: "Service name (from docker-compose)" },
61363
61868
  since: { type: "number", description: "Unix timestamp from a previous nextSince. Omit on first call." }
61364
61869
  },
@@ -62142,6 +62647,12 @@ function createServer() {
62142
62647
  { name: config2.server.name, version: config2.server.version },
62143
62648
  { capabilities: { tools: {} } }
62144
62649
  );
62650
+ server.oninitialized = () => {
62651
+ const client3 = server.getClientVersion();
62652
+ if (client3 !== void 0) {
62653
+ console.error(`[mcp-server] client ${client3.name} ${client3.version}`);
62654
+ }
62655
+ };
62145
62656
  server.setRequestHandler(
62146
62657
  ListToolsRequestSchema,
62147
62658
  () => Promise.resolve({ tools: registeredTools.map((t) => t.definition) })
@@ -62255,6 +62766,11 @@ async function install() {
62255
62766
  process.exit(1);
62256
62767
  }
62257
62768
  const skillContent = await response.text();
62769
+ const verification = verifySkillContent(skillContent, EXPECTED_SKILL_SHA256);
62770
+ if (!verification.ok) {
62771
+ console.error(skillMismatchMessage(EXPECTED_SKILL_SHA256, verification.actual));
62772
+ process.exit(1);
62773
+ }
62258
62774
  const dir = (0, import_path4.join)(process.cwd(), ".claude", "commands");
62259
62775
  const target = (0, import_path4.join)(dir, "vibe.md");
62260
62776
  if ((0, import_fs4.existsSync)(target)) {
@@ -62291,7 +62807,11 @@ function generateMcpJson() {
62291
62807
  async function main() {
62292
62808
  const command = process.argv[2];
62293
62809
  if (command === "setup") {
62294
- runSetup();
62810
+ runSetup(process.argv.slice(3));
62811
+ return;
62812
+ }
62813
+ if (command === "teardown") {
62814
+ runTeardown(process.argv.slice(3));
62295
62815
  return;
62296
62816
  }
62297
62817
  if (command === "migrate") {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@syntica/mcp",
3
- "version": "2.1.2",
4
- "description": "Claude Code MCP server and skills for deploying applications on Syntica",
3
+ "version": "2.2.0",
4
+ "description": "MCP server and skills for deploying applications on Syntica from your coding agent (Claude Code, Codex, Cursor, Windsurf, Gemini)",
5
5
  "mcpName": "io.syntica/mcp",
6
6
  "bin": {
7
7
  "syntica-mcp": "./dist/index.js"
@@ -12,6 +12,9 @@
12
12
  "mcp-server",
13
13
  "model-context-protocol",
14
14
  "claude-code",
15
+ "codex",
16
+ "cursor",
17
+ "windsurf",
15
18
  "deployment",
16
19
  "docker-compose",
17
20
  "paas",
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "syntica",
10
10
  "description": "Deploy, run and debug your applications on Syntica from Claude Code — real infrastructure, a live URL, no DevOps required.",
11
- "version": "2.1.2",
11
+ "version": "2.2.0",
12
12
  "source": "./"
13
13
  }
14
14
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "syntica",
3
- "description": "Deploy, run and debug your applications on Syntica from Claude Code — real infrastructure, a live URL, no DevOps required.",
4
- "version": "2.1.2",
3
+ "description": "Deploy, run and debug your applications on Syntica from your coding agent — real infrastructure, a live URL, no DevOps required.",
4
+ "version": "2.2.0",
5
5
  "mcpServers": {
6
6
  "syntica": {
7
7
  "command": "npx",
package/skills/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Syntica for Claude Code
1
+ # Syntica for your coding agent
2
2
 
3
3
  Skills and MCP tools for deploying and running applications on **Syntica** — a platform that takes the application you built with a coding agent and runs it on real infrastructure, with a URL, a certificate and its own isolated instance.
4
4
 
@@ -13,15 +13,54 @@ npx @syntica/mcp setup
13
13
  > Publishing under the `@syntica` scope is tracked in #765. Until it lands, install
14
14
  > `@vibetocloud/mcp` instead — it carries the previous `/vibetocloud-*` command names.
15
15
 
16
- Restart Claude Code afterwards. This registers the MCP server and the skills together, so the `/syntica-*` commands and the `syntica` tools are available in every project.
16
+ Restart your agent afterwards and you're connected.
17
17
 
18
- To remove everything:
18
+ ### Best with Claude Code
19
+
20
+ The same command works with Codex, Cursor, Windsurf and Gemini, but **Claude Code
21
+ is the one to pick if you have the choice**. It is the only agent with a real
22
+ skill runtime, so the skills install as actual commands — `/syntica-onboard`,
23
+ `/syntica-deploy` — rather than as instructions the agent has to be told to read.
24
+ In practice that means it knows the whole deploy flow without being reminded, and
25
+ it is the combination this integration is tested against first.
26
+
27
+ Everywhere else the tools are identical; only the way you reach the skills differs.
28
+
29
+ Pick explicitly if you would rather:
30
+
31
+ ```bash
32
+ npx @syntica/mcp setup --agent claude # or codex, cursor, windsurf, gemini
33
+ npx @syntica/mcp setup --all
34
+ ```
35
+
36
+ ### What each agent gets
37
+
38
+ | Agent | MCP server | Skills |
39
+ |---|---|---|
40
+ | **Claude Code** | the Syntica plugin, which carries both | `/syntica-*` slash commands |
41
+ | **Codex CLI** | `[mcp_servers.syntica]` in `~/.codex/config.toml` | prompts in `~/.codex/prompts/` pointing at the skill files |
42
+ | **Cursor** | a `syntica` entry in `~/.cursor/mcp.json` | a rules file naming each skill and where to read it |
43
+ | **Windsurf** | a `syntica` entry in `~/.codeium/windsurf/mcp_config.json` | a marked section in your global rules |
44
+ | **Gemini CLI** | a `syntica` entry in `~/.gemini/settings.json` | a marked section in `~/.gemini/GEMINI.md` |
45
+
46
+ Windsurf and Gemini keep their instructions in a document you also write in, so
47
+ we add one delimited section there and update that section in place — your own
48
+ text is never touched, and a second run does not leave a second copy.
49
+
50
+ Your existing configuration is merged, never replaced: anything we cannot parse
51
+ is left alone with a message rather than overwritten, a `.bak` is written before
52
+ the first change, and running setup twice changes nothing the second time.
53
+
54
+ To remove everything we wrote:
19
55
 
20
56
  ```bash
21
- claude plugin uninstall syntica
57
+ npx @syntica/mcp teardown
22
58
  ```
23
59
 
24
- **You will need:** Node.js 18+, Claude Code, a Syntica account ([syntica.io](https://syntica.io) — currently in closed beta), and a `docker-compose.yml` in your project. If you don't have one, `/syntica-onboard` writes it for you.
60
+ **You will need:** Node.js 18+, one of the agents above, a Syntica account
61
+ ([syntica.io](https://syntica.io) — currently in closed beta), and a
62
+ `docker-compose.yml` in your project. If you don't have one, the onboarding skill
63
+ writes it for you.
25
64
 
26
65
  ## Skills
27
66
 
@@ -12,7 +12,7 @@ Announce at start: "I'm using syntica-debug to inspect your application."
12
12
  ## Step 1 — Load config
13
13
 
14
14
  Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
15
- `.syntica/config.json` (project state) using the Read tool. The token is deliberately kept
15
+ `.syntica/config.json` (project state) by reading it. The token is deliberately kept
16
16
  out of the project directory — see `/syntica-onboard` (#488).
17
17
 
18
18
  If `~/.syntica/credentials.json` is missing but `.syntica/config.json` still has a
@@ -12,7 +12,7 @@ Announce at start: "I'm using syntica-deploy to deploy your application."
12
12
  ## Step 1 — Load config
13
13
 
14
14
  Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
15
- `.syntica/config.json` (project state) using the Read tool. The token is deliberately kept
15
+ `.syntica/config.json` (project state) by reading it. The token is deliberately kept
16
16
  out of the project directory — see `/syntica-onboard` (#488).
17
17
 
18
18
  If `~/.syntica/credentials.json` is missing but `.syntica/config.json` still has a
@@ -14,7 +14,7 @@ Maintenance operations on syntica. Today this covers **view billing**, **delete*
14
14
  ## Step 1 — Load config
15
15
 
16
16
  Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
17
- `.syntica/config.json` (project state) using the Read tool. The token is deliberately kept
17
+ `.syntica/config.json` (project state) by reading it. The token is deliberately kept
18
18
  out of the project directory — see `/syntica-onboard` (#488).
19
19
 
20
20
  If `~/.syntica/credentials.json` is missing but `.syntica/config.json` still has a
@@ -9,7 +9,7 @@ Announce at start: "I'm using syntica-onboard to set up your project on syntica.
9
9
 
10
10
  ## Prerequisites
11
11
 
12
- The Syntica MCP server must be configured in Claude Code. If the MCP tools are not available, tell the user to run `npx @syntica/mcp setup` and restart Claude Code — that installs the plugin, which registers both the MCP server and these skills.
12
+ The Syntica MCP server must be configured in your agent. If the MCP tools are not available, tell the user to run `npx @syntica/mcp setup` and restart your agent — that registers the MCP server and installs these skills for whichever agents it finds.
13
13
 
14
14
  ---
15
15
 
@@ -34,7 +34,7 @@ add `.syntica/` to `.gitignore` if it is not already covered. Leave `.vibetoclou
34
34
  if anything else remains in it. Running this skill again later re-does this check, so a user who
35
35
  still has an environment with the old path structure is caught the next time they onboard.
36
36
 
37
- Read `~/.syntica/credentials.json` using the Read tool. Read `.syntica/config.json` too
37
+ Read `~/.syntica/credentials.json` by reading it. Read `.syntica/config.json` too
38
38
  if it exists — that is where `appId`, `environment` and `remote` come from.
39
39
 
40
40
  **Migrating an older setup:** if `.syntica/config.json` contains a non-empty `token` field,
@@ -56,10 +56,12 @@ Then:
56
56
 
57
57
  **Authenticate:**
58
58
 
59
- Use the AskUserQuestion tool with options `["Yes", "No"]` to ask:
60
- "Would you like to pre-approve all syntica MCP tools so Claude Code stops asking for permission on every call?"
59
+ **Only when the agent is Claude Code** (other agents handle tool permission
60
+ their own way, so skip this step silently elsewhere): ask with options
61
+ `["Yes", "No"]`:
62
+ "Would you like to pre-approve all syntica MCP tools so you are not asked for permission on every call?"
61
63
 
62
- **If Yes:** Read `~/.claude/settings.json` using the Read tool. Add `"mcp__syntica__*"` to the `permissions.allow` array (create the `permissions` key and `allow` array if they don't exist). Write the updated file back. Tell the user: "syntica tools pre-approved. You won't be prompted again."
64
+ **If Yes:** read `~/.claude/settings.json`. Add `"mcp__syntica__*"` to the `permissions.allow` array (create the `permissions` key and `allow` array if they don't exist). Write the updated file back. Tell the user: "syntica tools pre-approved. You won't be prompted again."
63
65
 
64
66
  Use the AskUserQuestion tool with options `["Login", "Register"]` to ask:
65
67
  "Do you already have a syntica account, or are you signing up for the first time?"
@@ -267,7 +269,7 @@ Save `"upstream"` as `remote` in `.syntica/config.json` so later steps know not
267
269
 
268
270
  ## Step 4 — docker-compose.yml
269
271
 
270
- Check whether `docker-compose.yml` or `compose.yaml` exists in the project root using the Read tool.
272
+ Check whether `docker-compose.yml` or `compose.yaml` exists in the project root by reading it.
271
273
 
272
274
  **If found:** tell the user "Found docker-compose.yml." Continue to Step 5.
273
275
 
@@ -453,7 +455,7 @@ If Yes, add `NODE_ENV=production` under the `environment:` key of the first serv
453
455
 
454
456
  ### Check 5 — .dockerignore audit
455
457
 
456
- Check whether `.dockerignore` exists using the Read tool. If it does not exist, skip this check.
458
+ Check whether `.dockerignore` exists by reading it. If it does not exist, skip this check.
457
459
 
458
460
  If it exists, read it and flag any line that would exclude a file critical to the build. Dangerous patterns include:
459
461
  - `package.json`, `**/package.json`, or `*.json` globs at any path level
@@ -559,9 +561,11 @@ Tell the user: "✅ Your code is on syntica. Run `/syntica-deploy` to trigger yo
559
561
 
560
562
  ---
561
563
 
562
- ## Step 7 — Write CLAUDE.md
564
+ ## Step 7 — Write the agent instructions file
563
565
 
564
- Check whether `CLAUDE.md` exists in the project root using the Read tool.
566
+ Find the project's agent instructions file: `AGENTS.md` if it exists, otherwise
567
+ `CLAUDE.md`, otherwise whichever your agent reads by convention. If none exists,
568
+ create `AGENTS.md` — most agents read it, and Claude Code reads it too.
565
569
 
566
570
  If it exists, read it and check whether it already contains a "Syntica" section. If it does, skip this step.
567
571
 
@@ -573,14 +577,15 @@ If it does not exist, or exists but has no Syntica section, append the following
573
577
  This project is deployed on Syntica. The `docker-compose.yml` defines how the application runs **in the cloud** — you do not need Docker locally and should never run `docker compose up`.
574
578
 
575
579
  Use the Syntica MCP skills to work with the project:
576
- - Push code and deploy: `/vibe`
577
- - Debug running services: `/syntica-debug`
580
+ - Push code and deploy: the syntica-deploy skill
581
+ - Debug running services: the syntica-debug skill
578
582
 
579
583
  All interaction with running containers happens through the MCP tools, not locally.
580
584
  ```
581
585
 
582
- Commit the CLAUDE.md if it was created or changed:
586
+ Commit the instructions file if it was created or changed (use whichever name
587
+ you wrote — `AGENTS.md` or `CLAUDE.md`):
583
588
  ```bash
584
- git add CLAUDE.md
585
- git diff --cached --quiet || git commit -m "chore: add Syntica development instructions to CLAUDE.md"
589
+ git add AGENTS.md CLAUDE.md 2>/dev/null || true
590
+ git diff --cached --quiet || git commit -m "chore: add Syntica development instructions"
586
591
  ```