Skip to main content
Glama
lininn
by lininn
test-server.js978 B
#!/usr/bin/env node // Simple test script to verify MCP functionality import { CodeReviewMCPServer } from '../dist/index.js'; async function testServer() { console.log('Testing Node Code Review MCP Server...'); const config = { apiBaseUrl: 'https://api.github.com', apiToken: 'test_token', timeout: 5000, maxRetries: 1, }; try { const server = new CodeReviewMCPServer(config); console.log('✓ Server created successfully'); // Test code analysis console.log('\nTesting code analysis...'); // Note: These are internal methods, in real usage they would be called via MCP protocol // This is just for demonstration of the functionality console.log('✓ Server initialization completed'); console.log('\nTo test the full MCP functionality, use an MCP client like Claude Desktop'); } catch (error) { console.error('✗ Test failed:', error.message); process.exit(1); } } testServer();

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/lininn/gitlab-review-mcp'

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