IAPL rename: readEnv exported, the MCP server name left as it was, legacy:site needs a database

- readEnv / legacyEnvName exported from the root and /env (a project's own code reads IAPL_* with the IPAL_* fallback);
  the name constants hold the IAPL_ spelling — changelog and env.md say so
- createMcpRoute: the default serverName stays 'ipal-site' (clients see it); the scripted step had changed it
- legacy:site: the builds read the database; the script and PROGRAMISTA say which

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:47:11 +01:00
co-authored by Claude Fable 5.2
parent 926ba4a67e
commit 3d5106bc4a
11 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ runs `initialize` → `tools/list` → and can then call `get_site_info`,
| `content` | — | archive collections (`list_pages`, `get_page` for entries) |
| `summaryField` | — | field with a richer AI description (`buildSummaryField`), preferred in results |
| `isPathVisible` | — (from `createContentHelpers`: set) | `(path, locale) => boolean` — hides pages hidden by under-construction mode |
| `serverName` | `'iapl-site'` | name in `initialize` (and fallback site name) |
| `serverName` | `'ipal-site'` | name in `initialize` (and fallback site name) |
| `serverVersion` | `'1.0.0'` | version in `initialize` |
| `rateLimit` | `{ max: 60, windowMs: 60_000 }` | per-IP limit; `false` = off |
| `clientIp` | — | `{ header?, trustedProxies? }` — where to read the IP from (see [forms.md](./forms.md#client-ip-and-rate-limit)) |