/** * Cordis plugin that provides the managed MCP runtime on `ctx.mcp`. * @module @anht3889/dsh-mcp-mgmt-bundle/manager */ import type { Context } from '@deepseek-ai/cordis'; import z from '@deepseek-ai/schemastery'; export { McpManagerRuntime } from './runtime.ts'; export type { McpManagerRuntimeConfig, McpManagerRuntimeOptions } from './runtime.ts'; /** Cordis plugin name used by loader diagnostics. */ export declare const name = "mcp-manager"; /** The MCP manager requires the tool registry. */ export declare const inject: string[]; /** Optional paths for MCP catalog and fallback secret storage. */ export interface Config { /** Durable non-secret MCP server records. */ catalogPath?: string; /** Private fallback storage used when credentials are unavailable. */ secretsPath?: string; /** Browser-visible base URL used by OAuth redirect URIs. */ publicOrigin?: string; /** * Trusts the host's certificate authorities in addition to Node's bundled * ones, for MCP servers behind a private CA. This widens TLS trust for the * whole host process, so it stays off until an operator asks for it. */ trustSystemCertificates?: boolean; /** * When false, the plugin registers only OAuth callback routes and omits the * `/mcp-management` HTTP API. Defaults to true. Set false when the host is * not DSH Web. */ serveManagementHttpApi?: boolean; } /** Loader schema with one shared user-home location for MCP data. */ export declare const Config: z; /** * Loads configured MCP servers, publishes `ctx.mcp`, and disposes every * connection when the plugin fiber unloads. * @param ctx - plugin context containing the tool registry. * @param config - resolved MCP storage paths, TLS trust, and HTTP API choice. */ export declare function apply(ctx: Context, config?: Config): Promise;