UNPKG

jezweb-mcp-core

Version:

Jezweb Model Context Protocol (MCP) Core - A universal server for providing AI tools and resources, designed for seamless integration with various AI models and clients. Features adaptable multi-provider support, comprehensive tool and resource management

28 lines 1.24 kB
/** * Resources Index - Centralized exports for all shared MCP resources * * This module provides clean, tree-shakable exports for all MCP resources * including templates, examples, and documentation. Enables both deployments * to import resources using @shared/resources. */ // Import from TypeScript module import { getResources, getResource, getResourceContent, getResourcesByCategory, RESOURCE_URIS } from './resources.js'; // Export all functions export const getAllResources = getResources; export { getResource, getResourceContent, getResourcesByCategory, RESOURCE_URIS }; // Add placeholder functions for enhanced functionality that was in .cjs export function searchResources(query) { const allResources = getResources(); return allResources.filter((resource) => resource.name?.toLowerCase().includes(query.toLowerCase()) || resource.description?.toLowerCase().includes(query.toLowerCase())); } export function getResourceStats() { const allResources = getResources(); return { total: allResources.length, categories: [...new Set(allResources.map((r) => r.category))].length }; } // Legacy exports for backward compatibility export { getResources }; //# sourceMappingURL=index.js.map