Logo vun Kalendis

Kalendis

Organisatioun
kalendis-dev

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

Editeurkalendis-dev
Repositorykalendis-mcp
SproochTypeScript
Forks
1
Stären
0
Disponibel Tools
4
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Kalendis stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 4 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    0 Stären an 1 Forks aus dem verlinkte Repository.

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:

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

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

Disponibel Tools

  • 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

Kalendis MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Kalendis verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Kalendis als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Kalendis an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "kalendis": {
      "command": "npx",
      "args": [
        "-y",
        "@kalendis/mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Kalendis. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Kalendis.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Kalendis?
Kalendis
Jo. Ech hunn et gelies.
Dat hunn ech mat Kalendis fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Kalendis benotzt?

Kalendis ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Kalendis MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Kalendis mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Kalendis MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Kalendis verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Kalendis MCP mat TypingMind?

Kalendis leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Kalendis MCP an TypingMind zur Verfügung?

Kalendis stellt 4 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Kalendis MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Kalendis eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