// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.

/**
 * @objectstack/connector-mcp
 *
 * A generic adapter that turns *any* Model Context Protocol (MCP) server into a
 * {@link Connector} registered on the automation engine (ADR-0024). On connect
 * it lists the server's tools and maps each one to a connector action; the
 * baseline `connector_action` node then dispatches calls to the server's
 * `tools/call`. One adapter unlocks the entire MCP ecosystem with no per-server
 * code — and, because MCP is itself an LLM tool protocol, every imported tool
 * doubles as an AI tool under ADR-0011.
 *
 * Open-source scope: the MCP client adapter (stdio + http transports),
 * `tools/list` → actions, `tools/call` dispatch, and operator-supplied static
 * credentials passed through the transport. A curated server registry, managed
 * secrets, per-tenant lifecycle, and sandboxed stdio execution are the
 * enterprise tier (ADR-0024 §4).
 */

export {
    createMcpConnector,
    type McpConnectorOptions,
    type McpConnectorBundle,
    type McpTransport,
    type McpToolDescriptor,
    type McpClientLike,
} from './mcp-connector.js';
export {
    ConnectorMcpPlugin,
    type ConnectorMcpPluginOptions,
    type ConnectorRegistrySurface,
} from './connector-mcp-plugin.js';
