@apex-inc/mcp-server

中文文档
0.54.2发布于 2026/11/08MITTypeScriptES Module近 30 天下载 3719

MCP server for Apex. Your coding agent talks to the same Apex the dashboard uses.

原始使用文档
文档目录4 节
  1. Install from Apex
  2. Manual config
  3. Screenshot CLI
  4. License

@apex-inc/mcp-server

MCP server for Apex. Your coding agent talks to the same Apex the dashboard uses.

Docs: app.apex.inc/docs/mcp

Install from Apex

  1. Open Settings → AI Agents.
  2. Leave Device flow selected.
  3. Click Install in Cursor or Install in VS Code.

No key goes in the file. The first Apex tool call prints an approval link.

Manual config

Add to .cursor/mcp.json (or your MCP client's equivalent). Those npx arguments are required.

{
  "mcpServers": {
    "apex": {
      "command": "npx",
      "args": ["-y", "-p", "@apex-inc/mcp-server@latest", "mcp-server"],
      "env": {
        "APEX_URL": "https://app.apex.inc",
        "APEX_WORKSPACE_KEY": "your-workspace-key"
      }
    }
  }
}

For a static key (CI, or a locked-down laptop), add APEX_API_KEY (apex_uk_… or apex_sk_…). Generate it on Settings → AI Agents.

VariableRequiredNotes
APEX_URLNoDefaults to https://app.apex.inc. Set http://localhost:3000 for local Apex.
APEX_WORKSPACE_KEYNoShop this session starts on. APEX_PROJECT_KEY is the old name and still works.
APEX_API_KEYNoOmit when you use device flow.

The editor Tools list is the live catalog. Do not treat a short list in a blog post as the count.

Screenshot CLI

Playwright runs on their machine, then the picture uploads. Apex cannot sign into their product.

# Experiment arm (public or localhost)
npx @apex-inc/mcp-server screenshot \
  --experiment <id> --variant control --url https://example.com --preview

# Milestone still — signed-in product
npx playwright codegen --save-storage .apex/auth.json https://app.theirproduct.com
npx @apex-inc/mcp-server screenshot \
  --milestone <id> --state not_yet --url https://app.theirproduct.com/reports \
  --storage-state .apex/auth.json
npx @apex-inc/mcp-server screenshot \
  --milestone <id> --state done --url https://app.theirproduct.com/reports \
  --storage-state .apex/auth.json

--storage-state is a login file on this machine. Apex never receives it — only the picture. Install Playwright once: npm i -D playwright && npx playwright install chromium.

License

MIT — see LICENSE

版本与发布记录

@apex-inc/mcp-server 共发布 94 个版本,首次发布于 2026/04/13;过去 12 个月发布了 94 个版本。

版本发布日期距今
0.54.2latest2026/11/08今天
0.54.12026/11/08今天
0.54.02026/11/07今天
0.53.12026/11/07今天
0.53.02026/11/071 天前
0.52.22026/11/071 天前

关于 @apex-inc/mcp-server 的常见问题

@apex-inc/mcp-server 是什么?

MCP server for Apex. Your coding agent talks to the same Apex the dashboard uses.

如何安装 @apex-inc/mcp-server?

在项目目录运行 npm install @apex-inc/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 apex-mcp、mcp-server,可以用 npx apex-mcp 直接运行。

@apex-inc/mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@apex-inc/mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@apex-inc/mcp-server 可以商用吗?

@apex-inc/mcp-server 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@apex-inc/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@apex-inc/mcp-server 在 2026/10/06 – 2026/11/04 这 30 天内被下载 3,719 次,日均约 124 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@apex-inc/mcp-server 还在维护吗?

最新版本 0.54.2 发布于 2026/11/08(今天);至今共发布 94 个版本,其中过去 12 个月发布了 94 个;首次发布于 2026/04/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。