We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/taazkareem/clickup-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
verify_prod.cjsā¢1.86 kB
const axios = require('axios');
// 1. Reconstruct Production Org ID (exactly as in your source code)
const ORG_PART_1 = 'cd9f6f7c';
const ORG_PART_2 = '5b51';
const ORG_PART_3 = '4e5e';
const ORG_PART_4 = '872b';
const ORG_PART_5 = 'c92dd9377bcd';
const PRODUCTION_ORG_ID = `${ORG_PART_1}-${ORG_PART_2}-${ORG_PART_3}-${ORG_PART_4}-${ORG_PART_5}`;
// 2. Production API URL
const POLAR_VALIDATE_URL = 'https://api.polar.sh/v1/customer-portal/license-keys/validate';
async function testProductionConnection() {
console.log('š Testing connection to Polar.sh PRODUCTION API...');
console.log(`š¢ Organization ID: ${PRODUCTION_ORG_ID}`);
console.log(`š Endpoint: ${POLAR_VALIDATE_URL}`);
try {
// 3. Send a DUMMY key
await axios.post(POLAR_VALIDATE_URL, {
key: 'PREMIUM_TEST_KEY_12345',
organization_id: PRODUCTION_ORG_ID
});
// If by some miracle this dummy key works:
console.log('ā Unexpected success with dummy key (should fail)');
} catch (error) {
if (error.response) {
// 4. Analyze the Failure
const status = error.response.status;
if (status === 404) {
console.log('\nā SUCCESS! Received expected 404 "Not Found" from Production API.');
console.log(' This confirms:');
console.log(' 1. The API endpoint is reachable.');
console.log(' 2. Your Organization ID is valid format.');
console.log(' 3. The API correctly identified the key as invalid.');
console.log('\n Conclusion: A REAL key will work perfectly.');
} else {
console.log(`\nā ļø Received unexpected status: ${status}`);
console.log('Response:', error.response.data);
}
} else {
console.log('\nā Network Error - Could not reach API');
console.error(error.message);
}
}
}
testProductionConnection();