@hotmeshio/long-tail 0.5.1 → 0.5.2

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.
@@ -59,6 +59,7 @@ export declare class LTExpressAdapter {
59
59
  /**
60
60
  * Return a self-contained Express Router that serves:
61
61
  * - `/api/*` — Long Tail API routes (auth, tasks, escalations, etc.)
62
+ * - `/mcp` — MCP streamable-HTTP transport (Claude Desktop, Cursor, agents)
62
63
  * - `/health` — health check
63
64
  * - Static dashboard assets
64
65
  * - SPA fallback with injected `<base href>` and `window.__LT_BASE__`
@@ -41,6 +41,7 @@ const fs_1 = require("fs");
41
41
  const path_1 = __importDefault(require("path"));
42
42
  const express_1 = __importStar(require("express"));
43
43
  const routes_1 = __importDefault(require("../routes"));
44
+ const mcp_endpoint_1 = __importDefault(require("../routes/mcp-endpoint"));
44
45
  const events_1 = require("../lib/events");
45
46
  const socketio_1 = require("../lib/events/socketio");
46
47
  const nats_1 = require("../lib/events/nats");
@@ -134,6 +135,7 @@ class LTExpressAdapter {
134
135
  /**
135
136
  * Return a self-contained Express Router that serves:
136
137
  * - `/api/*` — Long Tail API routes (auth, tasks, escalations, etc.)
138
+ * - `/mcp` — MCP streamable-HTTP transport (Claude Desktop, Cursor, agents)
137
139
  * - `/health` — health check
138
140
  * - Static dashboard assets
139
141
  * - SPA fallback with injected `<base href>` and `window.__LT_BASE__`
@@ -147,6 +149,8 @@ class LTExpressAdapter {
147
149
  });
148
150
  // API routes — internal routes handle their own JWT auth
149
151
  router.use('/api', routes_1.default);
152
+ // MCP streamable-HTTP transport — same endpoint as standalone server
153
+ router.use('/mcp', mcp_endpoint_1.default);
150
154
  // Dashboard static assets
151
155
  const dashboardDist = this.resolveDashboardDist();
152
156
  if (dashboardDist) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/long-tail",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Long Tail Workflows — Durable AI workflows with human-in-the-loop escalation. Powered by PostgreSQL.",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",