Skip to content

Commit 608dc97

Browse files
committed
Latest MCP changes
1 parent 6b8bd1d commit 608dc97

36 files changed

+3815
-315
lines changed

config.yaml.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ mcp_servers:
7777
{original}
7878

7979
# GitHub MCP server for repository operations
80+
# Option 1: Local Docker (requires Docker to be running)
8081
github:
8182
command: docker
8283
args:
@@ -90,6 +91,14 @@ mcp_servers:
9091
# Set your GitHub Personal Access Token here or via environment variable
9192
GITHUB_PERSONAL_ACCESS_TOKEN: ${GITHUB_PERSONAL_ACCESS_TOKEN}
9293

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+
93102
# Tool providers configuration (fully qualified class paths)
94103
# tool_providers:
95104
# - redis_sre_agent.tools.metrics.prometheus.provider.PrometheusToolProvider

docker-compose.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,27 @@ services:
329329
networks:
330330
- sre-network
331331

332+
# GitHub MCP Server - Exposes GitHub tools via MCP
333+
# This runs the GitHub MCP server behind an SSE/HTTP proxy so the sre-worker
334+
# can connect to it without needing Docker-in-Docker permissions.
335+
github-mcp:
336+
image: ghcr.io/sparfenyuk/mcp-proxy:latest
337+
ports:
338+
- "8082:8082"
339+
environment:
340+
- GITHUB_PERSONAL_ACCESS_TOKEN=${GITHUB_PERSONAL_ACCESS_TOKEN}
341+
command: >
342+
--pass-environment
343+
--port=8082
344+
--host=0.0.0.0
345+
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
346+
volumes:
347+
- /var/run/docker.sock:/var/run/docker.sock
348+
networks:
349+
- sre-network
350+
profiles:
351+
- mcp # Start with: docker compose --profile mcp up
352+
332353
# SRE Agent MCP Server - Exposes agent capabilities via Model Context Protocol
333354
# Connect Claude to this via: Settings > Connectors > Add Custom Connector
334355
# HTTP: http://localhost:8081/mcp

docs/how-to/api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ curl -fsS -X POST http://localhost:8080/api/v1/instances/test-connection-url \
7272

7373
### 4) Triage with tasks and threads
7474
Simplest: create a task with your question. The API will create a thread if you omit `thread_id`.
75+
76+
> **Note**: Triage performs comprehensive analysis (metrics, logs, knowledge base, multi-topic recommendations) and typically takes **2-10 minutes** to complete. Poll the task status or use WebSocket for real-time updates.
7577
```bash
7678
# Create a task (no instance)
7779
curl -fsS -X POST http://localhost:8080/api/v1/tasks \

docs/how-to/configuration.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,14 @@ mcp_servers:
5151
before troubleshooting to recall past issues and solutions.
5252
{original}
5353
54-
# GitHub MCP server for repository operations
54+
# GitHub MCP server (remote) - uses GitHub's hosted MCP endpoint
55+
# Requires a GitHub Personal Access Token with appropriate permissions
56+
# Uses Streamable HTTP transport (default for URL-based connections)
5557
github:
56-
command: docker
57-
args:
58-
- run
59-
- -i
60-
- --rm
61-
- -e
62-
- GITHUB_PERSONAL_ACCESS_TOKEN
63-
- ghcr.io/github/github-mcp-server
64-
env:
65-
GITHUB_PERSONAL_ACCESS_TOKEN: ${GITHUB_PERSONAL_ACCESS_TOKEN}
58+
url: "https://api.githubcopilot.com/mcp/"
59+
headers:
60+
Authorization: "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
61+
# transport: streamable_http # default, can also be 'sse' for legacy servers
6662
```
6763

6864
See `config.yaml.example` for a complete example with all available options.

docs/reference/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ mcp_servers:
2121
args: [string] # Command arguments
2222
env: {key: value} # Environment variables
2323
url: string # Optional: URL for HTTP-based servers
24+
headers: {key: value} # Optional: Headers for HTTP transport (e.g., Authorization)
25+
transport: string # Optional: 'streamable_http' (default) or 'sse'
2426
tools: # Optional: Tool-specific configurations
2527
tool-name:
2628
description: string # Override tool description ({original} for default)

redis_sre_agent/agent/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""SRE Agent module."""
22

3+
from .chat_agent import ChatAgent, get_chat_agent
34
from .langgraph_agent import SRELangGraphAgent, get_sre_agent
45

5-
__all__ = ["SRELangGraphAgent", "get_sre_agent"]
6+
__all__ = ["SRELangGraphAgent", "get_sre_agent", "ChatAgent", "get_chat_agent"]

0 commit comments

Comments
 (0)