VignetimVignetim
Doma
Stik
PrijavaRegister
  1. Domov
  2. /
  3. Razvijalci
  4. /
  5. API referenca
  6. /
  7. Vignetim OpenAI MCP

Začetek

  • Uvod
  • Avtentikacija
  • Peskovnik
  • Omejevanje hitrosti
  • Obravnava napak

Produkti

  • Vinjete
  • eSIM paketi
  • Zavarovalni produkti
  • Kategorije vozil

Naročila

  • Ustvari naročilo
  • Seznam naročil
  • Podrobnosti naročila

Webhooks

  • Pregled webhookov
  • Upravljanje webhookov

MCP

  • Pregled MCP
  • Vignetim Claude MCP
  • Vignetim OpenAI MCP

Vignetim OpenAI MCP

Povežite Vignetim Partner API s Cursor, Windsurf, Continue, OpenAI Agents SDK in katero koli platformo, ki podpira Model Context Protocol.

Hitra nastavitev

Cursor

Odprite Cursor Settings → MCP → Add new MCP server:

{
	"mcpServers": {
		"vignetim": {
			"url": "https://vignetim.com/api/mcp",
			"headers": {
				"X-API-Key": "YOUR_API_KEY",
				"X-API-Secret": "YOUR_API_SECRET"
			}
		}
	}
}

Windsurf

Dodajte v vašo Windsurf MCP konfiguracijo:

{
	"mcpServers": {
		"vignetim": {
			"serverUrl": "https://vignetim.com/api/mcp",
			"headers": {
				"X-API-Key": "YOUR_API_KEY",
				"X-API-Secret": "YOUR_API_SECRET"
			}
		}
	}
}

Continue (VS Code)

Dodajte v .continue/config.json:

{
	"mcpServers": [
		{
			"name": "vignetim",
			"url": "https://vignetim.com/api/mcp",
			"headers": {
				"X-API-Key": "YOUR_API_KEY",
				"X-API-Secret": "YOUR_API_SECRET"
			}
		}
	]
}

OpenAI Agents SDK (Python)

from openai_agents import Agent, MCPServerStreamableHttp

async with MCPServerStreamableHttp(
    url="https://vignetim.com/api/mcp",
    name="vignetim",
    headers={
        "X-API-Key": "YOUR_API_KEY",
        "X-API-Secret": "YOUR_API_SECRET",
    },
) as mcp:
    agent = Agent(
        name="Vignetim Partner",
        instructions="You manage Vignetim API integration. Browse products, create orders, and manage webhooks.",
        mcp_servers=[mcp],
    )
    result = await agent.run("List all Hungarian vignettes for cars")

OpenAI Agents SDK (Node.js)

import { Agent, MCPServerStreamableHttp } from '@openai/agents';

const mcp = new MCPServerStreamableHttp({
	url: 'https://vignetim.com/api/mcp',
	name: 'vignetim',
	headers: {
		'X-API-Key': 'YOUR_API_KEY',
		'X-API-Secret': 'YOUR_API_SECRET',
	},
});

await mcp.connect();

const agent = new Agent({
	name: 'Vignetim Partner',
	instructions: 'You manage Vignetim API integration.',
	mcpServers: [mcp],
});

const result = await agent.run('Show me my recent orders');

Razpoložljiva orodja (skupaj 19)

Produkti (6 orodij)

OrodjeMethodAPI končna točka
list_ticketsGET/products/tickets
get_ticketGET/products/tickets/:id
list_esim_packagesGET/products/esim
list_insurance_productsGET/products/insurance
get_insurance_productGET/products/insurance/:slug
list_vehicle_categoriesGET/products/vehicle-categories

Naročila (4 orodja)

OrodjeMethodAPI končna točka
create_orderPOST/orders
list_ordersGET/orders
get_orderGET/orders/:id
get_order_statusGET/orders/:id/status

Webhooki (5 orodij)

OrodjeMethodAPI končna točka
create_webhookPOST/webhooks
list_webhooksGET/webhooks
update_webhookPUT/webhooks/:id
delete_webhookDELETE/webhooks/:id
test_webhookPOST/webhooks/:id/test

