---
name: reference-linear-comment-via-api-key
description: Linear-Kommentare ohne MCP-OAuth posten — LINEAR_API_KEY + commentCreate-Mutation
metadata: 
  node_type: memory
  type: reference
  originSessionId: 9b3cf2b8-d05a-4461-99d2-efe3ef70f0d7
---

**UPDATE 2026-06-06: Das Linear-MCP-Plugin ist inzwischen voll auth'd** — `save_comment` und `save_issue` funktionieren direkt (verifiziert: KAR-571-Kommentar + KAR-695-Anlage am 06.06.2026). Der GraphQL-Pfad unten bleibt als Fallback dokumentiert, ist aber nicht mehr der primäre Weg.

Linear-Kommentare (und andere Mutations) gehen über den `LINEAR_API_KEY` in `/root/aria/.env` per GraphQL — das MCP-Plugin `plugin:linear:linear` ist NICHT auth'd (nur `authenticate`/`complete_authentication` verfügbar, würde OAuth-Klick von Kais brauchen). *(Stand 24.05.2026 — siehe Update oben.)*

Pattern (verifiziert 2026-05-24, KAR-613 Gate-Status-Kommentar):
1. Issue-UUID auflösen: `team(id: KAR_TEAM_ID){ issues(filter:{number:{eq:613}}){ nodes{ id } } }` — `KAR_TEAM_ID = e0227fa8-5ce8-4d3a-a8c5-fdc90ba8637f`, Endpoint `https://api.linear.app/graphql`, Header `Authorization: <key>` (kein "Bearer").
2. `mutation { commentCreate(input:{ issueId:"<uuid>", body:"<markdown>" }){ success comment{ id url } } }`.

Body ist Standard-Markdown (nicht Telegram-MarkdownV2). Auth-Pattern aus `/root/aria/scripts/aria-linear-liveness.py` (nur lesend) — Mutation-Erweiterung ist neu. Siehe auch [[feedback-no-secrets-via-telegram]].
