feat: Unity MCP-Server Integration pro Session

Sessions können jetzt einen Unity MCP-Server (URL + Token) konfigurieren.
Die CLI erhält automatisch die MCP-Config mit korrektem Transport-Typ
(URL-basierte Erkennung: /sse → SSE, sonst HTTP für streamableHttp).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MelekiandClaude Opus 4.6 committed 2026-03-22 18:34:47 +01:00
1 parent 9c507e4716
commit 500c00f948
9 files changed
+61 -12

No files matched your search

+4
View File
@@ -158,6 +158,10 @@
<label>Benutzerdefinierte Befehle</label>
<div class="custom-commands" id="customCommandsList"></div>
<button type="button" id="addCommandBtn" class="add-cmd-btn">+ Befehl hinzufügen</button>
<label>Unity MCP URL <small>(optional)</small></label>
<input type="text" id="sessionUnityMcpUrl" placeholder="z.B. http://localhost:8080" autocomplete="off">
<label>Unity MCP Token <small>(optional)</small></label>
<input type="password" id="sessionUnityMcpToken" placeholder="MCP-Server Token" autocomplete="off">
<label>Telegram Bot</label>
<div id="telegramBotSelectCard" class="agent-select-card">
<div class="agent-select-empty"><i class="fa fa-paper-plane"></i> Kein Bot zugewiesen</div>
+9 -1
View File
@@ -35,6 +35,8 @@ registerPage('session', {
const deleteBtn = document.getElementById('sessionDeleteBtn');
const commandsList = document.getElementById('customCommandsList');
const addCommandBtn = document.getElementById('addCommandBtn');
const unityMcpUrlEl = document.getElementById('sessionUnityMcpUrl');
const unityMcpTokenEl = document.getElementById('sessionUnityMcpToken');
const more = document.querySelector('.more');
// Avatar Editor initialisieren
@@ -55,6 +57,10 @@ registerPage('session', {
// Custom Commands laden
loadCommandsIntoUI(commandsList, session.customCommands);
// Unity MCP
unityMcpUrlEl.value = session.unityMcpUrl || '';
unityMcpTokenEl.value = session.unityMcpToken || '';
} else {
titleEl.textContent = 'Neue Session';
deleteBtn.hidden = true;
@@ -168,7 +174,9 @@ registerPage('session', {
customCommands: commands,
avatarScale: _sessionAvatarEditor.getScale(),
avatarOffsetX: _sessionAvatarEditor.getOffsetX(),
avatarOffsetY: _sessionAvatarEditor.getOffsetY()
avatarOffsetY: _sessionAvatarEditor.getOffsetY(),
unityMcpUrl: unityMcpUrlEl.value.trim() || null,
unityMcpToken: unityMcpTokenEl.value.trim() || null
};
if (isNew) {