@m2canvas/connect 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/site-config.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Connect the agent clients on your machine to [M2 Canvas](https://patch.design) i
|
|
|
6
6
|
npx @m2canvas/connect
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
It finds the supported clients you have installed, shows what it will change, and after you confirm, adds the M2 MCP server (`https://mcp.
|
|
9
|
+
It finds the supported clients you have installed, shows what it will change, and after you confirm, adds the M2 MCP server (`https://mcp.patch.design/mcp`) to each one and opens its browser sign-in. No API key is needed.
|
|
10
10
|
|
|
11
11
|
**In a terminal**, it asks before changing anything and opens each client's browser sign-in, so one command finishes the whole setup.
|
|
12
12
|
|
|
@@ -20,7 +20,7 @@ It finds the supported clients you have installed, shows what it will change, an
|
|
|
20
20
|
| OpenCode | merges `m2` into `~/.config/opencode/opencode.json`, keeping the file's existing format | `opencode mcp auth m2` |
|
|
21
21
|
| Qoder (CLI + desktop app) | `qodercli mcp add -s user -t http m2 …` | in Qoder: Extensions → Connectors → m2 → Authorize |
|
|
22
22
|
|
|
23
|
-
Clients that already have an entry pointing at `mcp.
|
|
23
|
+
Clients that already have an entry pointing at `mcp.patch.design`, under any name, are skipped. Before a config file is edited, the original is copied to `<file>.bak-m2canvas`.
|
|
24
24
|
|
|
25
25
|
Options: `--client <id>` sets up only that client; `--dry-run` shows the plan without changing anything; `--yes` skips the confirmation.
|
|
26
26
|
|
package/dist/site-config.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
/** 主站(用户打开画布的网站)的 origin;页面连 bridge 时 Origin 头就是它 */
|
|
16
16
|
export const APP_PUBLIC_ORIGIN = 'https://patch.design';
|
|
17
17
|
/** MCP 服务的 origin;connect 写进各家 agent 客户端配置的 MCP 地址在它下面 */
|
|
18
|
-
export const MCP_ORIGIN = 'https://mcp.
|
|
18
|
+
export const MCP_ORIGIN = 'https://mcp.patch.design';
|
|
19
19
|
/** 主站主机名(含端口时带端口) */
|
|
20
20
|
export const APP_PUBLIC_HOST = new URL(APP_PUBLIC_ORIGIN).host;
|
|
21
21
|
/** MCP 服务主机名:按它识别已有的 M2 配置项,老入口的 path / query / 尾斜杠不论 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m2canvas/connect",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Connect your local agent clients (Claude Code, Codex, Cursor, OpenCode, Qoder) to M2 Canvas over MCP in one command, and run the local bridge that lets M2 drive them over ACP.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|