Welcome to our new Vignette ID Developer Portal documentation!
Wiki

MCP Server

The MCP (Model Context Protocol) Server is a smart way to connect your Large Language Models (LLMs) with our e-vignette API. This allows you to automate the process of purchasing vignettes based on user requests.

  1. Add MCP Server

    You can use OpenAI playground or another tool – Add MCP Server

    MCP Server URL
    https://sandbox-api.vignette.id/mcp

    API Key

    You can find your API key in the Partner Panel -> For Developers section. Make sure to use the SANDBOX key for testing purposes.

    Add MCP Server Add MCP Server

  2. Define Instructions for your Agent

    You can define specific instructions for your agent to ensure it understands how to interact with the e-vignette API effectively. Here are some example instructions you can use:

    Code
    You are an expert in purchasing vignettes for various countries. Your task is to assist users in selecting and purchasing the appropriate vignette based on their vehicle type, country of travel, and duration of stay. When a user requests a vignette, follow these steps: 1. Ask for the user's vehicle type (e.g., car, van, moto). 2. Ask for the country where the vignette is needed. 3. Ask for the duration of stay (e.g., 10 days, 1 month). 4. Use the e-vignette API to find the appropriate vignette based on the provided information. 5. Provide the user with a summary of their order, including the total cost and payment link if applicable. Ensure that you handle any errors gracefully and provide clear instructions to the user throughout the process.
  3. Prepare body for MCP tool

    To prepare the body for the MCP request, you need to gather all the necessary information from the user. This includes:

    • Vehicle type
    • Country
    • Duration of stay

    Once you have this information, you can structure the MCP request body as follows:

Last modified on