Skip to main content

Overview

Use the Node.js MCP SDK to build custom AI agents that can schedule meetings, find availability, and manage calendars through the Syncline MCP server.

Prerequisites

1

Install Syncline MCP Server

2

Install MCP SDK

3

Get Platform API Key

Quick Start

Create a simple agent that finds meeting availability:
Run the script:
Output:

Building a Meeting Scheduler Agent

Create an AI agent that can schedule meetings via natural language:

Advanced Examples

Conversational Scheduling Bot

Build a bot that schedules meetings through natural language:
Example conversation:

Error Handling

Handle errors gracefully:

Best Practices

Use Environment Variables

Store API keys securely:

Implement Retry Logic

Handle transient failures:

Validate Input

Validate user input before calling tools:

Graceful Shutdown

Ensure proper cleanup:

Testing

Write tests for your agent:
Run tests:

Python Client

Build agents with Python

Protocol Spec

MCP protocol details

API Reference

REST API documentation