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:
co-authored by
Claude Fable 5.2
parent
926ba4a67e
commit
3d5106bc4a
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
export { legacyEnvName, readEnv } from '../shared/envName.js'
|
||||
export { assertEnv } from './assertEnv.js'
|
||||
export type { AssertEnvOptions, EnvKind, EnvRule } from './assertEnv.js'
|
||||
export { checkDatabaseName, databaseNameFromUri, databaseNamesFor } from './databaseName.js'
|
||||
|
||||
@@ -71,7 +71,7 @@ export type CreateMcpRouteArgs = {
|
||||
* `false` = off (a limiter in front, e.g. Cloudflare WAF rate limiting).
|
||||
*/
|
||||
rateLimit?: { max?: number; windowMs?: number } | false
|
||||
/** Server name advertised in `initialize`. Default 'iapl-site'. */
|
||||
/** Server name advertised in `initialize`. Default 'ipal-site'. */
|
||||
serverName?: string
|
||||
/** Server version advertised in `initialize`. Default '1.0.0'. */
|
||||
serverVersion?: string
|
||||
@@ -104,7 +104,7 @@ export function createMcpRoute(args: CreateMcpRouteArgs) {
|
||||
getCachedPayload,
|
||||
isPathVisible,
|
||||
maxBatch = 10,
|
||||
serverName = 'iapl-site',
|
||||
serverName = 'ipal-site',
|
||||
serverVersion = '1.0.0',
|
||||
settingsSlug = 'site-settings',
|
||||
summaryField,
|
||||
|
||||
Reference in New Issue
Block a user