yoke-mcp 0.1.5 → 0.1.7
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 +19 -5
- package/ROADMAP.md +7 -5
- package/dist/mcp-server.d.ts +1 -1
- package/dist/mcp-server.js +1 -1
- package/dist/native-host.js +192 -26
- package/dist/native-host.js.map +1 -1
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# yoke
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/yoke-mcp)
|
|
4
|
+
[](https://chromewebstore.google.com/detail/yoke/mebojgahcmmffbaonhnmmjhmbdbfbamm)
|
|
4
5
|
[](https://github.com/hamzahamidi/yoke/actions/workflows/test.yml)
|
|
5
6
|
[](https://www.npmjs.com/package/yoke-mcp#provenance)
|
|
6
7
|
[](https://nodejs.org)
|
|
@@ -46,7 +47,7 @@ URL fields are reduced to origin and path by default, and `list_tabs` can opt ou
|
|
|
46
47
|
### Small and auditable
|
|
47
48
|
|
|
48
49
|
The package declares zero runtime dependencies and uses Node builtins only. The
|
|
49
|
-
published 0.1.
|
|
50
|
+
published 0.1.7 tarball is 47 files, all first-party.
|
|
50
51
|
|
|
51
52
|
TypeScript throughout with `strict` and `noUncheckedIndexedAccess` on. The wire
|
|
52
53
|
shapes are declared once in `src/protocol.ts` and imported by both halves, so a
|
|
@@ -63,7 +64,7 @@ judge rather than yours to discover.
|
|
|
63
64
|
|
|
64
65
|
The cells describe the verified versions and their defaults. Flags that change an answer are named in the cell or the numbered notes.
|
|
65
66
|
|
|
66
|
-
| Capability | Yoke (npm 0.1.
|
|
67
|
+
| Capability | Yoke (npm 0.1.7) | @playwright/mcp 0.0.79 (2026-08) | chrome-devtools-mcp 1.7.0 (pub. 2026-08-10) | BrowserMCP: server 0.1.3 (2025-04-11), extension 1.3.4 (2025-05-07), unmaintained |
|
|
67
68
|
| --- | --- | --- | --- | --- |
|
|
68
69
|
| Runs in the Chrome profile you are already signed in to | Yes. Chrome spawns the host via `connectNative`; there is no browser-launch code | No by default: its own persistent profile keyed to the client's cwd [1]. Yes with `--extension` | No by default: its own profile at `~/.cache/chrome-devtools-mcp/chrome-profile`. Yes with `--autoConnect` [2] | Yes. A Web Store extension in the running browser |
|
|
69
70
|
| Reaches tabs that were already open | Yes, every tab in every window of every Chrome profile the extension is loaded in [3] | No by default (fresh browser, so those tabs do not exist in it). Yes with `--extension` [4] | No by default. With `--autoConnect`, all windows of one profile [2] | One tab at a time, picked by the human in the popup. No tab listing and no tab creation tool [5] |
|
|
@@ -73,7 +74,7 @@ The cells describe the verified versions and their defaults. Flags that change a
|
|
|
73
74
|
| Runs with your existing cookies and logged-in session | Yes | No by default. Yes with `--extension` [12] | Only with `--autoConnect` [13] | Yes |
|
|
74
75
|
| Marks the tabs it touches | Yes. Any tab it drives or reads joins a visible tab group named "yoke" [14] | No in-tab marker. A separate headed window on its own profile, with automation signals actively suppressed [15] | Nothing added by the server. Chrome's own affordances only, and on `--autoConnect` that is a one-time consent dialog rather than an ongoing marker [16] | Chrome's own debugger infobar, incidental rather than designed, and suppressible [17] |
|
|
75
76
|
| URL redaction on by default | Yes. URL fields are cut to origin plus path; opt out with `full_urls` on `list_tabs` [18] | No. The only mechanism is opt-in substitution of known secret values (`--secrets`) | No, at no setting. Header redaction exists, covers headers only, and is off by default | No. The full page URL is in every snapshot header |
|
|
76
|
-
| Declared runtime dependencies, and install footprint | 0 declared, Node builtins only. The published 0.1.
|
|
77
|
+
| Declared runtime dependencies, and install footprint | 0 declared, Node builtins only. The published 0.1.7 tarball is 47 files, all first-party | 2 declared, both pinned to a 1.63.0 alpha. 19 MB installed. No browser download on the default `chrome` channel | 0 declared, and roughly 14 MB of vendored bundle (puppeteer 25.5.0, lighthouse 13.4.0) [19] | 5 declared, 97 transitive as resolved on 2026-08-24, and rising with no new release [20] |
|
|
77
78
|
|
|
78
79
|
#### Notes, including every place a flag or a version changes the answer
|
|
79
80
|
|
|
@@ -104,9 +105,22 @@ yoke grew out of measurements of Anthropic's Claude in Chrome MCP bridge. That b
|
|
|
104
105
|
|
|
105
106
|
yoke is not affiliated with or endorsed by Anthropic or Google. It works with any client that speaks Model Context Protocol.
|
|
106
107
|
|
|
108
|
+
## Install
|
|
109
|
+
|
|
110
|
+
The extension is on the Chrome Web Store as [Yoke](https://chromewebstore.google.com/detail/yoke/mebojgahcmmffbaonhnmmjhmbdbfbamm). Both halves are needed, because Chrome only hands a native messaging connection to a host it started itself:
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
npm install -g yoke-mcp
|
|
114
|
+
yoke install
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Then add the extension from the link above and run `yoke doctor`, which names the first broken link in the chain rather than leaving you to guess.
|
|
118
|
+
|
|
119
|
+
Every store version is reviewed before it ships, and review takes days, so the listing sits behind npm after a release. The badge at the top says which version is published today. Building from source is how you run the newest extension code.
|
|
120
|
+
|
|
107
121
|
## Install from source
|
|
108
122
|
|
|
109
|
-
|
|
123
|
+
Build from source to run extension code the store has not published yet, or to audit what you are loading.
|
|
110
124
|
|
|
111
125
|
You need Node 22 or later and a Chromium based browser. The manifest requires Chrome 116 or later. Chrome, Chromium, Edge, and Brave registration paths are present. Only macOS has been exercised so far.
|
|
112
126
|
|
|
@@ -281,7 +295,7 @@ From a checkout that has not been linked, replace `yoke` with `node dist/cli.js`
|
|
|
281
295
|
5. Element references expire after navigation or a page render. Console and network history starts when yoke first attaches to that tab, not before.
|
|
282
296
|
6. Screenshots capture the page viewport, not browser chrome such as the address bar or tab strip.
|
|
283
297
|
7. Two different browsers that both run the extension, such as Chrome and Brave, number their tabs independently. A tab id both report is refused rather than routed, because it cannot be sent to both. Two profiles of the same Chrome never collide.
|
|
284
|
-
8. Chrome's internal pages cannot be read or driven. Neither can the Chrome Web Store or the extensions gallery: Chrome refuses both `chrome.scripting` and `chrome.debugger` there, so no extension can automate them, including this one.
|
|
298
|
+
8. Chrome's internal pages cannot be read or driven. Neither can the Chrome Web Store or the extensions gallery: Chrome refuses both `chrome.scripting` and `chrome.debugger` there, so no extension can automate them, including this one. Editing the store listing is therefore manual. Releases reach the store through its API from CI, as described in `docs/store-listing.md`.
|
|
285
299
|
|
|
286
300
|
## Uninstall
|
|
287
301
|
|
package/ROADMAP.md
CHANGED
|
@@ -40,6 +40,8 @@ Theme: prove the thesis. Built, working end to end, not yet tagged or published.
|
|
|
40
40
|
- An icon, at 16, 32, 48 and 128, drawn on an 8 unit grid so every line lands on a pixel boundary at 16.
|
|
41
41
|
- Offline tests for the MCP surface and the redaction, driven without a browser. CI green on Node 22 and 24 across Linux, macOS and Windows.
|
|
42
42
|
- 0.1.4: one endpoint per Chrome profile, named after an id the extension mints and keeps. `list_browsers` names each connected profile, `list_tabs` covers all of them, tab tools route by tab id, and `open_tab` takes `browser` when there is a choice. Closes the wrong-profile case in #6 and #8, where a single per-user endpoint was won by whichever profile connected first.
|
|
43
|
+
- 0.1.7: store releases come from CI. Every `v*` tag uploads the zip CI built to the Chrome Web Store and submits it for review once a person approves the `chrome-web-store` environment, through [publish-to-chrome-web-store](https://github.com/hamzahamidi/publish-to-chrome-web-store) with a 30 minute Workload Identity token, so the repository still holds no long-lived secret. Nothing in the extension or the host changed.
|
|
44
|
+
- 0.1.6: an endpoint is held only by a host that can serve it. Chrome can leave a host holding a pipe whose service worker is gone, and 0.1.5 let that host claim a socket which then accepted every caller and answered each one with a timeout, counted as a browser with no tabs, and kept the endpoint from the profile that could have served it (#19). A host now claims nothing unless the extension answers, gives the endpoint up when the extension stops answering, and waits for an incumbent to let go rather than unlinking a name a live server still holds.
|
|
43
45
|
- 0.1.5: a profile that loses the host comes back. Chrome stops an idle service worker, which takes the scheduled retry with it, so 0.1.4 could sit disconnected until somebody clicked the icon (#12). Browsing now wakes it, the backoff doubles as it always claimed to rather than staying at two seconds, and the message says to click the icon before it says to reinstall. Recovery on a browser nobody is touching is still open, in #15.
|
|
44
46
|
|
|
45
47
|
The acceptance test is one number, and it holds: `list_tabs` returns every tab in the browser rather than the handful inside a managed group. On the machine this was built against that is 41 tabs, all of them addressable.
|
|
@@ -83,12 +85,12 @@ Non-goals: still no recording or macros.
|
|
|
83
85
|
|
|
84
86
|
## v0.4.0: publication
|
|
85
87
|
|
|
86
|
-
Theme: installable by someone who is not us.
|
|
88
|
+
Theme: installable by someone who is not us. Done, inside the 0.1.x line rather than as a release of its own, and the surprise is recorded rather than smoothed over.
|
|
87
89
|
|
|
88
|
-
- Chrome Web Store
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
90
|
+
- On the Chrome Web Store as [Yoke](https://chromewebstore.google.com/detail/yoke/mebojgahcmmffbaonhnmmjhmbdbfbamm), with the privacy policy and the permission justifications `debugger` and host access had to defend. Review keeps its own clock, so the listing sits behind a release until it clears.
|
|
91
|
+
- The store does not honour the pinned `key`, which was the bullet that said verify, and the answer was no. A packaged upload may not carry one, so the store mints an id of its own: a store install is `mebojgahcmmffbaonhnmmjhmbdbfbamm` and an unpacked load stays `oceljemfocgfidhhdlbojkbkmlbfclna`. `yoke install` allowlists both, which is the only reason native messaging works either way.
|
|
92
|
+
- `yoke-mcp` is on npm. 0.1.0 went out by hand, because npm will not configure a trusted publisher for a package that does not exist yet. Every version since publishes from a `v*` tag over OIDC with provenance, and a person approves the `npm` environment before anything reaches the registry.
|
|
93
|
+
- The store package is built by CI from the tag and attached to the release with its SHA-256, so the zip that reaches the store is the one CI built and checked. Contents are reproducible: rebuilding 0.1.5 locally gives files byte identical to the release zip. The archive is not, because zip metadata differs, so an audit compares files rather than digests.
|
|
92
94
|
|
|
93
95
|
## v0.5.x: stabilisation
|
|
94
96
|
|
package/dist/mcp-server.d.ts
CHANGED
package/dist/mcp-server.js
CHANGED
|
@@ -14,7 +14,7 @@ import { createInterface } from 'node:readline';
|
|
|
14
14
|
import { allTabs, askTab, chooseBrowser, displayName, endpointForTabs, unplace, NoSuchBrowser, NoSuchTab, } from './browsers.js';
|
|
15
15
|
import { ask, ExtensionUnavailable, NOT_CONNECTED } from './socket-client.js';
|
|
16
16
|
export const SERVER_NAME = 'yoke';
|
|
17
|
-
export const SERVER_VERSION = '0.1.
|
|
17
|
+
export const SERVER_VERSION = '0.1.7';
|
|
18
18
|
export const PROTOCOL_VERSION = '2024-11-05';
|
|
19
19
|
/**
|
|
20
20
|
* The label on the group holding tabs yoke opened.
|
package/dist/native-host.js
CHANGED
|
@@ -18,6 +18,34 @@ import { dirname } from 'node:path';
|
|
|
18
18
|
import { PROTOCOL, isResponse, } from './protocol.js';
|
|
19
19
|
import { LEGACY_ID, endpointPathFor, isEndpointId } from './socket-path.js';
|
|
20
20
|
const DEFAULT_TIMEOUT_MS = 15_000;
|
|
21
|
+
/**
|
|
22
|
+
* How long the extension has to identify itself before this host gives up on it.
|
|
23
|
+
*
|
|
24
|
+
* Short because the answer comes from a worker that is already running: Chrome
|
|
25
|
+
* spawned this process because that worker asked it to. A window this size is
|
|
26
|
+
* about telling a live extension from an absent one, not about waiting out a
|
|
27
|
+
* slow one.
|
|
28
|
+
*/
|
|
29
|
+
const IDENTIFY_MS = 3_000;
|
|
30
|
+
/**
|
|
31
|
+
* How long an endpoint's current owner has to prove it can still serve it.
|
|
32
|
+
*
|
|
33
|
+
* A connection that is accepted proves only that a process is there. The host
|
|
34
|
+
* that owns a path can have lost its extension and still accept, answer every
|
|
35
|
+
* op with the relay's timeout error, and hold the endpoint a working profile
|
|
36
|
+
* should have. So the question is put to it, and only an answer keeps it.
|
|
37
|
+
*/
|
|
38
|
+
const INCUMBENT_MS = 2_000;
|
|
39
|
+
/**
|
|
40
|
+
* How long the extension gets to answer the ping that decides this host's fate.
|
|
41
|
+
*
|
|
42
|
+
* Its own question rather than a caller's, because a caller may have asked for
|
|
43
|
+
* an answer in half a second and been told no. Long enough that a busy worker
|
|
44
|
+
* still answers, short enough that a successor is not left waiting on a corpse.
|
|
45
|
+
*/
|
|
46
|
+
const CONFIRM_MS = 2_000;
|
|
47
|
+
/** How long a successor waits for an incumbent to let go before leaving it alone. */
|
|
48
|
+
const RETIRE_WAIT_MS = 8_000;
|
|
21
49
|
/** 0700, and verified after creation rather than assumed. */
|
|
22
50
|
function prepareDirectory(socketPath) {
|
|
23
51
|
const dir = dirname(socketPath);
|
|
@@ -64,14 +92,26 @@ export async function main() {
|
|
|
64
92
|
let nextId = 1;
|
|
65
93
|
let server;
|
|
66
94
|
let socketPath;
|
|
95
|
+
let listening = false;
|
|
96
|
+
/**
|
|
97
|
+
* Lets go of the endpoint, with exactly one unlink of the path.
|
|
98
|
+
*
|
|
99
|
+
* `server.close()` is what removes a unix socket, and it removes whatever is
|
|
100
|
+
* at that name rather than the socket it opened. A second unlink from here
|
|
101
|
+
* could therefore delete a successor's socket that took the name in between,
|
|
102
|
+
* which is the same theft this file exists to prevent, arriving late. So the
|
|
103
|
+
* explicit unlink is only for a path this process reserved and never served.
|
|
104
|
+
*/
|
|
67
105
|
const cleanup = () => {
|
|
106
|
+
const path = socketPath;
|
|
107
|
+
socketPath = undefined;
|
|
68
108
|
try {
|
|
69
109
|
server?.close();
|
|
70
110
|
}
|
|
71
111
|
catch { /* never listened */ }
|
|
72
|
-
if (process.platform !== 'win32' &&
|
|
112
|
+
if (!listening && process.platform !== 'win32' && path !== undefined) {
|
|
73
113
|
try {
|
|
74
|
-
unlinkSync(
|
|
114
|
+
unlinkSync(path);
|
|
75
115
|
}
|
|
76
116
|
catch { /* already gone */ }
|
|
77
117
|
}
|
|
@@ -83,6 +123,35 @@ export async function main() {
|
|
|
83
123
|
waiting.set(id, (reply) => { clearTimeout(timer); resolve(reply); });
|
|
84
124
|
writeToChrome({ id, op, args });
|
|
85
125
|
});
|
|
126
|
+
/** True while a confirmation is in flight, so a burst of timeouts asks once. */
|
|
127
|
+
let confirming = false;
|
|
128
|
+
/**
|
|
129
|
+
* Gives the endpoint back when the extension behind it has gone.
|
|
130
|
+
*
|
|
131
|
+
* A request that times out is the first sign, and on its own it only says the
|
|
132
|
+
* extension was slow for one caller's budget, so it is confirmed with a `ping`
|
|
133
|
+
* of this host's own. Two silences mean there is nothing to relay to, and a
|
|
134
|
+
* host in that state is worse than no host: its socket answers every caller
|
|
135
|
+
* with a timeout, and the profile that could serve the endpoint cannot have it
|
|
136
|
+
* while this one holds the name. Letting go is also what lets a successor bind
|
|
137
|
+
* without taking a path out from under a running server.
|
|
138
|
+
*/
|
|
139
|
+
const retireIfTheExtensionIsGone = async () => {
|
|
140
|
+
if (confirming || !listening) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
confirming = true;
|
|
144
|
+
const alive = await askExtension('ping', {}, CONFIRM_MS);
|
|
145
|
+
confirming = false;
|
|
146
|
+
if (alive !== undefined) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
process.stderr.write('the extension stopped answering, so this host is giving up its endpoint and exiting. Chrome can stop '
|
|
150
|
+
+ 'a service worker while leaving this process its pipe, and an endpoint nobody can serve is worse than '
|
|
151
|
+
+ 'none: the next caller is told the extension is not connected, which is true.\n');
|
|
152
|
+
cleanup();
|
|
153
|
+
process.exit(0);
|
|
154
|
+
};
|
|
86
155
|
readFromChrome((message) => {
|
|
87
156
|
if (!isResponse(message)) {
|
|
88
157
|
return;
|
|
@@ -134,6 +203,7 @@ export async function main() {
|
|
|
134
203
|
connection.write(`${JSON.stringify(reply)}\n`);
|
|
135
204
|
}
|
|
136
205
|
catch { /* gone */ }
|
|
206
|
+
void retireIfTheExtensionIsGone();
|
|
137
207
|
}, request.timeoutMs ?? DEFAULT_TIMEOUT_MS);
|
|
138
208
|
waiting.set(id, (reply) => {
|
|
139
209
|
clearTimeout(timer);
|
|
@@ -152,8 +222,22 @@ export async function main() {
|
|
|
152
222
|
// profiles be connected at once. An extension from before the question falls
|
|
153
223
|
// back to the path every earlier release used, so it keeps the behaviour it
|
|
154
224
|
// had rather than landing somewhere new.
|
|
155
|
-
const identity = await askExtension('identify', {},
|
|
156
|
-
|
|
225
|
+
const identity = await askExtension('identify', {}, IDENTIFY_MS);
|
|
226
|
+
// Silence is not an old extension, it is no extension. Chrome can leave this
|
|
227
|
+
// process holding a pipe whose service worker is already gone, and a host that
|
|
228
|
+
// then claims an endpoint serves a socket that answers "the extension did not
|
|
229
|
+
// answer" to everything: a caller sees a browser with no tabs rather than a
|
|
230
|
+
// browser that is not there, and the profile that should own that endpoint
|
|
231
|
+
// cannot take it. Exiting makes liveness one thing, decided here, instead of
|
|
232
|
+
// something every command has to work out for itself.
|
|
233
|
+
if (identity === undefined) {
|
|
234
|
+
process.stderr.write('the extension did not answer, so this host is claiming no endpoint. Chrome starts a host for a '
|
|
235
|
+
+ 'connection its service worker may no longer be there to serve, and a socket nobody answers reads '
|
|
236
|
+
+ 'as a working browser.\n');
|
|
237
|
+
cleanup();
|
|
238
|
+
process.exit(0);
|
|
239
|
+
}
|
|
240
|
+
const claimed = identity.ok ? identity.data?.id : undefined;
|
|
157
241
|
const id = isEndpointId(claimed) ? claimed : LEGACY_ID;
|
|
158
242
|
if (id === LEGACY_ID) {
|
|
159
243
|
process.stderr.write('the extension in this profile does not say which profile it is, so this host is using the shared '
|
|
@@ -168,12 +252,23 @@ export async function main() {
|
|
|
168
252
|
// disk when that profile last loaded it. Relying on the extension to
|
|
169
253
|
// self-restrict only works once every profile has been reloaded, which is not
|
|
170
254
|
// something this can assume.
|
|
171
|
-
const listed = await askExtension('listTabs', {},
|
|
172
|
-
// Silence
|
|
173
|
-
//
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
255
|
+
const listed = await askExtension('listTabs', {}, IDENTIFY_MS);
|
|
256
|
+
// Silence used to be given the benefit of the doubt here, which let a worker
|
|
257
|
+
// that died between the two questions take an endpoint on the strength of the
|
|
258
|
+
// first one. Naming itself is not the same as being able to serve, so the rule
|
|
259
|
+
// is the same as above: only an answer counts.
|
|
260
|
+
if (listed === undefined) {
|
|
261
|
+
process.stderr.write('the extension named this profile and then stopped answering, so this host is claiming no endpoint. '
|
|
262
|
+
+ 'Chrome can stop a service worker between one question and the next, and an endpoint it holds '
|
|
263
|
+
+ 'without being able to serve it is worse than none.\n');
|
|
264
|
+
cleanup();
|
|
265
|
+
process.exit(0);
|
|
266
|
+
}
|
|
267
|
+
// An error means the profile could not answer at all, which includes
|
|
268
|
+
// "No current window", and is not drivable.
|
|
269
|
+
const drivable = listed.ok
|
|
270
|
+
&& Array.isArray(listed.data?.tabs)
|
|
271
|
+
&& (listed.data.tabs.length > 0);
|
|
177
272
|
if (!drivable) {
|
|
178
273
|
process.stderr.write('this Chrome profile has no tabs, so it is not claiming a yoke endpoint: a caller driving it '
|
|
179
274
|
+ 'would be operating a browser nobody can see.\n');
|
|
@@ -182,7 +277,20 @@ export async function main() {
|
|
|
182
277
|
socketPath = endpointPathFor(id);
|
|
183
278
|
prepareDirectory(socketPath);
|
|
184
279
|
await claimEndpoint(socketPath);
|
|
280
|
+
// Two hosts can reach a freed name in the same breath, and the one that loses
|
|
281
|
+
// gets EADDRINUSE. Without this it is an unhandled error event and a stack
|
|
282
|
+
// trace in the extension's log; with it, the loser is simply the one that
|
|
283
|
+
// leaves, which is what it would have done had it asked a moment later.
|
|
284
|
+
//
|
|
285
|
+
// Only that one is ordinary. A permission error, a descriptor limit or a
|
|
286
|
+
// filesystem that will not hold the socket are all reasons this host could not
|
|
287
|
+
// do its job, and exiting 0 on them would tell Chrome everything went fine.
|
|
288
|
+
server.on('error', (failure) => {
|
|
289
|
+
process.stderr.write(`this host could not take ${String(socketPath)}: ${failure.message}\n`);
|
|
290
|
+
process.exit(failure.code === 'EADDRINUSE' ? 0 : 1);
|
|
291
|
+
});
|
|
185
292
|
server.listen(socketPath, () => {
|
|
293
|
+
listening = true;
|
|
186
294
|
if (process.platform !== 'win32' && socketPath !== undefined) {
|
|
187
295
|
chmodSync(socketPath, 0o600);
|
|
188
296
|
}
|
|
@@ -202,11 +310,23 @@ export async function main() {
|
|
|
202
310
|
* the person was looking at, with no error anywhere. Observed as `list_tabs`
|
|
203
311
|
* returning 0 while the visible window held 40 tabs.
|
|
204
312
|
*
|
|
205
|
-
* So
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
313
|
+
* So the owner is asked to prove it: a `ping`, which only reaches an answer
|
|
314
|
+
* through an extension that is still there. A connect that merely succeeds
|
|
315
|
+
* proves a process is listening, which a host that has outlived its service
|
|
316
|
+
* worker also manages. What the answer decides:
|
|
317
|
+
*
|
|
318
|
+
* - An answer means a live host owns the path and this one has nothing to offer,
|
|
319
|
+
* so it exits and Chrome surfaces that to the extension rather than the two of
|
|
320
|
+
* them trading the socket back and forth.
|
|
321
|
+
* - A refused connection means nothing is listening and the file is what a host
|
|
322
|
+
* killed before it could clean up left behind. Unlinking it is the only way
|
|
323
|
+
* past it, and nothing can lose by it.
|
|
324
|
+
* - Silence from something that did accept the connection means a host that has
|
|
325
|
+
* lost its extension and has not noticed yet. The ping is what makes it notice,
|
|
326
|
+
* and it lets the endpoint go itself. This one waits for that rather than
|
|
327
|
+
* unlinking, because `server.close()` removes whatever holds the name when it
|
|
328
|
+
* runs: binding over a live server means losing the socket later, when that
|
|
329
|
+
* server stops.
|
|
210
330
|
*/
|
|
211
331
|
async function claimEndpoint(socketPath) {
|
|
212
332
|
if (process.platform === 'win32') {
|
|
@@ -215,23 +335,69 @@ async function claimEndpoint(socketPath) {
|
|
|
215
335
|
if (!existsSync(socketPath)) {
|
|
216
336
|
return;
|
|
217
337
|
}
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
.on('connect', () => { probe.destroy(); resolve(true); })
|
|
221
|
-
.on('error', () => resolve(false));
|
|
222
|
-
// A socket that neither connects nor errors is not a working host either.
|
|
223
|
-
setTimeout(() => { probe.destroy(); resolve(false); }, 500).unref();
|
|
224
|
-
});
|
|
225
|
-
if (alive) {
|
|
338
|
+
const owner = await askOwner(socketPath);
|
|
339
|
+
if (owner === 'answering') {
|
|
226
340
|
process.stderr.write(`another yoke host already owns ${socketPath}. This one is exiting rather than taking it, `
|
|
227
341
|
+ 'because doing so would point the server at a different browser profile. Each profile '
|
|
228
342
|
+ 'gets its own endpoint once its extension has been reloaded at chrome://extensions.\n');
|
|
229
343
|
process.exit(0);
|
|
230
344
|
}
|
|
231
|
-
|
|
232
|
-
|
|
345
|
+
if (owner === 'nobody') {
|
|
346
|
+
// Nothing is listening, so the file is what a host killed before it could
|
|
347
|
+
// clean up leaves behind, and removing it is the only way past it.
|
|
348
|
+
try {
|
|
349
|
+
unlinkSync(socketPath);
|
|
350
|
+
}
|
|
351
|
+
catch { /* nothing there */ }
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
// Listening and not answering: a host that has lost its extension. The ping
|
|
355
|
+
// above is what makes it notice, and it gives the endpoint up itself.
|
|
356
|
+
//
|
|
357
|
+
// Waiting rather than unlinking, because `server.close()` removes whatever
|
|
358
|
+
// holds the name at the moment it runs, not the socket it opened. Taking the
|
|
359
|
+
// path from a server that is still up means losing it later, when that server
|
|
360
|
+
// finally stops and takes the successor's socket with it.
|
|
361
|
+
const deadline = Date.now() + RETIRE_WAIT_MS;
|
|
362
|
+
while (existsSync(socketPath)) {
|
|
363
|
+
if (Date.now() > deadline) {
|
|
364
|
+
process.stderr.write(`the host on ${socketPath} is not answering and has not let go, so this one is exiting rather `
|
|
365
|
+
+ 'than taking a name another process is still serving.\n');
|
|
366
|
+
process.exit(0);
|
|
367
|
+
}
|
|
368
|
+
await new Promise((resolve) => { setTimeout(resolve, 100); });
|
|
233
369
|
}
|
|
234
|
-
|
|
370
|
+
}
|
|
371
|
+
function askOwner(socketPath) {
|
|
372
|
+
return new Promise((resolve) => {
|
|
373
|
+
const probe = connect(socketPath);
|
|
374
|
+
let text = '';
|
|
375
|
+
let connected = false;
|
|
376
|
+
const settle = (value) => { probe.destroy(); resolve(value); };
|
|
377
|
+
// Longer than the budget the question carries, so the host's own answer
|
|
378
|
+
// arrives first and a timeout here means it did not even manage that.
|
|
379
|
+
const timer = setTimeout(() => { settle(connected ? 'silent' : 'nobody'); }, INCUMBENT_MS + 500);
|
|
380
|
+
timer.unref();
|
|
381
|
+
probe.on('connect', () => {
|
|
382
|
+
connected = true;
|
|
383
|
+
probe.write(`${JSON.stringify({ op: 'ping', args: {}, timeoutMs: INCUMBENT_MS })}\n`);
|
|
384
|
+
});
|
|
385
|
+
probe.on('data', (chunk) => {
|
|
386
|
+
text += chunk.toString('utf8');
|
|
387
|
+
const cut = text.indexOf('\n');
|
|
388
|
+
if (cut === -1) {
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
clearTimeout(timer);
|
|
392
|
+
try {
|
|
393
|
+
settle(JSON.parse(text.slice(0, cut)).ok === true ? 'answering' : 'silent');
|
|
394
|
+
}
|
|
395
|
+
catch {
|
|
396
|
+
settle('silent');
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
probe.on('error', () => { clearTimeout(timer); settle('nobody'); });
|
|
400
|
+
});
|
|
235
401
|
}
|
|
236
402
|
// Runs unconditionally, because this file exists only to be executed.
|
|
237
403
|
//
|
package/dist/native-host.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-host.js","sourceRoot":"","sources":["../src/native-host.ts"],"names":[],"mappings":";AACA,wDAAwD;AACxD,EAAE;AACF,kEAAkE;AAClE,kEAAkE;AAClE,gFAAgF;AAChF,iFAAiF;AACjF,iCAAiC;AACjC,EAAE;AACF,iFAAiF;AACjF,iFAAiF;AACjF,wEAAwE;AACxE,gFAAgF;AAChF,0CAA0C;AAC1C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,YAAY,EAA4B,MAAM,UAAU,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EACL,QAAQ,EAAE,UAAU,GACrB,MAAM,eAAe,CAAC;AACvB,O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AK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAsB,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;YACpG,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,CAAC,QAAQ,CAAC,CAAC;YACnB,CAAC;QACH,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,sEAAsE;AACtE,EAAE;AACF,4EAA4E;AAC5E,iFAAiF;AACjF,8EAA8E;AAC9E,6EAA6E;AAC7E,+EAA+E;AAC/E,iFAAiF;AACjF,qBAAqB;AACrB,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE;IAC5B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/extension/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yoke-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "MCP server for the Chrome you are already signed in to. Every tab in every window, addressed by tab id, with no second profile and no browser-wide debugging port.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"yoke": "dist/cli.js"
|