|
| 1 | +# Redis SRE Agent Configuration |
| 2 | +# Copy this file to config.yaml and customize for your environment. |
| 3 | +# |
| 4 | +# Settings can be loaded from (priority order): |
| 5 | +# 1. Environment variables (highest priority) |
| 6 | +# 2. .env file |
| 7 | +# 3. config.yaml (this file) |
| 8 | +# 4. Default values (lowest priority) |
| 9 | +# |
| 10 | +# Set SRE_AGENT_CONFIG environment variable to use a custom path. |
| 11 | + |
| 12 | +# Application settings |
| 13 | +# debug: false |
| 14 | +# log_level: INFO |
| 15 | + |
| 16 | +# Server settings |
| 17 | +# host: "0.0.0.0" |
| 18 | +# port: 8000 |
| 19 | + |
| 20 | +# MCP (Model Context Protocol) servers configuration |
| 21 | +# This is the primary use case for YAML config - complex nested structures |
| 22 | +mcp_servers: |
| 23 | + # Memory server for long-term agent memory |
| 24 | + redis-memory-server: |
| 25 | + command: uv |
| 26 | + args: |
| 27 | + - tool |
| 28 | + - run |
| 29 | + - --from |
| 30 | + - agent-memory-server |
| 31 | + - agent-memory |
| 32 | + - mcp |
| 33 | + env: |
| 34 | + REDIS_URL: redis://localhost:6399 |
| 35 | + tools: |
| 36 | + get_current_datetime: |
| 37 | + description: | |
| 38 | + Get the current date and time. Use this when you need to |
| 39 | + record timestamps for Redis instance events or incidents. |
| 40 | + |
| 41 | + {original} |
| 42 | + create_long_term_memories: |
| 43 | + description: | |
| 44 | + Save long-term memories about Redis instances. Use this to |
| 45 | + record: past incidents and their resolutions, configuration |
| 46 | + changes, performance baselines, known issues, maintenance |
| 47 | + history, and lessons learned. Always include the instance_id |
| 48 | + in the memory text for future retrieval. |
| 49 | + |
| 50 | + {original} |
| 51 | + search_long_term_memory: |
| 52 | + description: | |
| 53 | + Search saved memories about Redis instances. ALWAYS use this |
| 54 | + before troubleshooting a Redis instance to recall past issues, |
| 55 | + solutions, and context. Search by instance_id, error patterns, |
| 56 | + or symptoms. |
| 57 | + |
| 58 | + {original} |
| 59 | + get_long_term_memory: |
| 60 | + description: | |
| 61 | + Retrieve a specific memory by ID. Use this to get full details |
| 62 | + of a memory found via search. |
| 63 | + |
| 64 | + {original} |
| 65 | + edit_long_term_memory: |
| 66 | + description: | |
| 67 | + Update an existing memory. Use this to add new information to |
| 68 | + a past incident record, update resolution status, or correct |
| 69 | + outdated information. |
| 70 | + |
| 71 | + {original} |
| 72 | + delete_long_term_memories: |
| 73 | + description: | |
| 74 | + Delete memories that are no longer relevant. Use sparingly - |
| 75 | + prefer editing to add context rather than deleting. |
| 76 | + |
| 77 | + {original} |
| 78 | + |
| 79 | + # GitHub MCP server for repository operations |
| 80 | + # Option 1: Local Docker (requires Docker to be running) |
| 81 | + github: |
| 82 | + command: docker |
| 83 | + args: |
| 84 | + - run |
| 85 | + - -i |
| 86 | + - --rm |
| 87 | + - -e |
| 88 | + - GITHUB_PERSONAL_ACCESS_TOKEN |
| 89 | + - ghcr.io/github/github-mcp-server |
| 90 | + env: |
| 91 | + # Set your GitHub Personal Access Token here or via environment variable |
| 92 | + GITHUB_PERSONAL_ACCESS_TOKEN: ${GITHUB_PERSONAL_ACCESS_TOKEN} |
| 93 | + |
| 94 | + # Option 2: Remote GitHub MCP server (recommended, no Docker needed) |
| 95 | + # Uncomment the following and comment out the local Docker option above: |
| 96 | + # github: |
| 97 | + # url: "https://api.githubcopilot.com/mcp/" |
| 98 | + # headers: |
| 99 | + # Authorization: "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}" |
| 100 | + # # transport: streamable_http # default, uses Streamable HTTP protocol |
| 101 | + |
| 102 | +# Tool providers configuration (fully qualified class paths) |
| 103 | +# tool_providers: |
| 104 | +# - redis_sre_agent.tools.metrics.prometheus.provider.PrometheusToolProvider |
| 105 | +# - redis_sre_agent.tools.diagnostics.redis_command.provider.RedisCommandToolProvider |
| 106 | +# - redis_sre_agent.tools.logs.loki.provider.LokiToolProvider |
| 107 | +# - redis_sre_agent.tools.host_telemetry.provider.HostTelemetryToolProvider |
0 commit comments