UNPKG

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

29 lines 912 B
import type { BCConfig } from './types.js'; /** * Azure AD Authentication using Device Code Flow * This is ideal for CLI/headless scenarios */ export declare class BCAuth { private msalClient; private config; constructor(config: BCConfig); /** * Authenticate using Device Code Flow * User will be prompted to visit a URL and enter a code */ authenticateDeviceCode(): Promise<string>; /** * Authenticate using Username/Password (if allowed by tenant) * Note: This requires special Azure AD configuration and is less secure */ authenticateUsernamePassword(username: string, password: string): Promise<string>; /** * Get required OAuth scopes for Business Central */ private getScopes; /** * Try silent token acquisition (if cached) */ acquireTokenSilent(): Promise<string | null>; } //# sourceMappingURL=auth.d.ts.map