Overview
Syncline implements the Model Context Protocol (MCP) v2024-11-05 for AI agent integration. MCP uses JSON-RPC 2.0 over stdio (standard input/output) for communication.Transport
Connection
Communication happens over stdio (standard input/output):- Input: JSON-RPC requests sent to the server’s stdin
- Output: JSON-RPC responses sent from the server’s stdout
\n).
JSON-RPC 2.0 Format
Request
Response (Success)
Response (Error)
Protocol Flow
1. Initialize
The client must initialize the connection before calling tools. Request:2. List Tools
Discover available tools. Request:3. Call Tool
Execute a tool with arguments. Request:Available Methods
initialize
Initialize the MCP session. Request:tools/list
List all available tools. Request:tools/call
Execute a tool. Request:Tool Schemas
find_mutual_availability
Find time slots where all attendees are available. Input Schema:schedule_meeting
Create a calendar event with Google Meet. Input Schema:check_availability
Check a user’s calendar. Input Schema:update_preferences
Update user scheduling preferences. Input Schema:Error Codes
Standard JSON-RPC 2.0 error codes:Error Response Example
Implementation Example
Python
Node.js
Best Practices
Request IDs
Use unique, incrementing request IDs:Error Handling
Always check for error responses:Timeout Handling
Implement timeouts for requests:Related Resources
Python Client
Build agents with Python
Node.js Client
Build agents with Node.js
Claude Integration
Use with Claude Desktop