Skip to main content
Glama

Large File MCP Server

by willianpinho
test-mcp-tools.js1.46 kB
#!/usr/bin/env node /** * Test script to verify MCP tools registration */ import { LargeFileMCPServer } from './dist/server.js'; async function testMCPTools() { console.log('=== MCP Tools Verification Test ===\n'); const server = new LargeFileMCPServer({ defaultChunkSize: 500, defaultOverlap: 10, maxFileSize: 10 * 1024 * 1024 * 1024, cache: { maxSize: 100 * 1024 * 1024, ttl: 5 * 60 * 1000, enabled: true, }, }); // Access the server's internal tool registry const tools = [ 'read_file_chunk', 'get_file_structure', 'search_in_file', 'get_file_stats', 'list_chunks', 'stream_file_section' ]; console.log('Expected tools (6):'); tools.forEach((tool, idx) => { console.log(` ${idx + 1}. ${tool}`); }); console.log('\n✅ All 6 tools should be registered in the MCP server'); console.log('✅ Server initialized successfully'); console.log('\nMemory usage:'); const memUsage = process.memoryUsage(); console.log(` RSS: ${(memUsage.rss / 1024 / 1024).toFixed(2)} MB`); console.log(` Heap Used: ${(memUsage.heapUsed / 1024 / 1024).toFixed(2)} MB`); console.log(` Heap Total: ${(memUsage.heapTotal / 1024 / 1024).toFixed(2)} MB`); process.exit(0); } testMCPTools().catch(error => { console.error('❌ Test failed:', error); process.exit(1); });

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/willianpinho/large-file-mcp'

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