omni-notify-mcp 1.3.7 → 1.3.8

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/ui/server.js CHANGED
@@ -141,6 +141,7 @@ function mergePreservingSecrets(existing, update) {
141
141
  return merged;
142
142
  }
143
143
  const app = express();
144
+ app.use((req, _res, next) => { console.log(`[${new Date().toISOString()}] ${req.method} ${req.url} UA:${req.headers['user-agent']?.slice(0, 60)}`); next(); });
144
145
  app.use(express.json());
145
146
  app.use(express.static(PUBLIC_DIR));
146
147
  const ntfySubscribers = new Map();
@@ -205,6 +206,9 @@ function handleNtfyJson(req, res) {
205
206
  }, 30_000);
206
207
  req.on("close", () => { clearInterval(keepalive); ntfySubscribers.get(topic)?.delete(sub); });
207
208
  }
209
+ // ntfy health + info endpoints — app checks these before subscribing
210
+ app.get("/v1/health", (_req, res) => res.json({ healthy: true }));
211
+ app.get("/v1/info", (_req, res) => res.json({ version: "2.11.0", sha: "n/a" }));
208
212
  // ntfy app hits /:topic/sse or /:topic/json (no /ntfy/ prefix)
209
213
  app.get("/:topic/sse", (req, res) => {
210
214
  if (["api", "auth", "mcp", "assets", "ntfy"].includes(req.params.topic)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omni-notify-mcp",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "An MCP server that lets AI agents (Claude, Cursor, etc.) reach you on any channel — desktop, Telegram, SMS, email — with two-way ask/reply, real-time inbox push, Do Not Disturb, idle gating, multi-session routing, and a one-page web UI for setup. Zero config code; configure once, agents call notify/ask.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
package/ui/public/app.js CHANGED
@@ -83,7 +83,7 @@ function populateForm() {
83
83
  $("ntfy-enabled").checked = !!ntfy.enabled;
84
84
  $("ntfy-topic").value = ntfy.topic ?? "";
85
85
  const defaultUrl = `${location.protocol}//${location.hostname}:${location.port || (location.protocol === 'https:' ? 443 : 80)}`;
86
- $("ntfy-server-url").value = ntfy.serverUrl || defaultUrl;
86
+ $("ntfy-server-url").value = (ntfy.serverUrl || defaultUrl).replace(/\/ntfy\/?$/, "");
87
87
 
88
88
  // Discord
89
89
  const dc = config.discord ?? {};