webflow-mcp 0.3.0 → 0.3.1
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
CHANGED
|
@@ -40,16 +40,19 @@ OpenCode example:
|
|
|
40
40
|
"command": ["webflow-mcp"],
|
|
41
41
|
"environment": {
|
|
42
42
|
"WEBFLOW_RELAY_MCP_URL": "https://relay.webflowmcp.es/mcp",
|
|
43
|
-
"WEBFLOW_RELAY_MCP_TOKEN": "
|
|
43
|
+
"WEBFLOW_RELAY_MCP_TOKEN": "tok_paste_your_token_here"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
Put this entry only in your user-global MCP client configuration, never in a project file or repository.
|
|
51
|
+
The `tok_...` value is shown once when created in the dashboard and is a revocable bearer credential:
|
|
52
|
+
while your worker is online, anyone holding it can invoke the flows available to your account. Advanced
|
|
53
|
+
or ephemeral environments may inject the same two `WEBFLOW_RELAY_MCP_*` values instead of storing them
|
|
54
|
+
in client configuration. The background worker uses its independent browser-paired `wkr_...` credential
|
|
55
|
+
and never inherits the MCP token. Start and stop it through `start_worker`/`stop_worker`.
|
|
53
56
|
|
|
54
57
|
Gateway mode exposes a stable catalog surface rather than one dynamic tool per saved flow. Discover with
|
|
55
58
|
`browse_catalog`/`search_flows`, inspect with `describe_flow`, and execute saved flows with
|
|
@@ -72,7 +72,7 @@ export class RelayGateway {
|
|
|
72
72
|
if (this.connecting)
|
|
73
73
|
return this.connecting;
|
|
74
74
|
this.connecting = (async () => {
|
|
75
|
-
const client = new Client({ name: 'webflow-local-gateway', version: '0.3.
|
|
75
|
+
const client = new Client({ name: 'webflow-local-gateway', version: '0.3.1' });
|
|
76
76
|
const transport = new StreamableHTTPClientTransport(this.config.url, {
|
|
77
77
|
requestInit: {
|
|
78
78
|
headers: { Authorization: `Bearer ${this.config.token}` },
|
|
@@ -99,6 +99,7 @@ export async function startBackgroundWorker(options = {}) {
|
|
|
99
99
|
args.push('--browser-visibility', options.browserVisibility);
|
|
100
100
|
const childEnvironment = { ...process.env };
|
|
101
101
|
delete childEnvironment[RELAY_MCP_TOKEN_ENV];
|
|
102
|
+
delete childEnvironment.WEBFLOW_MCP_TOKEN;
|
|
102
103
|
const child = spawn(process.execPath, [cliEntryPath, ...args], {
|
|
103
104
|
detached: true,
|
|
104
105
|
stdio: ['ignore', logFd, logFd],
|
|
@@ -5,7 +5,7 @@ import type { BrowserVisibility, GlobalVisibilityPreference } from '../config/we
|
|
|
5
5
|
import type { BrowserMode } from '../runner/types.js';
|
|
6
6
|
import type { SignedFlowRelease } from '../security/flow-release.js';
|
|
7
7
|
export declare const WORKER_PROTOCOL_VERSION = 2;
|
|
8
|
-
export declare const WORKER_VERSION = "0.3.
|
|
8
|
+
export declare const WORKER_VERSION = "0.3.1";
|
|
9
9
|
export declare const SUPPORTED_FLOW_RELEASE_FORMATS: readonly [1];
|
|
10
10
|
export declare const SUPPORTED_FLOW_RUNTIME_APIS: readonly [1];
|
|
11
11
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WebFlowError } from '../shared/errors.js';
|
|
2
2
|
export const WORKER_PROTOCOL_VERSION = 2;
|
|
3
|
-
export const WORKER_VERSION = '0.3.
|
|
3
|
+
export const WORKER_VERSION = '0.3.1';
|
|
4
4
|
export const SUPPORTED_FLOW_RELEASE_FORMATS = [1];
|
|
5
5
|
export const SUPPORTED_FLOW_RUNTIME_APIS = [1];
|
|
6
6
|
function isRecord(value) {
|