Skip to main content

MCP Documentatie

Integreer Attorly's juridische AI-mogelijkheden in jouw applicaties met behulp van het Model Context Protocol (MCP)

Aan de Slag

Stel uw MCP-integratie in enkele minuten in

1. Maak een API-sleutel aan

Ga naar Instellingen > MCP in uw dashboard en maak een nieuwe verbinding. Selecteer de scopes (machtigingen) die uw integratie nodig heeft.

Open Instellingen

2. Doe uw Eerste Verzoek

Initialiseer de verbinding met de MCP-server:

curl -X POST https://attorly.ai/api/mcp \
  -H "Authorization: Bearer lbmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2024-11-05",
    "capabilities": {},
    "clientInfo": {
      "name": "your-client",
      "version": "1.0.0"
    }
  }
}'

3. Lijst Beschikbare Hulpmiddelen

Ontdek welke hulpmiddelen beschikbaar zijn met uw machtigingen:

curl -X POST https://attorly.ai/api/mcp \
  -H "Authorization: Bearer lbmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/list"
}'

4. Roep een Hulpmiddel op

Voer een hulpmiddel uit om een document te analyseren:

curl -X POST https://attorly.ai/api/mcp \
  -H "Authorization: Bearer lbmcp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "documents/analyze_quick",
    "arguments": {
      "content": "This Agreement is entered into..."
    }
  }
}'