timetable-api-node 1.8.15 → 1.8.17
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/index.ts +9 -0
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -380,6 +380,15 @@ app.get("/.well-known/glama.json", (req, res) => {
|
|
|
380
380
|
res.sendFile(path.join(__dirname, "glama.json"));
|
|
381
381
|
});
|
|
382
382
|
|
|
383
|
+
// ChatGPT plugin directory domain check: the portal reads this exact token as plain
|
|
384
|
+
// text before it lets the MCP server be submitted. Not a secret; it only proves we
|
|
385
|
+
// control api.lad.lviv.ua.
|
|
386
|
+
const OPENAI_APPS_CHALLENGE = "KSs9ImBWcC7R_bj1oUcI0cG5EOfHQzFBLgtk8__zim8";
|
|
387
|
+
app.get("/.well-known/openai-apps-challenge", (req, res) => {
|
|
388
|
+
setStaticAssetCache(res, 3600);
|
|
389
|
+
res.type("text/plain").send(OPENAI_APPS_CHALLENGE);
|
|
390
|
+
});
|
|
391
|
+
|
|
383
392
|
app.get("/server.json", (req, res) => {
|
|
384
393
|
setStaticAssetCache(res, 3600 * 24 * 7);
|
|
385
394
|
res.sendFile(path.join(__dirname, "server.json"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "timetable-api-node",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.17",
|
|
4
4
|
"description": "Lviv (Ukraine) public transport REST API and read-only Model Context Protocol (MCP) server: stops, timetables, routes, live vehicle positions, GTFS/GTFS-RT. No API key required.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"type": "module",
|