@apisky/skyline-mcp

中文文档
0.6.0发布于 2026/10/12MITES Module近 30 天下载 1841

MCP server that lets Claude Code, Cursor and Codex hand real work to Skyline bots.

原始使用文档
文档目录7 节
  1. 1. Get a key
  2. 2. Add Skyline to your tool
  3. 3. One-time bot setup
  4. How it works
  5. Where a job runs
  6. Environment
  7. Development

Skyline MCP

Let the AI in Claude Code, Cursor or Codex hand real work to your Skyline bots: coding, web research, reading or collecting data, anything that takes more than a couple of turns. The bot works on it (on your computer or in the Skyline cloud) while your editor keeps going, and you pick up the result whenever you like.

It uses your Skyline API key and can do exactly what your Skyline account can do — nothing more.

1. Get a key

In the Skyline web app open Settings → Keys, create a key and copy it (it starts with lgn_ and is shown only once).

2. Add Skyline to your tool

Replace <k> with your key and <url> with your Skyline API address (default https://config.staging.apisky.net).

Claude Code

claude mcp add skyline --env SKYLINE_API_KEY=<k> --env SKYLINE_API_URL=<url> -- npx -y @apisky/skyline-mcp

Cursor — .cursor/mcp.json

{"mcpServers":{"skyline":{"command":"npx","args":["-y","@apisky/skyline-mcp"],"env":{"SKYLINE_API_KEY":"<k>","SKYLINE_API_URL":"<url>"}}}}

Codex — ~/.codex/config.toml

[mcp_servers.skyline]
command = "npx"
args = ["-y","@apisky/skyline-mcp"]
env = { SKYLINE_API_KEY = "<k>", SKYLINE_API_URL = "<url>" }

3. One-time bot setup

  • To send code, install the Skyline GitHub App on the repo (Skyline web app → Settings → GitHub).
  • Job copies always run in ACT mode, so they can work without waiting for approval. Risky commands can still ask for approval in Skyline.

How it works

Installing this server tells your AI that you want Skyline to do the real work, so it hands over anything bigger than a couple of turns.

There are two job tools:

  1. skyline_assign starts a job: the task, plus cwd (the project folder) when it touches code or local files, and files for local files the bot needs. It returns a jobId within seconds and your editor keeps going. Jobs can run for hours or days.
    • To send more instructions, call skyline_assign with the jobId and a new task.
    • To stop a job, call skyline_assign with the jobId and cancel: true.
    • To give a job its own new cloud machine, pass projects: uploaded folders ({ "uploadId": "..." }) or GitHub repos ({ "repo": "owner/name", "ref": "main" }), up to 10. [] gives an empty scratch folder. The machine is deleted a few hours after the job ends. This needs Skyline with machine-per-bot support; older servers keep using the shared machine.
    • To run a job on a workspace you already have, pass workspace (an id or exact name). projects, workspace and cwd cannot be combined.
    • To give a new job part of the main bot's memory, pass memory: { "sections": ["Task", "Insights"], "artifacts": ["art_..."] } (up to 20 each). Skyline copies those sections into the job's bot before it starts and tells it which artifacts to read; the answer's memorySeeded says what was copied. Works with projects, workspace, cwd or none of them, on local and cloud jobs. New jobs only; this needs Skyline with memory attachment support (older servers say so).
  2. skyline_results answers instantly. With a jobId you get the job's state, and once it is finished you get the bot's full report: the result from its done card plus everything it attached, never shortened. For cloud code jobs you also get the full diff of its branch. With no jobId it lists your recent jobs (jobs started from this machine in the last 30 days) and the bots you can assign, each with its model and price (USD per 1M tokens, input / output). Only the bot name, model and price are shared; bot prompts and settings stay private. If skyline_assign gets a bot name that does not exist, or has to ask which bot to use, its error message includes the same list.
  3. skyline_workspaces lists your workspaces (cloud machines, each bot's own machine, job machines and VS Code windows) with their folders.
  4. skyline_move moves a main bot to another workspace, the same as the workspace chip in the Skyline web app. Pass null or "own" to send it back to its own cloud machine. A busy bot cannot move, and job machines cannot be picked.
    • While a job is still running or waiting, the answer includes memory: the bot's working notes, so you can see how far it has got.
    • On a finished job, pass memory: true to get its full memory as well as the report.
  5. skyline_sky asks sky, the Skyline assistant for your account, in plain words: what needs you, approvals (one, several or all), workspaces (list, create, delete), tasks, bot status, a bot's story, past work and your preferences. sky acts right away; risky approvals and workspace deletes wait a short undo window (undoMs in the reply) and come back with an undoToken you can pass to skyline_sky to cancel them. For bigger asks sky may start helpers and answer right away with pending: true and a requestId; call skyline_sky with that requestId (instead of text) to read the result when it is ready, or add stop: true to stop it. Skyline keeps the conversation for you, so every ask continues it; instanceId is only an optional hint. This needs Skyline with sky set up.

Where a job runs

  • On your computer: when Skyline is open in VS Code on that folder, the job runs in that window and works on your files directly.
  • In the Skyline cloud: everywhere else.
    • Code: a snapshot of your local code, including uncommitted changes, is pushed to a branch skyline/mcp-<job>. Your working tree is never changed; merge the branch when you're happy.
    • Files: the listed files are read and sent with the task. Text is sent as is; images and documents (PDF, Word, PowerPoint, Excel) are converted to text first. Folders are not supported yet.
  • Secrets such as .env*, *.pem, *.key, SSH keys and cloud credentials are never sent.
  • VS Code windows opened on a multi-root .code-workspace file are matched through their folders.
  • Each job runs in its own copy of the bot, so your main bot stays free for you to chat with. Copies are listed under the bot's Instances in Skyline, grouped by task. Marking the task done there closes its copy; reopening the task brings it back.
  • Skyline never moves your main bot to another window or to the cloud for a job.
  • For work that will take days, the cloud is the safer place. A job on your computer stops if the laptop sleeps or the VS Code window is closed.

Follow-up instructions for a job go to that job's copy, so they share its conversation and run one after another. New jobs get their own copy and can run at the same time.

Environment

VariableRequiredMeaning
SKYLINE_API_KEYyesYour lgn_… key
SKYLINE_API_URLnoAPI address (default https://config.staging.apisky.net)
SKYLINE_MCP_HOMEnoWhere the local job list lives (default ~/.skyline-mcp)

If a key is turned off in Skyline, every tool stops working within a minute.

Development

npm ci && npm run typecheck && npm run build && npm test

版本与发布记录

@apisky/skyline-mcp 共发布 10 个版本,首次发布于 2026/10/08;过去 12 个月发布了 10 个版本。

版本发布日期距今
0.6.0latest2026/10/1227 天前
0.5.02026/10/1227 天前
0.4.02026/10/1029 天前
0.3.02026/10/1029 天前
0.2.22026/10/0930 天前
0.2.12026/10/0930 天前

关于 @apisky/skyline-mcp 的常见问题

@apisky/skyline-mcp 是什么?

MCP server that lets Claude Code, Cursor and Codex hand real work to Skyline bots.

如何安装 @apisky/skyline-mcp?

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

@apisky/skyline-mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/apisky__skyline-mcp 是否存在。

@apisky/skyline-mcp 支持 ESM 还是 CommonJS?

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

@apisky/skyline-mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@apisky/skyline-mcp 可以商用吗?

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

@apisky/skyline-mcp 的下载量有多少?

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

@apisky/skyline-mcp 还在维护吗?

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