
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 分
請在儲存庫或註冊中心條目中宣告授權條款。