Gagarin Cloud

cloud.gagarin由 gagarin.cloud 发布官方发布者v0.3.0更新于 Nov 4, 2026

Your agent ships the app. Alerts, logs, project memory and approval-gated deletes come with it.

已验证Streamable HTTP可网页运行云端与基础设施知识与记忆安全与监控

概览

AI 生成的概览

Gagarin Cloud 的远程 MCP 服务器,让助手部署应用、开通后端服务、查看日志与告警,并维护项目记忆。

可以做什么
  • 在可访问的 HTTPS 地址上部署与回滚应用,查看状态和版本
  • 开通并连接 Postgres、Qdrant、Valkey、队列、存储桶等后端服务,并配置服务之间的访问关系
  • 读取项目的告警、日志与备份
  • 保存、搜索、更新、关联和审查项目记忆中的长期事实与决策
  • 提交运行任务并轮询其状态;删除操作需人工邮件批准
适用场景
适合让编码助手在对话中直接交付并运维 Gagarin 平台上的应用:部署已在镜像仓库中的镜像、添加数据库或队列、查看日志与告警,或通过项目记忆在多次会话间保留决策。
运行要求
远程 streamable HTTP 端点;通过 GitHub 或 Google 的 OAuth 登录,或在 Authorization 头中提供 Gagarin CLI 生成的 bearer 凭据。需要 Gagarin 账号与项目。此处无法构建和推送镜像,需在装有 docker 和源码的机器上用 CLI 完成。
安装前请注意
工具会操作真实基础设施:部署、开通服务、修改网络访问规则、写入记忆和提交运行任务。删除需由人工通过邮件批准。服务器在每次调用时把调用者自己的 bearer 令牌传给 Gagarin API,因此凭据权限即生效范围,应视为机密。服务器端不保存任何凭据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Gagarin Cloud,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/cloud.gagarin%2Fgagarin/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "gagarin-cloud": {
      "type": "http",
      "url": "https://mcp.gagarin.cloud/mcp"
    }
  }
}

README

mcp

mcp.gagarin.cloud — deploy with ease, maintain without fear.

Add one URL to your agent and it can run your app at a live HTTPS address, give it Postgres, Qdrant, Valkey, a queue or a bucket, wire what may reach what, and roll back. Alerts, logs, backups and project memory come with it, and nothing is deleted without your approval by email. It is Gagarin's API, as tools: 51 of them, every one annotated so a client knows which to ask you about first. Building and pushing an image needs docker and the source, so that one step is gg ship on the machine that has them; everything after it is here.

https://mcp.gagarin.cloud/mcp

The Model Context Protocol is how an agent finds and calls a tool it was not built with. This is Gagarin's, and it exists so that adding Gagarin to a coding agent is a URL rather than an install — the one artefact that makes the platform installable rather than merely documented.

Two ways in, one implementation:

remotehttps://mcp.gagarin.cloud/mcp, streamable HTTP, credential in the Authorization header — put there by OAuth sign-in or by hand
localnpm run stdio from a clone of this repository, credential from GAGARIN_TOKEN or the file gg login wrote — for developing on this server, not a way to install it

Signing in

Remote, with OAuth. Give the client the URL and nothing else:

https://mcp.gagarin.cloud/mcp

Claude, ChatGPT and Claude Code prompt for sign-in when they connect: the client opens a browser and the human signs in with GitHub or Google. A request with no credential answers 401 with a WWW-Authenticate header pointing at /.well-known/oauth-protected-resource/mcp, which names api.gagarin.cloud as the authorization server. This server decides nothing about a token itself; the engine does, on every call. GAGARIN_MCP_ORIGIN and GAGARIN_ISSUER override the two public names for a development setup; they are separate from GAGARIN_API, which in the cluster is the in-cluster Service and no address a client could sign in at.

Remote, with a credential in a header. For a client that cannot sign in over OAuth, or a machine that should not: a credential from gg login or gg creds create.

jsonc
{  "mcpServers": {    "gagarin": {      "type": "http",      "url": "https://mcp.gagarin.cloud/mcp",      "headers": { "Authorization": "Bearer <your gagarin credential>" }    }  }}

Local, over stdio. npm run stdio from a clone runs the same tools over a pipe, reading the file gg login wrote, or GAGARIN_TOKEN if it is set. It is here to develop against, and is deliberately not published to npm: the point of this server is that adding Gagarin to an agent is a URL and not an install, and a package on somebody's laptop is a second copy of src/tools.ts that goes stale the day a tool changes.

A credential that has expired or been revoked is caught at the door too, because a client signs in again only on an HTTP 401: every POST asks the engine /v1/whoami with the caller's token first, and the engine's 401 becomes a 401 with error="invalid_token". One extra in-cluster call per request, and no cache — a remembered token is a stored token, and this server stores none. Any other failure there (the engine unreachable, a 5xx) is not a sign-in problem, so the request goes on and each tool reports it with the engine's own code.

Developing

npm installnpm run buildnpm test                 # builds, then node --test over dist/npm start                # the HTTP server on :8080npm run stdio            # the same tools over a pipe

What is here

