adhdev 0.9.74 → 0.9.75
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/cli/index.js +118 -19
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +48 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/vendor/mcp-server/index.js +12 -2
- package/vendor/mcp-server/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1523,7 +1523,17 @@ async function startMcpServer(opts) {
|
|
|
1523
1523
|
const isLocal = opts.mode === "local";
|
|
1524
1524
|
if (opts.meshId) {
|
|
1525
1525
|
let mesh;
|
|
1526
|
-
if (
|
|
1526
|
+
if (!mesh && process.env.ADHDEV_INLINE_MESH) {
|
|
1527
|
+
try {
|
|
1528
|
+
mesh = JSON.parse(process.env.ADHDEV_INLINE_MESH);
|
|
1529
|
+
process.stderr.write(`[adhdev-mcp] Loaded mesh config from ADHDEV_INLINE_MESH env
|
|
1530
|
+
`);
|
|
1531
|
+
} catch (e) {
|
|
1532
|
+
process.stderr.write(`[adhdev-mcp] Failed to parse ADHDEV_INLINE_MESH: ${e.message}
|
|
1533
|
+
`);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
if (!mesh && opts.mode === "cloud" && opts.apiKey) {
|
|
1527
1537
|
try {
|
|
1528
1538
|
const base = opts.baseUrl || "https://api.adhf.dev";
|
|
1529
1539
|
const res = await fetch(`${base}/api/v1/repo-meshes/${opts.meshId}`, {
|
|
@@ -1614,7 +1624,7 @@ async function startMcpServer(opts) {
|
|
|
1614
1624
|
coordinatorPrompt = `You are a Repo Mesh Coordinator for "${mesh.name}" (${mesh.repoIdentity}). Use mesh_* tools to orchestrate work.`;
|
|
1615
1625
|
}
|
|
1616
1626
|
const server2 = new import_server.Server(
|
|
1617
|
-
{ name: "adhdev-mcp-server", version: "0.9.
|
|
1627
|
+
{ name: "adhdev-mcp-server", version: "0.9.75" },
|
|
1618
1628
|
{ capabilities: { tools: {}, resources: {} } }
|
|
1619
1629
|
);
|
|
1620
1630
|
const { ListResourcesRequestSchema, ReadResourceRequestSchema } = await import("@modelcontextprotocol/sdk/types.js");
|