@aiosbrain/mcp

中文文档
0.2.1发布于 2026/09/17AGPL-3.0-onlyES Module零依赖构建来源已验证近 30 天下载 2395

Read-only AIOS Team Brain MCP server with zero runtime dependencies

原始使用文档

@aiosbrain/mcp

Read-only access to an AIOS Team Brain from an MCP host. Requires Node.js 22 or newer; no AIOS checkout, global toolkit installation, native modules or runtime dependencies.

Start with npx -y @aiosbrain/[email protected]. Configure AIOS_BRAIN_URL and AIOS_API_KEY, or use the owner-only default tuple in ~/.aios/credentials.json:

{
  "version": 1,
  "default": {
    "brain_url": "https://brain.example.com",
    "api_key": "<your API key>"
  }
}

Keep this file private (chmod 600 on POSIX; owner-only ACL on Windows). Host configuration should contain the version-pinned command, never the API key. The host installer is tracked separately in AIO-1112; do not assume it is available in your toolkit.

Environment credentials take precedence. Existing .env and aios.yaml configuration remains supported. Stored credentials are tied to their Brain origin: changing the URL alone cannot send a stored key to another server. An environment key needs an explicit or existing workspace URL; it never borrows a URL from the global credential file.

Startup performs one /api/v1/me probe with a three-second deadline. Team members get all nine Brain tools; external members get the five brain tools. Missing configuration, revoked credentials, delegated tokens, malformed identity responses and network failures register no Brain tools and produce a diagnostic on stderr. Availability stays fixed until restart; the Brain checks authorization on every call, including after membership changes.

ToolsetTools
brainbrain_status, brain_search_evidence, brain_query, brain_pull_items, brain_get_item
boardbrain_list_projects, brain_list_tasks, brain_list_decisions, brain_stakeholders

--toolsets brain,board overrides AIOS_MCP_TOOLSETS. Repeated --tools <name> adds tools; explicit selections form a union and then intersect with the permitted surface. all selects all permitted tools. The workspace collector is available only in the toolkit's aios mcp.

Transport is newline-delimited stdio, with serialized JSON-RPC responses on stdout and all diagnostics on stderr. Initialize returns protocol 2025-11-25 and this package's version. Query answers preserve citation markers and source lists. This package does not provide a remote HTTP endpoint or write tools.

Maintainers: generate and pack from the committed candidate with node packages/mcp-build/pack.mjs --out <new-artifact-directory> in the source repository. Publish the accepted tarball, never the unbuilt source directory.

Evidence-first answers

brain_search_evidence (Brain API 1.27+) returns ranked source passages, citations, dates and recorded contributor roles without calling an answering model. The host composes the answer and can expand sources with brain_get_item. It belongs to the read-only brain toolset. Arguments: query, optional project, optional limit (default 8, max20). Responses remain valid JSON under 20,000 characters; truncation is disclosed. Older servers report upgrade required, and HTTP failures are never converted to no matches. No additional key or hosted MCP service is required.

0.2.1

Explicit integer evidence-search limits now pass MCP argument validation. The packed artifact acceptance test covers an explicit limit of 10 as well as live retrieval.

版本与发布记录

@aiosbrain/mcp 共发布 4 个版本,首次发布于 2026/09/08;过去 12 个月发布了 4 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.1latest2026/09/171 个月前
0.2.02026/09/171 个月前
0.1.12026/09/101 个月前
0.1.02026/09/081 个月前

关于 @aiosbrain/mcp 的常见问题

@aiosbrain/mcp 是什么?

Read-only AIOS Team Brain MCP server with zero runtime dependencies

如何安装 @aiosbrain/mcp?

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

@aiosbrain/mcp 支持 TypeScript 吗?

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

@aiosbrain/mcp 支持 ESM 还是 CommonJS?

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

@aiosbrain/mcp 需要什么版本的 Node.js?

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

@aiosbrain/mcp 可以商用吗?

@aiosbrain/mcp 使用 AGPL-3.0-only 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@aiosbrain/mcp 的下载量有多少?

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

@aiosbrain/mcp 还在维护吗?

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