
Beacio
com.beacio由 beacio.com 发布v1.0.1更新于 Oct 24, 2026
MCP server for Web Bluetooth on iOS Safari: scaffolding, UUID lookup, extension detection.
概览
离线 MCP 服务器,指导编码助手用 beacio SDK 为 iOS Safari 实现 Web Bluetooth,并附带脚手架 CLI。
- 可以做什么
- 按框架和包管理器生成 beacio 安装方案与代码片段,并为已有 Web Bluetooth 应用打补丁以支持 iOS Safari
- 用可执行的检查清单验证集成,并在运行时检测 navigator.bluetooth 与 beacioIOS 支持情况
- 提供心率、电池、CGM、锁、信标、外设聊天等 BLE 配置的可直接粘贴代码
- 查询 iOS 专属高级功能、排查常见故障,并引用 W3C Web Bluetooth 规范细节
- 开发者模式下可读取最佳实践、搜索文档、列出 monorepo 结构并查找示例源文件
- 适用场景
- 适合在助手为网页应用添加或修复 Web Bluetooth 支持、且需在 iOS Safari 中可用时使用,也适合在 beacio monorepo 内部工作、需要其文档、结构与示例时使用。
- 运行要求
- 通过 npx 以 stdio 在本地运行,需要 Node.js;无需安装步骤,未声明账号或 API 密钥。可选环境变量 MCP_CLIENT 和 MCP_CLIENT_VERSION 用于标识客户端;开发者工具需加 --developer 参数。遥测和文档链接需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Beacio,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@beacio/mcp
MCP server that teaches coding agents (Claude, Cursor, Copilot, …) how to ship iOS Safari Web Bluetooth with beacio.
Eleven tools (seven consumer + four developer), all offline, all citing canonical docs at https://beacio.com/docs-md/*.
Install
Run via npx — no install step needed:
npx -y @beacio/mcp
Or add it to your MCP client config (example: Claude Desktop, ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"beacio": {
"command": "npx",
"args": ["-y", "@beacio/mcp"],
"env": { "MCP_CLIENT": "claude-desktop" }
}
}
}
beacio scaffolding CLI
This package also ships the unscoped beacio CLI (formerly the standalone @beacio/cli) alongside the MCP server. It scaffolds and verifies beacio integration in a web project:
npx beacio init # auto-detect framework and add the detection snippet
npx beacio migrate # brownfield: patch an existing Web Bluetooth app for iOS Safari
npx beacio check # verify beacio integration (add --brownfield for an existing app)
beacio migrate applies the same three edits the beacio_patch_existing_app MCP tool emits (single-sourced from one transform).
Tools
Consumer tools
Available in the default (consumer) mode for agents shipping the SDK into an app.
| Tool | Purpose |
|---|---|
beacio_install_plan | Canonical install steps + runnable snippet for html | react | vue | svelte | angular | next × npm | pnpm | yarn | bun | cdn. |
beacio_patch_existing_app | Brownfield: concrete FileEdits to add iOS Safari support to an EXISTING Web Bluetooth app — bootstrap into <head> before the first navigator.bluetooth read, optionalServices onto the iOS requestDevice branch, and the "use Bluefy / Web BLE browser" message swapped for the install/enable affordance. |
beacio_verify_integration | Agent-runnable checklist (shell commands + pass criteria) confirming the polyfill is installed, bootstrapped, builds, and resolves types — plus a brownfield mode for an already-written app. |
beacio_example | Ready-to-paste code for a BLE profile: heart-rate, battery, cgm, lock, beacon, peripheral-chat. |
beacio_detect_ios_support | Runtime detection snippet for navigator.bluetooth + window.beacioIOS, with every gotcha noted. |
beacio_premium_guide | One of the iOS-only premium surfaces: backgroundSync, notifications, liveActivity, beacons, peripheral, whiteLabel. |
beacio_troubleshoot | Diagnostic checklist + common fix for extension-not-detected, device-disconnects, gatt-operation-failed, notifications-not-firing. |
beacio_spec_citation | W3C Web Bluetooth spec URL + summary + caveats for a given method (e.g. navigator.bluetooth.requestDevice). |
Developer tools
Surfaced with --developer mode, for agents working inside the beacio monorepo itself.
| Tool | Purpose |
|---|---|
beacio_dev_best_practices | Read the project's AGENTS.md best-practices guide, optionally filtered by topic section. |
beacio_dev_search_docs | Search the beacio documentation index by keyword; returns ranked results with beacio.com URLs. |
beacio_dev_list_structure | Build a tree view of the monorepo directory structure (optional root path, depth 1-4, gitignore support). |
beacio_dev_find_examples | Search a curated index of key source files; returns ranked matches with file path, line number, and category. |
Every response is JSON with a source_url that points into https://beacio.com/docs-md/ so agents can cite authoritative docs.
Attribution token
beacio_install_plan returns an attribution_token of the form:
beacio_YYYYMM_mcp_<8..16 chars a–z0–9>
Example: beacio_202604_mcp_3p9xq2k8m4r
This token is accepted by the beacio beacon endpoint so installs originating from this MCP server are attributable. Share the token with the user unchanged — do not modify, truncate, or regenerate it.
Telemetry
Each tool call POSTs a minimal event to https://mcp-telemetry.beacio.com/mcp-telemetry (telemetry is enabled by default):
{
"tool": "beacio_install_plan",
"client_name": "claude-desktop",
"client_version": "1.2.3",
"success": true,
"duration_ms": 42,
"attribution_token": "beacio_202604_mcp_3p9xq2k8m4r"
}
No device data, no BLE payloads, no user input is ever sent. Fire-and-forget, 1-second timeout.
Opt out: telemetry is on by default; disable it by setting BEACIO_MCP_TELEMETRY to 0, false, off, or no (case-insensitive), or by setting the cross-tool DO_NOT_TRACK=1.
Identify your client: set MCP_CLIENT (e.g. claude-desktop, cursor, copilot-cli). Defaults to an empty string. Optionally set MCP_CLIENT_VERSION (defaults to empty string).
Links
- Homepage: https://beacio.com/mcp
- Docs (machine-readable): https://beacio.com/docs-md/
- Source: https://github.com/wklm/beacio-sdk/tree/main/packages/mcp
- Issues: https://github.com/wklm/beacio-sdk/issues
- Which beacio package should I install?
packages/AGENTS.md
License
MIT © wklm
来源:packages/mcp/README.md,提交 4051dfa
工具
0版本历史
1- v1.0.1最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。