telegram-notifications-mcp 0.0.0-stage → 1.0.0

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/.env.example ADDED
@@ -0,0 +1,6 @@
1
+ TELEGRAM_DEV_BOT_TOKEN=
2
+ TELEGRAM_OPS_BOT_TOKEN=
3
+ # TELEGRAM_MCP_DISCOVERY_ENABLED=true
4
+ # TELEGRAM_MCP_ALLOWED_HOSTS=notify.example.com
5
+ # Optional hosted administrator key (32-256 of A-Z a-z 0-9 - _); overrides the managed key.
6
+ # TELEGRAM_MCP_ADMIN_KEY=
package/Dockerfile ADDED
@@ -0,0 +1,29 @@
1
+ FROM node:22-alpine AS build
2
+
3
+ WORKDIR /app
4
+ COPY package.json package-lock.json ./
5
+ RUN npm ci
6
+ COPY tsconfig.json ./
7
+ COPY src ./src
8
+ RUN npm run build
9
+
10
+ FROM node:22-alpine AS runtime
11
+
12
+ ENV NODE_ENV=production
13
+ ENV TELEGRAM_MCP_HOST=0.0.0.0
14
+ ENV TELEGRAM_MCP_PORT=3000
15
+ ENV TELEGRAM_NOTIF_CONFIG_FILE=/data/config.json
16
+
17
+ WORKDIR /app
18
+ COPY package.json package-lock.json ./
19
+ RUN npm ci --omit=dev && npm cache clean --force
20
+ COPY --from=build /app/dist ./dist
21
+ RUN mkdir -p /data && chown node:node /data && chmod 700 /data
22
+
23
+ USER node
24
+ EXPOSE 3000
25
+ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
26
+ CMD node -e "fetch('http://127.0.0.1:3000/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
27
+
28
+ ENTRYPOINT ["node", "dist/cli.js"]
29
+ CMD ["serve", "--http", "--initialize"]
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Steve Oziel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.