The MCP manager imported validation, probe, status, and authorization values from the mcp-client plugin entry and mounted its servers through a static import of that entry. Plugin entries may export only what the Loader loads, and the static references break source reloads: when mcp-client also has its own Loader entry, a reload replaces only mcp-client, and HMR replaces the instances the manager mounted without the manager knowing, so it keeps the old code, reports stale status, and cannot stop the replacement instance. An mcp-client entry loaded with `host: true` now provides `ctx.mcpClientHost`. The host validates a server configuration through its transport's own schema, so refusals still name the field; mounts instances below its own Fiber; probes; and creates OAuth authorization owners from its own context. The manager injects the host, imports only mcp-client types, and passes `reconnect` and `oauth` to the host unresolved. Replacing the host disposes its instances and restarts the manager against the replacement. The Web composition mounts the host row before the manager. The entry stops exporting probeServer, connectionStatusOf, assertTemplateSyntax, resolveReconnectPolicy, ReconnectSchema, SERVER_NAME_PATTERN, McpOAuthAuthorization, and OAuthSchema, and the plugin entry export list keeps only createMcpToolDefinition for it.
11 lines
466 B
YAML
11 lines
466 B
YAML
# Bilingual-pair consistency record for capability-seams.md (docs/i18n/README.md): per heading
|
|
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
# After editing either side, bring the other along and re-record with:
|
|
# pnpm run verify-translation-pairing --write docs/capability-seams.md
|
|
/:
|
|
en: 41d772192075e133
|
|
zh: 5ef3da69b4de1d8a
|
|
/capability-seams-and-core-services:
|
|
en: 6355651b822ad47c
|
|
zh: dadfa336d8881ad7
|