Dokumentacija (4 orodja -- brez avtentikacije)

OrodjeOpis
list_docsPrikaži vse razdelke API dokumentacije
get_docPridobi celotno vsebino razdelka po slugu
search_docsIšči po celotni dokumentaciji
get_openapi_specPridobi URL OpenAPI 3.0 specifikacije

Gradnja lastnega agenta

from openai_agents import Agent, MCPServerStreamableHttp, Runner

SYSTEM_PROMPT = """You are a Vignetim Partner API assistant.
You help manage e-vignette, eSIM, and insurance orders.

Available actions:
- Browse products (vignettes, eSIM packages, insurance)
- Create and track orders
- Set up and manage webhook notifications
- Search API documentation for integration help

Always confirm before creating orders or modifying webhooks.
Use sandbox mode for testing."""

async def main():
    async with MCPServerStreamableHttp(
        url="https://vignetim.com/api/mcp",
        name="vignetim",
        headers={
            "X-API-Key": "YOUR_KEY",
            "X-API-Secret": "YOUR_SECRET",
            "X-Environment": "sandbox",
        },
    ) as mcp:
        agent = Agent(
            name="Vignetim Assistant",
            instructions=SYSTEM_PROMPT,
            mcp_servers=[mcp],
        )
        result = await Runner.run(
            agent,
            "Set up webhooks for order.completed and order.failed events "
            "at https://myapp.com/api/webhooks/vignetim, then send a test event."
        )
        print(result.final_output)

Peskovniški način

Dodajte X-Environment: sandbox v vaše glave za uporabo peskovniškega API-ja s simuliranimi plačili:

{
	"headers": {
		"X-API-Key": "YOUR_SANDBOX_KEY",
		"X-API-Secret": "YOUR_SANDBOX_SECRET",
		"X-Environment": "sandbox"
	}
}

Alternativa: neposreden HTTP dostop

Če vaša platforma ne podpira MCP:

VirURL
OpenAPI specifikacijahttps://vignetim.com/api/partner-openapi
LLMs.txthttps://vignetim.com/llms.txt
AI vtičnikhttps://vignetim.com/.well-known/ai-plugin.json
API dokumentacijahttps://vignetim.com/sl/developers/api-reference

Odpravljanje težav

"API credentials required"

API orodja potrebujejo obe glavi X-API-Key in X-API-Secret. Dokumentacijska orodja delujejo brez poverilnic.

Težave s povezavo

Preverite, ali je končna točka dosegljiva:

curl -X POST https://vignetim.com/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Omejevanje hitrosti

MCP strežnik spoštuje omejitve hitrosti Partner API-ja: 100 zahtev/min splošno, 10 zahtev/min za ustvarjanje naročil. Peskovnik ima 5x množilnik.

Prejšnji← Vignetim Claude MCP
VignetimVignetim
Visa
Mastercard
American Express

Vinjete in cestnine

  • Bolgarija vinjeta
  • Češka vinjeta
  • Madžarska vinjeta
  • Slovaška vinjeta
  • Slovenska vinjeta
  • Romunska vinjeta
  • Moldavija vinjete
  • Švica vinjeta
  • Estonia Vinjete
  • Cestnine na Islandiji
  • Nizozemska cestnina
  • Irske cestnine

Zavarovanja

  • Potovalno zdravstveno zavarovanje
  • Zavarovanje za zeleno kartico

Družba

  • Pogosta vprašanja
  • Približno
  • Stik
  • API referenca
  • Fleet

Zasebnost

  • Pogoji in uporaba
  • Politika zasebnosti
  • Politika piškotkov
  • Navodila za brisanje uporabnikov

Socialni

  • Instagram
  • LinkedIn
  • X (Twitter)
  • Facebook

Vignetim | E-Vignette, eSIM & Insurance

Nakup in upravljanje svojih evropskih e-vinjet, eSIMs in osiguranjem enostavno z VignitIm.

Na voljo v iOS & Android.

Prenos v App StorePridobite ga v Google Play

Copyright © 2026 VignitIM | Vinjeta, eSIM & Insurance