@ao-mcp/local

中文文档
0.3.13发布于 2026/10/27SEE LICENSE IN LICENSE.md零依赖近 30 天下载 2739

Local MCP bridge for Automated Operations — point any MCP client at your AO workspace with browser sign-in.

原始使用文档
文档目录7 节
  1. Offline behavior
  2. Signing in after your MCP client started
  3. Large results ( ao://results/… )
  4. Documentation resources ( ao://docs/… )
  5. Commands
  6. How it's packaged
  7. Support

@ao-mcp/local

The on-machine MCP bridge for Automated Operations. It runs as a local stdio MCP server and proxies to the hosted AO MCP endpoint, handling browser sign-in and session/auth for you.

The bridge is a native Go binary. npm is one distribution option, not a runtime dependency. To install it without Node or npm:

# macOS / Linux
curl -fsSL https://mcp.automatedoperations.com/install.sh | sh

# Windows PowerShell
irm https://mcp.automatedoperations.com/install.ps1 | iex

Both installers resolve the signed platform package from the public registry, verify its SHA-512 integrity, and install ao-mcp-local into a user-owned bin directory. Set AO_MCP_INSTALL_DIR during installation to choose a different location. Native installations then check for, verify, and activate AO releases automatically; the next natural MCP process start uses the new binary. There is no consumer update setting or maintenance command.

To remove a native installation without changing any MCP-client configuration:

# macOS / Linux
curl -fsSL https://mcp.automatedoperations.com/install.sh | sh -s -- --uninstall

# Windows PowerShell
& ([scriptblock]::Create((irm https://mcp.automatedoperations.com/install.ps1))) -Uninstall

Use npx -y @ao-mcp/setup remove separately when the AO entries should also be removed from detected MCP clients. Uninstalling the binary never deletes login profiles or unrelated files from a user-selected installation directory.

Entitled organizations may pin managed native deployments through their AO organization policy. The agent accepts only the effective authenticated policy returned by AO Cloud; local users and machine administrators cannot create a pin. AO does not expose version selection to consumer installs.

Offline behavior

The local agent does not cache infrastructure state. When AO Cloud or the network is unavailable, operational tool calls return a retryable ao_unavailable result that explicitly states no cached operational data was returned. Versioned schemas, help, and runbook resources may be cached in future releases; live reads and writes never silently fall back to stale answers.

# one-time sign-in (opens your browser)
npx @ao-mcp/local login

# most users never run it directly — `npx @ao-mcp/setup` wires it into your
# MCP client (Claude Desktop, Cursor, VS Code, …), which spawns it for you

Signing in after your MCP client started

The bridge starts even without a usable sign-in. It then lists only its own tools (authenticate, auth_status, switch_account, sign_out, local_agent_status) and answers every remote request with an auth_required result. Sign in either way:

  • ask the agent to call authenticate (opens your browser), or
  • run npx @ao-mcp/local login in a terminal — the running bridge notices the new sign-in within a few seconds by itself.

Either way the same MCP session connects: the bridge sends notifications/tools/list_changed and the next tools/list includes the remote tools. No client restart is needed.

Large results (ao://results/…)

A tool result too large to return inline comes back with a text summary plus a resource_link to an ao://results/<id> URI (also in the result's _meta["ao.resultResource"], expiry in _meta["ao.resultExpiresAt"]). Read the complete JSON with resources/read on that URI:

{"jsonrpc":"2.0","id":7,"method":"resources/read","params":{"uri":"ao://results/<id>"}}

The link belongs to the MCP session that produced it: read it from the same session, within 15 minutes. After a sign-in, an account switch or a reconnect the session is new and old links no longer resolve — run the tool again.

Documentation resources (ao://docs/…)

AO's documentation is readable from inside the session, versioned to the AO Cloud release you are connected to: resources/read on ao://docs/<path> returns one page as markdown (template ao://docs/{path} in resources/templates/list). Find pages with the docs_search tool; tools that are not in the default tool list are discovered with find_tools and run with call_tool.

Commands

ao-mcp-local             run the stdio MCP bridge (default; MCP clients spawn this)
ao-mcp-local login       sign in via your browser and store a session token
ao-mcp-local logout      clear the stored token
ao-mcp-local version     print version

Your session token is stored in the OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service) when available, else a permission-restricted file. Set AO_TOKEN to supply a token directly (headless / CI, without refresh or account switching). Hermetic test runners can set AO_TOKEN_FILE to an absolute token.json path; its sibling profiles.json retains the normal refreshable multi-account behavior.

How it's packaged

The binary ships as per-platform optional dependencies (@ao-mcp/local-<platform>-<arch>). npm installs only the one matching your machine; this launcher (bin/cli.js) resolves it and execs it, passing your MCP client's stdio straight through. No postinstall download, no external host — npm carries the bytes. macOS binaries are Developer ID signed and notarized; Windows binaries are Authenticode signed.

PlatformPackage
macOS arm64 / x64@ao-mcp/local-darwin-arm64 · @ao-mcp/local-darwin-x64
Linux arm64 / x64@ao-mcp/local-linux-arm64 · @ao-mcp/local-linux-x64
Windows arm64 / x64@ao-mcp/local-win32-arm64 · @ao-mcp/local-win32-x64

Support

Questions, issues, feedback — we'd love to hear from you: [email protected] · https://automatedoperations.com

版本与发布记录

@ao-mcp/local 共发布 22 个版本,首次发布于 2026/07/04;过去 12 个月发布了 22 个版本。

版本发布日期距今
0.3.13latest2026/10/2712 天前
0.3.122026/10/2712 天前
0.3.112026/10/2612 天前
0.3.102026/10/2612 天前
0.3.92026/10/2612 天前
0.3.82026/10/2414 天前

关于 @ao-mcp/local 的常见问题

@ao-mcp/local 是什么?

Local MCP bridge for Automated Operations — point any MCP client at your AO workspace with browser sign-in.

如何安装 @ao-mcp/local?

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

@ao-mcp/local 支持 TypeScript 吗?

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

@ao-mcp/local 需要什么版本的 Node.js?

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

@ao-mcp/local 可以商用吗?

@ao-mcp/local 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@ao-mcp/local 的下载量有多少?

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

@ao-mcp/local 还在维护吗?

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