DevelopersAPI ReferenceM C P
MCP Endpoint
The Model Context Protocol endpoint (JSON-RPC 2.0 over HTTP). Connect an MCP client to https://api.travelyfe.com/mcp; it discovers OAuth from /.well-known/oauth-protected-resource. Tools: search_itineraries, list_itineraries, get_itinerary, create_itinerary, update_itinerary, set_day, set_cover, add_flight, add_hotel, add_expense, add_packing_item, set_packing_list, set_expenses, remove_flight, remove_hotel, list_documents.
AuthorizationBearer <token>
A Travelyfe access token.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/mcp" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "string" }'Empty