Skip to content

Sandgrouse/adobe-express-dev-skill / skills/adobe-express-core

adobe-express-core

Verified

Adobe Express environment essentials, two-runtime architecture, project setup, and MCP server configuration. Use when starting add-on development, understanding iframe vs sandbox boundaries, configuring MCP servers, setting up local projects, or validating manifest configuration.

FileKindSize
SKILL.mdskill md8.7 KB
references/mcp-setup-and-install.mdmarkdown6.0 KB
references/project-setup.mdmarkdown5.7 KB
scripts/setup-mcp-servers.mjsscript4.0 KB

scripts/setup-mcp-servers.mjs

View on GitHub
#!/usr/bin/env node
import fs from "fs";
import os from "os";
import path from "path";

const MCP_SERVERS = {
  "adobe-express-developer": {
    command: "npx",
    args: ["@adobe/express-developer-mcp@latest", "--yes"]
  }
};

const CONFIG_PATHS = {
  copilot: path.join(os.homedir(), ".copilot", "mcp.json"),
  cursor: path.join(os.homedir(), ".cursor", "mcp.json"),
  windsurf: path.join(os.homedir(), ".windsurf", "mcp.json"),
  continue: path.join(os.homedir(), ".continue", "config.json"),
  claude: path.join(os.homedir(), "Library", "Application Support", "Claude", "claude_desktop_config.json"),
  vscode: path.join(os.homedir(), ".vscode", "mcp.json")
};

function parseArgs(argv) {
  const args = {
    target: null,
    dryRun: false,
    help: false
  };

  for (let i = 0; i < argv.length; i += 1) {
    const token = argv[i];
    if (token.startsWith("--")) {
      const key = token.slice(2);
      const value = argv[i + 1] && !argv[i + 1].startsWith("--") ? argv[++i] : true;
      if (key === "target") args.target = String(value);
      else if (key === "dry-run") args.dryRun = true;
      else if (key === "help") args.help = true;
    }
  }

  return args;
}

function printHelp() {
  const lines = [
    "Adobe Express MCP Server Setup",
    "",
    "Usage:",
    "  setup-mcp-servers [--target <host>] [--dry-run]",
    "",
    "Targets:",
    "  copilot | cursor | windsurf | continue | claude | vscode | all",
    "",
    "Examples:",
    "  setup-mcp-servers --target copilot",
    "  setup-mcp-servers --target all",
    "  setup-mcp-servers --target cursor --dry-run"
  ];
  console.log(lines.join("\n"));
}

function readConfig(configPath, dryRun) {
  if (dryRun || !fs.existsSync(configPath)) return {};
  try {
    const content = fs.readFileSync(configPath, "utf-8");
    return JSON.parse(content);
  } catch {
    return {};
  }
}

function writeConfig(configPath, config, dryRun) {
  if (dryRun) return;
  const dir = path.dirname(configPath);
  fs.mkdirSync(dir, { recursive: true });
  fs.writeFileSync(configPath, JSON.stringify(config, null, 2), "utf-8");
}

function setupMcp(configPath, target, dryRun) {
  let config = readConfig(configPath, dryRun);

  // Handle different config formats per IDE
  let mcpServersKey = "mcpServers";
  if (target === "continue") {
    mcpServersKey = "mcpServers";
  } else if (target === "claude") {
    mcpServersKey = "mcpServers";
  } else if (target === "vscode") {
    mcpServersKey = "servers";
  }

  // Ensure structure exists
  if (!config[mcpServersKey]) {
    config[mcpServersKey] = {};
  }

  // Add Adobe Express Developer MCP
  config[mcpServersKey]["adobe-express-developer"] = MCP_SERVERS["adobe-express-developer"];

  if (!dryRun) {
    writeConfig(configPath, config, false);
  }

  return config;
}

function main() {
  const args = parseArgs(process.argv.slice(2));

  if (args.help) {
    printHelp();
    process.exit(0);
  }

  const targets = args.target === "all" ? Object.keys(CONFIG_PATHS) : [args.target || "copilot"];
  const unknown = targets.filter((t) => !CONFIG_PATHS[t]);

  if (unknown.length > 0) {
    console.error(`Unknown targets: ${unknown.join(", ")}`);
    process.exit(1);
  }

  const results = [];
  for (const target of targets) {
    const configPath = CONFIG_PATHS[target];
    try {
      setupMcp(configPath, target, args.dryRun);
      results.push({ target, status: "configured", path: configPath });
    } catch (error) {
      results.push({ target, status: "error", path: configPath, error: error.message });
    }
  }

  const summary = [
    "Adobe Express MCP Server Setup Complete",
    `Mode: ${args.dryRun ? "dry-run" : "write"}`,
    ""
  ];

  for (const result of results) {
    if (result.status === "configured") {
      summary.push(`✓ ${result.target}: ${result.path}`);
    } else {
      summary.push(`✗ ${result.target}: ${result.error}`);
    }
  }

  summary.push("");
  summary.push("Next: Restart your IDE to activate MCP servers.");
  summary.push("Official Adobe Express MCP will provide documentation and type definitions.");

  console.log(summary.join("\n"));
}

main();
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 470kUpdated Claude CodeCodexUnverifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall