Skip to main content
Glama
pshempel

MCP Time Server Node

by pshempel
debug-uk-holidays-2021.js965 B
#!/usr/bin/env node const { getHolidaysForYear } = require('../../dist/data/holidays'); console.log('=== Debug UK Holidays 2021 ===\n'); const holidays = getHolidaysForYear('UK', 2021); console.log('All UK holidays in 2021:'); holidays.forEach((h) => { console.log(`- ${h.name}: ${h.date.toDateString()}`); if (h.observedDate && h.observedDate !== h.date) { console.log(` Observed: ${h.observedDate.toDateString()}`); } }); console.log('\nDecember holidays:'); const decHolidays = holidays.filter((h) => h.date.getMonth() === 11); // December is month 11 decHolidays.forEach((h) => { console.log( `- ${h.name}: ${h.date.toDateString()} (${h.date.toLocaleDateString('en-US', { weekday: 'long' })})`, ); if (h.observedDate && h.observedDate !== h.date) { console.log( ` Observed: ${h.observedDate.toDateString()} (${h.observedDate.toLocaleDateString('en-US', { weekday: 'long' })})`, ); } }); console.log('\n=== Done ===');

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/pshempel/mcp-time-server-node'

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