dsh-mcp-ops 0.2.0 → 0.2.2

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/lib/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import Schema from "@deepseek-ai/schemastery";
2
2
  import { McpOpsService } from "./service.js";
3
+ import { ensureSystemCaTrust } from "./system-ca.js";
3
4
  const name = "mcp-ops";
4
- const inject = ["credentials", "tools"];
5
+ const inject = ["credentials", "tools", "mcpManager"];
5
6
  const Config = Schema.object({
6
7
  injectGlobalEnvToStdio: Schema.boolean().default(true),
7
8
  remoteTypeSpelling: Schema.union([
@@ -14,6 +15,11 @@ function apply(ctx, config) {
14
15
  const banner = `dsh-mcp-ops: host half loaded \u2014 injectGlobalEnvToStdio=${String(config.injectGlobalEnvToStdio)}, remoteTypeSpelling=${config.remoteTypeSpelling}`;
15
16
  if (process.env.DSH_MCP_OPS_DEBUG !== void 0) process.stderr.write(`${banner}
16
17
  `);
18
+ const trust = ensureSystemCaTrust();
19
+ if (process.env.DSH_MCP_OPS_DEBUG !== void 0) {
20
+ process.stderr.write(`dsh-mcp-ops: system CA \u2014 applied=${String(trust.applied)} added=${String(trust.added)} system=${String(trust.system)}${trust.reason === void 0 ? "" : ` reason=${trust.reason}`}
21
+ `);
22
+ }
17
23
  ctx.inject(["logger"], (loggerCtx) => {
18
24
  loggerCtx.logger.info(banner);
19
25
  });