import type { DocCategory } from '@salesforce/b2c-tooling-sdk/docs'; import type { ProjectType } from '@salesforce/b2c-tooling-sdk/discovery'; import type { McpTool } from '../../utils/index.js'; import type { Services } from '../../services.js'; /** * Server-startup context baked into the documentation tools. */ export interface DocsToolContext { /** * Workspace type(s) detected at startup. Baked into the search/list * tool descriptions and used as the default workspace context so results * favor the current workspace. */ detectedWorkspaces?: readonly ProjectType[]; /** * A launch-time allowlist of documentation categories (from `--docs-topics`). * When set, the docs tools expose ONLY these categories — a hard boundary the * per-call `category`/`workspace` narrowing operates within. */ enabledCategories?: readonly DocCategory[]; } /** * Builds the documentation tools with the given server-startup context. */ export declare function createDocsTools(loadServices: () => Promise | Services, context?: DocsToolContext): McpTool[];