
46a Mcp
io.github.johnroy由 GitHub 账号 johnroy 发布v1.0.0更新于 Oct 28, 2026
MCP for the 46a platform.
概览
把助手连接到浏览器中打开的 46a 项目,可实时读取应用/DOM 状态并执行编辑器操作。
- 可以做什么
- 列出在线浏览器连接并选择 connectionId,可按用户过滤
- 读取页面、工作区、项目、用户、对象和日志等应用状态
- 添加对象(图形、文本、HTML、SVG),可单个、批量或从 HTML 片段创建
- 执行撤销/重做、选择、缩放、切换页面、修改对象字段及项目/页面生命周期等编辑器操作
- 在连接的浏览器会话中运行代码,并通过 DALL-E 生成图片
- 把任务委派给其他助手,并在聊天线程中创建 UI 组件
- 适用场景
- 适合让助手查看并编辑当前在浏览器中打开的 46a 项目,例如添加对象、调整页面或读取实时编辑器状态。
- 运行要求
- 需要 46a.co/mcp 的远程 streamable HTTP 端点,作为自定义连接器或配置项添加。必须认证:默认使用 OAuth,或通过 Authorization 头使用 basic auth。可选的本地 stdio 方式需要 Node.js 以及 REMOTE_URL、EMAIL_OR_USERNAME、PASSWORD。
安装
在 SourceWeft 中
- 打开 控制台中的 46a Mcp,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.johnroy%2F46a-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"46a": {
"type": "http",
"url": "https://46a.co/mcp"
}
}
}README
46a MCP Server
Live control of a 46a project open in a user's browser, via MCP. Lets an MCP client read live application/DOM state and perform editor actions in real time.
Installation
As an HTTP (configured outside mcpServers)
How to use the MCP connector, for hints ask claude "claude: show me where to configure mcpServers?"
- Add the server URL as a custom connector (claude.ai: Settings → Connectors → Add
custom connector; Claude Code:
claude mcp add --transport http 46a-mcp https://46a.co/mcp).
Configure entry with OAuth
Local claude MCP configuration to use oauth (default)
Configure a entry with basic auth
Local claude MCP configuration to use basic auth instead of oauth.
Configure stdio process (you probably won't need this)
Running (or this)
Connecting a client
A. Configure a custom connector, or
B. Add entries (as above) to .mcp.json or other Claude config location, using
either basic auth or OAuth (default), or
C. Configure a local entry for the stdio-based process (see above)
Workflow
listConnections→ pick a liveconnectionId.callToolsand/orinjectagainst thatconnectionId.
connectionId is ephemeral and orphans on page reload — re-list when in doubt.
Tools
Client discovers tools via tools/list.
- listConnections — list live browser connections. Optional
emailOrUsernamefilter. ReturnsconnectionId -> { user, project }. - callTools — run 46a tool calls against one connection:
{ connectionId, request: { v: 't', calls: [...] } }. - inject — run code in the connection's browser session:
{ connectionId, request: { v: 'j', code } }.codemust be a single expression evaluating to a Promise. - hello_world — connectivity test tool.
callTools call surface
request.calls
add_object— add a single object (Circle, Square, _basic.text, _basic.plainText, _basic.html, SVG).add_objects— batched add_object, preferred for creating many objects at once.make_object_from_html— add an object from a raw HTML snippet.getSelectorData— read application state (page, workspace, project, user, objects, logs).doAction— perform an editor action (undo/redo, open editor, select objects, zoom, change page, patch object fields, project/page lifecycle, etc).createImage— generate an image via DALL-E and add it to the project.delegateAI— delegate a task to another assistant.uiInteraction— create a UI widget/interaction in the chat thread or UI.
来源:README.md,提交 49a8d33
工具
0版本历史
1- v1.0.0最新Oct 19, 2026
评分
已满足适用检查项的 75%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。