Skip to content

AI Tooling

This guide covers setting up AI assistants and MCP servers for development workflows.

  • Claude Code installed (brew install anthropic-cli/tap/claude-code)
  • Vault access configured (see Environment Setup)
  • Network access to cluster services

Claude Code is the primary AI assistant for this repository.

FilePurpose
CLAUDE.mdRepository-specific instructions
~/.claude/CLAUDE.mdUser-wide preferences
~/.claude/mcp.jsonMCP server configuration

Skills are invoked via the Skill tool. Check for applicable skills before responding:

SkillUse Case
superpowers:brainstormingFeature planning and design
superpowers:systematic-debuggingBug investigation
superpowers:writing-plansMulti-step implementation
superpowers:using-git-worktreesIsolated feature development
commit-commands:commitGit commits
pr-review-toolkit:review-prPR reviews
grafanaDashboard, Loki logs, Prometheus queries

Model Context Protocol servers extend Claude’s capabilities.

ServerPurposePriority
FilesystemFile read/write operationsMUST use for file ops
KubernetesCluster investigation (readonly)Pods, logs, events
TerraformState and workspace operationsTerraform Cloud
ExaIntelligent web searchResearch
FirecrawlWeb scrapingContent extraction
Context7Library documentationAPI docs

MCP servers can be configured at two levels:

LocationScopeUse Case
~/.claude.jsonGlobal (all projects)Personal MCP servers
.mcp.jsonProject-specificRepository-shared MCP servers

Add to ~/.claude.json (global) or .mcp.json (project root):

{
"mcpServers": {
"kubernetes-mcp-server": {
"command": "mcp-k8s",
"args": ["--context", "fzymgc-house"]
},
"grafana": {
"command": "mcp-grafana",
"env": {
"GRAFANA_URL": "https://grafana.fzymgc.house",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<token-from-vault>"
}
}
}
}

Local installation:

Terminal window
go install github.com/grafana/mcp-grafana/cmd/mcp-grafana@latest

Get token from Vault:

Terminal window
# Viewer token (recommended for most operations)
vault kv get -field=viewer_token secret/fzymgc-house/cluster/grafana/mcp-server
# Editor token (when modifications needed)
vault kv get -field=editor_token secret/fzymgc-house/cluster/grafana/mcp-server

Grafana MCP capabilities:

ToolPurpose
search_dashboardsFind dashboards by name/tag
get_dashboard_by_uidRetrieve dashboard JSON
list_datasourcesList configured data sources
query_prometheusExecute PromQL queries
query_lokiExecute LogQL queries

Connect to the in-cluster MCP server:

{
"mcpServers": {
"grafana": {
"type": "streamable-http",
"url": "https://mcp.grafana.fzymgc.house/mcp",
"headers": {
"Authorization": "Bearer <token-from-vault>"
}
}
}
}

For the in-cluster agentgateway MCP gateway (aggregating multiple upstream MCP servers — engram via Keycloak OAuth (dynamic client registration), SaaS servers via virtual key), see MCP Gateway Clients.

  1. Use superpowers:brainstorming before new features
  2. Create worktree with superpowers:using-git-worktrees
  3. Use superpowers:writing-plans for implementation
  4. Request review with pr-review-toolkit:review-pr
  • Use Kubernetes MCP for investigation (pods, logs, events)
  • Do NOT apply changes directly - ArgoCD manages deployments
  • Use grafana skill for dashboard and Loki log queries
RuleReason
MUST use feature branchesNever commit to main
MUST check skills before respondingEven 1% chance → invoke skill
MUST use Filesystem MCP for file opsSaves context vs native tools
MUST NOT apply kubectl changesArgoCD manages deployments

Test MCP server connectivity:

Terminal window
# Verify Kubernetes MCP
kubectl --context fzymgc-house get nodes
# Verify Grafana access
vault kv get secret/fzymgc-house/cluster/grafana/mcp-server