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.

File Purpose
CLAUDE.md Repository-specific instructions
~/.claude/CLAUDE.md User-wide preferences
~/.claude/mcp.json MCP server configuration

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

Skill Use Case
superpowers:brainstorming Feature planning and design
superpowers:systematic-debugging Bug investigation
superpowers:writing-plans Multi-step implementation
superpowers:using-git-worktrees Isolated feature development
commit-commands:commit Git commits
pr-review-toolkit:review-pr PR reviews
grafana Dashboard, Loki logs, Prometheus queries

Model Context Protocol servers extend Claude’s capabilities.

Server Purpose Priority
Filesystem File read/write operations MUST use for file ops
Kubernetes Cluster investigation (readonly) Pods, logs, events
Terraform State and workspace operations Terraform Cloud
Exa Intelligent web search Research
Firecrawl Web scraping Content extraction
Context7 Library documentation API docs

MCP servers can be configured at two levels:

Location Scope Use Case
~/.claude.json Global (all projects) Personal MCP servers
.mcp.json Project-specific Repository-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:

Tool Purpose
search_dashboards Find dashboards by name/tag
get_dashboard_by_uid Retrieve dashboard JSON
list_datasources List configured data sources
query_prometheus Execute PromQL queries
query_loki Execute 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 LiteLLM MCP plane (llm.fzymgc.house/<server>/mcp — ten routes; engram and kubernetes via Keycloak OAuth with dynamic client registration, the other eight 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
Rule Reason
MUST use feature branches Never commit to main
MUST check skills before responding Even 1% chance → invoke skill
MUST use Filesystem MCP for file ops Saves context vs native tools
MUST NOT apply kubectl changes ArgoCD 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