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:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
exec env GITEA_ACCESS_TOKEN="$(secret-tool lookup user claude-code token gitea)" \
|
||||
~/go/bin/gitea-mcp -host https://gitea.troeger-net.org
|
||||
+47
-47
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user