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
42 lines • 1.52 kB
TypeScript
/**
* BC Page Schema Resource
*
* Provides a list of available Business Central pages with IDs, types, and capabilities.
* This helps AI assistants discover and understand BC pages.
*
* NOTE: This version uses a static list of common BC pages.
* Future versions could query BC metadata dynamically.
*/
import type { Result } from '../core/result.js';
import type { BCError } from '../core/errors.js';
import type { IMCPResource, ILogger } from '../core/interfaces.js';
/**
* Schema entry for a BC page.
*/
export interface BCPageSchemaEntry {
readonly pageId: string;
readonly name: string;
readonly type: 'Card' | 'List' | 'Document' | 'Worksheet' | string;
readonly description?: string;
readonly primaryKeyFields?: readonly string[];
readonly supportsCreate?: boolean;
readonly supportsDelete?: boolean;
readonly category?: string;
}
/**
* BCSchemaPagesResource provides metadata about available BC pages.
*/
export declare class BCSchemaPagesResource implements IMCPResource {
private readonly logger?;
readonly uri = "bc://schema/pages";
readonly name = "Business Central Page Schema";
readonly description = "List of available BC pages with IDs, types, and capabilities.";
readonly mimeType = "application/json";
constructor(logger?: ILogger | undefined);
/**
* Reads the BC page schema.
* @returns JSON array of BC pages
*/
read(): Promise<Result<string, BCError>>;
}
//# sourceMappingURL=schema-pages-resource.d.ts.map