MCP Server ignoriert Remote-Backend Konfiguration #122
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Der MCP Server (
packages/hooks/src/mcp-entry.ts) unterstützt keine Remote-Backend Konfiguration. Er verwendet nur Environment Variables und ignoriert dieREMOTE_MODE,REMOTE_URLundREMOTE_TOKENSettings.Aktueller Code (fehlerhaft)
Vergleich mit korrekter Implementierung
Die anderen Hooks-Komponenten machen es richtig:
BackendClient(client.ts:36-44):session-start.ts(SSE Writer spawn, Zeile 109-119):Auswirkung
Wenn ein Benutzer ein Remote-Backend konfiguriert:
Dann funktionieren:
Die MCP-Tools versuchen weiterhin
http://localhost:37777zu erreichen.Lösung
Betroffene Dateien
packages/hooks/src/mcp-entry.tsAkzeptanzkriterien
REMOTE_MODE,REMOTE_URL,REMOTE_TOKENaus SettingsREMOTE_MODE: truewirdREMOTE_URLverwendet statt localhost