claudemesh-cli 1.0.2 → 1.0.3
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/dist/entrypoints/mcp.js
CHANGED
|
@@ -3558,7 +3558,7 @@ __export(exports_urls, {
|
|
|
3558
3558
|
VERSION: () => VERSION,
|
|
3559
3559
|
URLS: () => URLS
|
|
3560
3560
|
});
|
|
3561
|
-
var URLS, VERSION = "1.0.
|
|
3561
|
+
var URLS, VERSION = "1.0.3", env;
|
|
3562
3562
|
var init_urls = __esm(() => {
|
|
3563
3563
|
URLS = {
|
|
3564
3564
|
BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
|
|
@@ -4609,7 +4609,19 @@ async function startMcpServer() {
|
|
|
4609
4609
|
if (serviceIdx !== -1 && process.argv[serviceIdx + 1]) {
|
|
4610
4610
|
return startServiceProxy(process.argv[serviceIdx + 1]);
|
|
4611
4611
|
}
|
|
4612
|
+
const meshIdx = process.argv.indexOf("--mesh");
|
|
4613
|
+
const onlyMesh = meshIdx !== -1 ? process.argv[meshIdx + 1] : null;
|
|
4612
4614
|
const config = readConfig();
|
|
4615
|
+
if (onlyMesh) {
|
|
4616
|
+
const available = config.meshes.map((m) => m.slug);
|
|
4617
|
+
const filtered = config.meshes.filter((m) => m.slug === onlyMesh);
|
|
4618
|
+
if (filtered.length === 0) {
|
|
4619
|
+
process.stderr.write(`[claudemesh] --mesh "${onlyMesh}" not found in config. ` + `Joined meshes: ${available.join(", ") || "(none)"}
|
|
4620
|
+
`);
|
|
4621
|
+
process.exit(1);
|
|
4622
|
+
}
|
|
4623
|
+
config.meshes = filtered;
|
|
4624
|
+
}
|
|
4613
4625
|
const myName = config.displayName ?? "unnamed";
|
|
4614
4626
|
const myRole = config.role ?? process.env.CLAUDEMESH_ROLE ?? null;
|
|
4615
4627
|
const myGroups = (config.groups ?? []).map((g) => `@${g.name}${g.role ? ":" + g.role : ""}`).join(", ") || "none";
|
|
@@ -6666,4 +6678,4 @@ startMcpServer().catch((err) => {
|
|
|
6666
6678
|
process.exit(1);
|
|
6667
6679
|
});
|
|
6668
6680
|
|
|
6669
|
-
//# debugId=
|
|
6681
|
+
//# debugId=14E079338155978264756E2164756E21
|