🐺 Initial commit - Lupul Augmentat MCP Server
- MCP server cu stdio transport pentru performanță maximă
- Tool-uri pentru file operations, HTTP requests, system commands
- Suport NATS pentru comunicare inter-module
- Configurare nginx cu API key auth și SSL
- Arhitectură modulară și extensibilă
🤖 Generated with Claude Code
This commit is contained in:
25
tests/config.test.ts
Normal file
25
tests/config.test.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { config } from '../src/config';
|
||||
|
||||
describe('Config', () => {
|
||||
it('should load default configuration', () => {
|
||||
expect(config.mcp.host).toBe('127.0.0.1');
|
||||
expect(config.mcp.port).toBe(19017);
|
||||
expect(config.mcp.logLevel).toBe('error');
|
||||
});
|
||||
|
||||
it('should have NATS configuration', () => {
|
||||
expect(config.nats.url).toBe('nats://localhost:4222');
|
||||
expect(config.nats.reconnectTimeWait).toBe(2000);
|
||||
expect(config.nats.maxReconnectAttempts).toBe(10);
|
||||
});
|
||||
|
||||
it('should have security configuration', () => {
|
||||
expect(config.security.jwtSecret).toBe('test-secret-key-for-testing-only');
|
||||
expect(config.security.authEnabled).toBe(true);
|
||||
});
|
||||
|
||||
it('should have modules configuration', () => {
|
||||
expect(config.modules.startupTimeout).toBe(5000);
|
||||
expect(config.modules.healthCheckInterval).toBe(30000);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user