MCP-Dokumentation
Integrieren Sie Attorlys KI-Funktionen mit dem Model Context Protocol (MCP) in Ihre Anwendungen
Erste Schritte
Richten Sie Ihre MCP-Integration in wenigen Minuten ein
1. API-Schlüssel erstellen
Gehen Sie zu Einstellungen > MCP in Ihrem Dashboard und erstellen Sie eine neue Verbindung. Wählen Sie die Berechtigungen, die Ihre Integration benötigt.
Einstellungen öffnen2. Machen Sie Ihre erste Anfrage
Initialisieren Sie die Verbindung zum 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. Verfügbare Werkzeuge auflisten
Entdecken Sie, welche Werkzeuge mit Ihren Berechtigungen verfügbar sind:
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. Ein Werkzeug aufrufen
Führen Sie ein Werkzeug aus, um ein Dokument zu analysieren:
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..."
}
}
}'