We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dominik1001/caldav-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { CalDAVClient } from "ts-caldav"
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"
export async function registerListCalendars(
client: CalDAVClient,
server: McpServer,
) {
const calendars = await client.getCalendars()
server.registerTool(
"list-calendars",
{
description: "List all calendars returning both name and URL",
inputSchema: {},
},
async () => {
return { content: [{ type: "text", text: JSON.stringify(calendars) }] }
},
)
}