bootstrap: Gitea-MCP und context7 automatisch einrichten

- gitea-mcp Binary via go install installieren falls fehlend
- gitea MCP-Server via `claude mcp add --scope user` registrieren
- context7 Plugin-Aktivierung prüfen und bei Fehlen warnen
- Wrapper-Skript löst GITEA_ACCESS_TOKEN zur Laufzeit via secret-tool auf
- mcpServers-Block aus settings.json entfernt (wird von Claude Code ignoriert)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-19 13:53:29 +02:00
co-authored by Claude Sonnet 4.6
parent 3a0233253c
commit 899bf201c7
3 changed files with 78 additions and 47 deletions
+47 -47
View File
@@ -1,50 +1,50 @@
{
"permissions": {
"allow": [
"Bash(npm run build:*)",
"Bash(grep:*)",
"Bash(xargs:*)",
"WebSearch",
"Bash(npm install)",
"Bash(curl:*)",
"Bash(ls:*)",
"Bash(python3:*)"
],
"defaultMode": "default"
},
"statusLine": {
"type": "command",
"command": "bash ~/.claude/statusline-command.sh"
},
"enabledPlugins": {
"typescript-lsp@claude-plugins-official": true,
"frontend-design@claude-plugins-official": true,
"context7@claude-plugins-official": true,
"code-review@claude-plugins-official": true,
"code-simplifier@claude-plugins-official": true
},
"language": "German",
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "bash /mnt/projekte/claude-workflow/hooks/auto-format.sh"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash /mnt/projekte/claude-workflow/hooks/verify-on-stop.sh"
}
]
}
"permissions": {
"allow": [
"Bash(npm run build:*)",
"Bash(grep:*)",
"Bash(xargs:*)",
"WebSearch",
"Bash(npm install)",
"Bash(curl:*)",
"Bash(ls:*)",
"Bash(python3:*)"
],
"defaultMode": "default"
},
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "bash /mnt/projekte/claude-workflow/hooks/auto-format.sh"
}
]
}
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash /mnt/projekte/claude-workflow/hooks/verify-on-stop.sh"
}
]
}
]
},
"statusLine": {
"type": "command",
"command": "bash ~/.claude/statusline-command.sh"
},
"enabledPlugins": {
"typescript-lsp@claude-plugins-official": true,
"frontend-design@claude-plugins-official": true,
"context7@claude-plugins-official": true,
"code-review@claude-plugins-official": true,
"code-simplifier@claude-plugins-official": true
},
"language": "German"
}