@web-interact-mcp/client
Version:
A production-ready TypeScript library that transforms web applications into MCP (Model Context Protocol) servers with robust two-way communication via SignalR
50 lines • 1.83 kB
JavaScript
/**
* @fileoverview Main entry point for the Web Interact MCP library
* @description Production-ready TypeScript library for transforming web applications into MCP servers
* @version 1.0.0
* @author Vijay Nirmal
*/
// Export main classes
export { ToolRegistry } from './tool-registry';
export { WebInteractMCPController } from './controller';
export { WebInteractSignalRService } from './signalr.service';
// Export types
export {
// Enums (export as values)
LogLevel, TransportType } from './types';
// Export utility functions
export { createSuccessResult, createErrorResult, createFailedResult, SuccessfulCallToolResult } from './types';
import { WebInteractMCPController } from './controller';
/**
* Create a new WebInteractMCPController instance with custom options
* @param options - Global configuration options
* @param shepherdOptions - Default options to pass to the Shepherd.Tour constructor
* @returns A new WebInteractMCPController instance
*/
export function createWebInteractMCPController(options, shepherdOptions) {
return new WebInteractMCPController(options, shepherdOptions);
}
/**
* Create a new ToolRegistry instance
* @param enableLogging - Whether to enable console logging
* @returns A new ToolRegistry instance
*/
export function createToolRegistry(enableLogging = false) {
const { ToolRegistry } = require('./tool-registry');
return new ToolRegistry(enableLogging);
}
/**
* Library version
*/
export const VERSION = '1.0.0';
/**
* Library information
*/
export const LIBRARY_INFO = {
name: '@web-interact-mcp/client',
version: VERSION,
description: 'A production-ready TypeScript library that transforms web applications into MCP servers with robust two-way communication',
author: 'GitHub Copilot',
license: 'MIT'
};
//# sourceMappingURL=index.js.map