What is MCP?
Model Context Protocol (MCP) is Anthropic’s standard for AI agents to use tools. Instead of HTTP requests, AI agents communicate directly via stdio with JSON-RPC 2.0. Syncline supports both REST API (HTTP) and MCP Protocol (stdio). Functionality is identical—choose what fits your architecture.Why Use MCP?
Zero Latency
No HTTP overhead. Direct process communication.
Native Integration
Works seamlessly with Claude and other MCP-compatible agents.
Stateful
Maintain context across multiple tool calls.
Simpler Auth
No API keys in headers. Auth via environment variables.
Architecture
Available Tools
find_mutual_availability
find_mutual_availability
Find time slots where attendees are available.Input:
attendees: Array of emailsduration_minutes: Meeting duration (optional)
schedule_meeting
schedule_meeting
Create a calendar event with Google Meet.Input:
attendees: Array of emailsstart_time: ISO 8601 datetimetitle: Meeting titleduration_minutes: Duration (optional)
check_availability
check_availability
Check a single user’s calendar.Input:
email: User’s emaildate_range: Start and end times
update_preferences
update_preferences
Update user scheduling preferences.Input:
email: User’s emailpreferences: New preferences object
Integration Guides
Claude Desktop
Integrate with Claude Desktop or Claude Code
Python Client
Build custom Python agents
Node.js Client
Build custom Node.js agents
Protocol Spec
Full JSON-RPC 2.0 specification
Quick Example
1. Start MCP Server
2. Send JSON-RPC Request
3. Receive Response
MCP vs REST API
| Feature | MCP Protocol | REST API |
|---|---|---|
| Transport | stdio | HTTP |
| Format | JSON-RPC 2.0 | REST JSON |
| Auth | Env vars | API key header |
| Latency | ~1ms | ~50ms |
| Streaming | Yes | No |
| Best For | AI agents | Web apps, mobile |
Protocol Flow
1
Initialize
Agent sends
initialize method. Server responds with capabilities.2
List Tools
Agent calls
tools/list. Server returns available tools with schemas.3
Call Tool
Agent calls
tools/call with tool name and arguments. Server executes and returns result.4
Repeat
Agent can call tools multiple times in same session.