Skip to main content
Glama

Coolify MCP Server

by GoCoder7
test-docs.jsโ€ข2.65 kB
#!/usr/bin/env node /** * Test Documentation Features Locally * This script tests the documentation functionality without requiring a Coolify connection */ const { CoolifyApiClient } = require('./dist/utils/coolify-client.js'); async function testDocumentation() { console.log('๐Ÿงช Testing Coolify MCP Documentation Features...\n'); // Create a mock client (won't try to connect) const client = new CoolifyApiClient({ baseUrl: 'https://localhost', apiToken: 'test', }); try { // Test 1: Search Documentation console.log('1๏ธโƒฃ Testing searchDocumentation...'); const searchResults = await client.searchDocumentation('deployment', undefined, 3); console.log(`โœ… Found ${searchResults.entries.length} entries for "deployment"`); console.log(` Titles: ${searchResults.entries.map(e => e.title).join(', ')}\n`); // Test 2: Get API Reference console.log('2๏ธโƒฃ Testing getApiReference...'); const apiDocs = await client.getApiReference('applications'); console.log(`โœ… Found ${apiDocs.length} API documentation entries`); console.log(` API Docs: ${apiDocs.map(e => e.title).join(', ')}\n`); // Test 3: Get Troubleshooting console.log('3๏ธโƒฃ Testing getTroubleshooting...'); const troubleshootingDocs = await client.getTroubleshooting('failed'); console.log(`โœ… Found ${troubleshootingDocs.length} troubleshooting guides`); console.log(` Guides: ${troubleshootingDocs.map(e => e.title).join(', ')}\n`); // Test 4: Get General Documentation console.log('4๏ธโƒฃ Testing getDocumentation...'); const generalDocs = await client.getDocumentation('ssl'); console.log(`โœ… Found ${generalDocs.length} documentation entries for "ssl"`); console.log(` Topics: ${generalDocs.map(e => e.title).join(', ')}\n`); // Test 5: Show sample documentation content console.log('5๏ธโƒฃ Sample Documentation Content:'); if (searchResults.entries.length > 0) { const firstDoc = searchResults.entries[0]; console.log(`๐Ÿ“– Title: ${firstDoc.title}`); console.log(`๐Ÿท๏ธ Category: ${firstDoc.category}`); console.log(`๐Ÿ”– Tags: ${firstDoc.tags.join(', ')}`); console.log(`๐Ÿ“ Content Preview: ${firstDoc.content.substring(0, 200)}...\n`); } console.log('๐ŸŽ‰ All documentation tests passed!'); console.log('๐Ÿ“š Documentation features are working correctly.'); console.log('๐Ÿค– Agents without Context7 MCP can now access built-in Coolify documentation.'); } catch (error) { console.error('โŒ Documentation test failed:', error); process.exit(1); } } testDocumentation();

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/GoCoder7/coolify-mcp-server'

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