Logo di Kalendis

Kalendis

Organizzazione
kalendis-dev

MCP server for Kalendis API - generates TypeScript clients and API routes

Autorekalendis-dev
Repositorykalendis-mcp
LinguaTypeScript
Fork
1
Stelle
0
Strumenti disponibili
4
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    Kalendis mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 4 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    0 stelle e 1 fork nel repository collegato.

Kalendis MCP Tool

npm version License: MIT

MCP (Model Context Protocol) server and client generator for Kalendis scheduling API integration.

Features

  • 🔧 MCP Server: Exposes Kalendis API tools for use with Claude, Cursor, etc
  • 🚀 Client Generator: Generates TypeScript clients for backend and frontend applications
  • 🛣️ Route Generator: Creates API route handlers for Next.js, Fastify, NestJS and Express
  • 🔐 Secure: Uses environment variables for API key management
  • 📝 Type-safe: Full TypeScript support with generated types

Installation

bash
npm install @kalendis/mcp

Quick Start

1. Get Your API Key

Before using the Kalendis MCP tool, you'll need an API key. Create a free account at kalendis.dev to get started. Your API key will be available in your account dashboard and is required for authenticating requests to the Kalendis scheduling API.

2. Configure MCP Server

Quick Install (Cursor IDE)

Click the button below to automatically add Kalendis to your Cursor IDE:

Manual Configuration

Alternatively, add this to your MCP settings:

json
{
  "mcpServers": {
    "kalendis": {
      "command": "npx",
      "args": ["-y", "@kalendis/mcp"]
    }
  }
}

3. Available MCP Tools

Once configured, the AI agent can use these tools:

  • generate-backend-client: Generate a TypeScript client for direct API calls
  • generate-frontend-client: Generate a TypeScript client for frontend applications
  • generate-api-routes: Generate API route handlers for Next.js, Express, Fastify, or NestJS
  • list-endpoints: List all available Kalendis API endpoints

Client Generation

Backend Client

Generate a client that calls the Kalendis API directly:

typescript
// Generated client usage
import KalendisClient from './generated/kalendis-client';

// Initialize with your API key (from environment variable, config, etc.)
const client = new KalendisClient({
  apiKey: process.env.MY_API_KEY, // You choose the env var name
});

const users = await client.getUsers();
const user = await client.createUser({ name: 'John Doe', email: 'john@example.com' });

Frontend Client

Generate a client that calls your backend API endpoints:

typescript
// Generated frontend client usage
import api from './generated/frontend-client';

// Calls your backend endpoints (e.g., /api/users)
const users = await api.getUsers();

API Routes

Next.js Routes

Generates App Router API routes:

typescript
// app/api/users/route.ts
export async function GET(request: Request) {
  // Implementation using backend client
}

Express Routes

Generates Express router handlers:

typescript
// routes/api.ts
router.get('/users', async (req, res) => {
  // Implementation using backend client
});

Fastify Routes

Generates Fastify plugin with route handlers:

typescript
// routes/kalendis.ts
export default async function routes(fastify: FastifyInstance) {
  fastify.get('/api/users', async (request, reply) => {
    // Implementation using backend client
    return users;
  });
}

NestJS Module

Generates complete NestJS module with controller, service, and module files:

typescript
// kalendis.controller.ts
@Controller('api')
export class KalendisController {
  @Get('users')
  async getUsers() {
    return this.kalendisService.getUsersByAccountId();
  }
}

// kalendis.service.ts - Wraps the backend client
// kalendis.module.ts - Wire everything together

API Endpoints Coverage

The tool supports all 28 Kalendis API endpoints:

Users

  • GET /v1/users - Fetch all users
  • POST /v1/users - Create user
  • PUT /v1/users/:id - Update user
  • DELETE /v1/users/:id - Delete user

Availability

  • GET /v1/availability - Get availability with filters
  • GET /v1/availability/all - Get all availability
  • GET /v1/availability/calculated - Get calculated availability
  • GET /v1/availability/recurring - Get recurring availability
  • GET /v1/availability/matching - Get matching availability
  • POST /v1/availability - Add availability
  • PUT /v1/availability/:id - Update availability
  • DELETE /v1/availability/:id - Delete availability

Recurring Availability

  • GET /v1/recurring-availability - Get recurring availability
  • POST /v1/recurring-availability - Add recurring availability
  • PUT /v1/recurring-availability/:id - Update recurring availability
  • DELETE /v1/recurring-availability/:id - Delete recurring availability

Availability Exceptions

  • GET /v1/availability-exceptions - Get exceptions
  • POST /v1/availability-exceptions - Add exception
  • POST /v1/availability-exceptions/recurring - Add recurring exception
  • PUT /v1/availability-exceptions/:id - Update exception
  • DELETE /v1/availability-exceptions/:id - Delete exception

Bookings

  • GET /v1/bookings - Get bookings
  • GET /v1/bookings/:userId - Get user bookings
  • POST /v1/bookings - Create booking
  • PUT /v1/bookings/:id - Update booking
  • DELETE /v1/bookings/:id - Delete booking

Account

  • GET /v1/account - Get account info
  • PUT /v1/account - Update account

Environment Configuration

The tool supports three environments:

  • development: https://sandbox.api.kalendis.dev
  • production: https://api.kalendis.dev

Authentication

All API calls to the Kalendis scheduling service require authentication via the x-api-key header.

The generated clients require you to provide an API key when instantiating:

typescript
// You control how to manage your API key
const client = new KalendisClient({
  apiKey: process.env.KALENDIS_API_KEY, // or from config, secrets manager, etc.
});

The generated API route handlers use environment variables by default, but you can customize this:

bash
# Example: Set in your application's environment
export KALENDIS_API_KEY="your-api-key-here"

Note: The MCP tool itself doesn't need or use the API key - it only generates code. The API key is used by the generated clients in your application.

Error Handling

The generated clients provide clear error messages:

  • 401: Authentication failed - Invalid or missing API key
  • 403: Permission denied - API key lacks required permissions
  • Network errors: Clear connection failure messages
  • API errors: Detailed error messages from the API

Development

To build the MCP tool locally:

bash
git clone https://github.com/kalendis-dev/kalendis-mcp.git
cd kalendis-mcp
npm install
npm run build

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues or questions:

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "kalendis": {
      "command": "npx",
      "args": [
        "-y",
        "@kalendis/mcp"
      ]
    }
  }
}

Strumenti disponibili

  • generate-backend-client

    Generate a TypeScript client that calls Kalendis API directly with x-api-key authentication

  • generate-frontend-client

    Generate a TypeScript client for frontend apps that calls your backend API endpoints

  • generate-api-routes

    Generate API route handlers for Next.js or Express that use the Kalendis backend client

  • list-endpoints

    List all available Kalendis API endpoints with descriptions

Usa MCP Kalendis con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso Kalendis, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi Kalendis come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di Kalendis.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "kalendis": {
      "command": "npx",
      "args": [
        "-y",
        "@kalendis/mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di Kalendis, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di Kalendis.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare Kalendis per aiutarmi con questa attività?
Kalendis
Certo. Ho letto.
Ecco cosa ho trovato con Kalendis.

Domande frequenti

A cosa serve il server MCP Kalendis?

Kalendis è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare Kalendis MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare Kalendis con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP Kalendis con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando Kalendis, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego Kalendis MCP a TypingMind?

Kalendis funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre Kalendis MCP in TypingMind?

Kalendis mette a disposizione 4 strumenti MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare Kalendis MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se Kalendis richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