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
26 lines • 1.04 kB
TypeScript
/**
* Current BC Session State Resource
*
* Provides introspection into active BC sessions and open pages.
* This resource helps AI assistants understand the current state of the MCP server.
*/
import type { Result } from '../core/result.js';
import type { BCError } from '../core/errors.js';
import type { IMCPResource, ILogger } from '../core/interfaces.js';
/**
* BCSessionStateResource exposes the current state of BC sessions.
*/
export declare class BCSessionStateResource implements IMCPResource {
private readonly logger?;
readonly uri = "bc://session/current";
readonly name = "Current BC Session State";
readonly description = "Active sessions, open pages, and pageContextIds for the current MCP server process.";
readonly mimeType = "application/json";
constructor(logger?: ILogger | undefined);
/**
* Reads the current session state.
* @returns JSON snapshot of all sessions
*/
read(): Promise<Result<string, BCError>>;
}
//# sourceMappingURL=session-current-resource.d.ts.map