pathwhat it is
src/api.tsthe whole of this server's contact with Gagarin: one request, one error envelope
src/tools.tsevery tool — each one a path, a shape, and the rule a caller needs before using it
src/server.tswhat a client is told on connect, and the gagarin://guide resource — including how memory is used and the .gagarin.json note that says which project a repository is
src/app.tsmcp.gagarin.cloud: stateless streamable HTTP, one server per request, and the OAuth protected-resource metadata
src/http.tsthe listener, its configuration and its drain
src/stdio.tsthe same tools over a pipe, for developing against from a clone
src/credentials.tsreads the credential file gg login wrote; never writes one
Dockerfilethe image mcp.gagarin.cloud runs. Its build stage runs the tests

Project memory

Every project carries a memory: small, durable facts an agent saves about a codebase — a decision and why, a convention, a gotcha — so the next session does not rediscover them. It is a built-in of the project, like its registry, and these tools are the only way to reach it: the memory service has no address of its own, no gg command and no console page. The engine decides who may read (viewer) and who may write (editor), on every call, like everything else.

toolwhat it does
memory_briefingwhat is known about a project, packed to a token budget — the first call on a project; focus and paths tailor it, and it ends with the last 7 days' changes
memory_searchhybrid semantic + keyword search; no query browses by rank
memory_getmemories in full, by id or key
memory_relatedwalk the links out from one memory
remembersave one fact; a near-duplicate is refused with the memories it collided with, and a key replaces the memory holding it
memory_updatechange fields, set or clear the key, pin, archive, confirm it still holds or dispute it
memory_link / memory_unlinkassociate two memories, or stop
memory_reviewhousekeeping: likely duplicates, orphans, oversized, stale, unread and disputed memories, distance to the cap

Export and import have no tool: they are for people and scripts, and a tool's definition costs tokens in every session whether it is called or not.

These answer the memory service's own text — a plain-text rendering packed to the budget — rather than the JSON around it. That is a narrower case of the rule below, not an exception to it: the rendering is still the engine's, and returning both would spend twice the tokens the service exists to save. A body without text comes back as JSON like any other answer.

It is a translator, and nothing else

It holds no credential of its own, has no database, and makes no decision the API does not make. Every tool is one call to api.gagarin.cloud carrying the caller's own bearer token, and every refusal is the engine's refusal passed through unedited.

That is the property everything else rests on: possessing this server grants nothing at all. It is what makes it safe to put a public endpoint in front of a single write gate, and nothing here may be changed in a way that weakens it.

Two consequences worth stating, because both look like omissions:

  • Answers are the engine's JSON, not a summary of it. Every service, ledger line and connection already carries a sentence written by the engine, precisely so a terminal and a dashboard cannot describe the same row differently. A third renderer here would be a third opinion to keep in step.
  • Errors are [code] message with a hint: line, which is what gg prints. One format, so an agent that has read the Gagarin skill recognises what comes back here without being taught a second one. When the engine sends more than the envelope — a memory_duplicate carries the near-duplicates — that is appended after the hint rather than dropped.

What it deliberately cannot do

Four things need a machine, and offering them here would produce failures that read like platform faults:

  • Build and push an image. gg ship — build, push and deploy fused — shells out to docker where the source is. deploy here runs an image that is already in Gagarin's registry: a tag CI pushed, or a restatement. Getting one there is the CLI's job.
  • Open a tunnel. gg connect binds a local port.
  • Wait for a job to finish. run submits and returns a revision, like every other write here. gg run blocks until the run ends and exits with the script's own exit code, which is what a pipeline wants; over MCP you poll status for the phase and the code.
  • Click an approval. That is a human with an inbox, by design.

There is also no list of resource types, sizes or scopes in this repository. The engine owns those and its refusals name them; a z.enum here would be a second list in a second repository, wrong on the day a type is added — a mistake this codebase has already made once, in gg, about this exact family of values.

Where it runs

In the Kubernetes cluster, next to the control plane, and not on Vercel beside the site and the console. Those two live outside Scaleway because their job is to still be there and say the platform is down. This one has nothing whatever to say when the API is unreachable; it is that API in another shape, so it belongs next to it and reaches it over the in-cluster Service rather than hairpinning out through the load balancer.

The pod runs as a ServiceAccount with no RBAC and no mounted token, on a read-only root filesystem. It needs none of them.

Every push to main builds the image and rolls it out — .github/workflows/deploy.yml. The credentials that can do that are secrets of the production environment, which only main may use, so a pull request never runs next to them. Merging to main is deploying.

Adding a tool

One server.registerTool call in src/tools.ts: a name, a description saying the rule a caller most needs, a zod shape, and one api.call. Then a test in src/tools.test.ts asserting the path, the method and the body — those are the only things it is possible to be quietly wrong about, and a deploy that PUTs to the wrong path answers 404 and reads like a missing service.

Do not add a tool for something the API does not do. This file has no business being the place a feature appears first.

来源:README.md,提交 0cb9462

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

3
  1. v0.3.0最新Oct 21, 2026
  2. v0.2.0Sep 22, 2026
  3. v0.1.0Sep 18, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分