v0.1.3 • View on npm
Core utilities, types, and shared functionality for Neural Tools packages.
npm install @neural-tools/core
import { logger, validateConfig } from '@neural-tools/core';
// Structured logging
logger.info('Starting MCP server');
logger.error('Connection failed', { error });
// Configuration validation
const config = validateConfig({
port: 8000,
host: 'localhost'
});
Structured logging with multiple levels and formatting:
logger.debug('Debug message');
logger.info('Info message');
logger.warn('Warning message');
logger.error('Error message', { context });
TypeScript types for Neural Tools ecosystem:
Common helper functions:
Structured logging instance with methods:
logger.debug(message, context?)logger.info(message, context?)logger.warn(message, context?)logger.error(message, context?)Validate configuration objects using Zod schemas:
const config = validateConfig(userConfig, schema);