bc-webclient-mcp
Version:
Model Context Protocol (MCP) server for Microsoft Dynamics 365 Business Central via WebUI protocol. Enables AI assistants to interact with BC through the web client protocol, supporting Card, List, and Document pages with full line item support and server
48 lines • 1.7 kB
TypeScript
/**
* Prompt Registry
*
* Provides parameterized workflow templates for common BC operations.
* Prompts guide AI assistants through multi-step BC workflows.
*/
import type { PromptArgument, GetPromptResult } from '../services/mcp-server.js';
/**
* Template for a prompt with arguments and markdown content.
*/
export interface PromptTemplate {
readonly name: string;
readonly description: string;
readonly arguments: readonly PromptArgument[];
readonly template: string;
}
/**
* Renders a prompt template with provided arguments.
* Replaces {{key}} placeholders with values from args.
*
* @param template - The template string with {{key}} placeholders
* @param args - Record of key-value pairs for interpolation
* @returns Rendered template string
*/
export declare function renderPrompt(template: string, args: Record<string, string>): string;
/**
* Starter prompts for common BC workflows.
*/
export declare const PROMPTS: readonly PromptTemplate[];
/**
* Lists all available prompts.
* @returns Array of prompt templates
*/
export declare function listPrompts(): readonly PromptTemplate[];
/**
* Gets a prompt by name.
* @param name - The prompt name
* @returns The prompt template or undefined if not found
*/
export declare function getPromptByName(name: string): PromptTemplate | undefined;
/**
* Builds a GetPromptResult by rendering a template with arguments.
* @param template - The prompt template
* @param args - Arguments to interpolate
* @returns GetPromptResult with rendered prompt
*/
export declare function buildPromptResult(template: PromptTemplate, args: Record<string, string>): GetPromptResult;
//# sourceMappingURL=index.d.ts.map