Skip to main content
Glama
haasonsaas

Deep Code Reasoning MCP Server

by haasonsaas
CodeReader.test.ts1.3 kB
import { describe, it, expect } from '@jest/globals'; import { CodeReader } from '../utils/CodeReader.js'; import type { CodeScope } from '../models/types.js'; describe('CodeReader', () => { it('should initialize properly', () => { const codeReader = new CodeReader(); expect(codeReader).toBeDefined(); }); it('should have required methods', () => { const codeReader = new CodeReader(); expect(typeof codeReader.readFile).toBe('function'); expect(typeof codeReader.readCodeFiles).toBe('function'); expect(typeof codeReader.readCodeContext).toBe('function'); expect(typeof codeReader.findRelatedFiles).toBe('function'); expect(typeof codeReader.clearCache).toBe('function'); }); it('should handle CodeScope structure', () => { const scope: CodeScope = { files: ['/test/file1.ts', '/test/file2.ts'], entryPoints: [{ file: '/test/main.ts', line: 1 }], serviceNames: ['TestService'], }; expect(scope.files).toHaveLength(2); expect(scope.entryPoints).toHaveLength(1); expect(scope.serviceNames).toHaveLength(1); }); it('should clear cache', () => { const codeReader = new CodeReader(); // Test that clearCache doesn't throw expect(() => codeReader.clearCache()).not.toThrow(); }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/haasonsaas/deep-code-reasoning-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server