Commit 67a46f4 committed Mar 12, 2025 · 3 / 3 · Verified
1 parent 87de73d commit 67a46f4 Copy full SHA for 67a46f4
File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,11 @@ func run(transport, addr string) error {
34
34
srv .SetContextFunc (mcpgrafana .ComposedStdioContextFunc )
35
35
return srv .Listen (context .Background (), os .Stdin , os .Stdout )
36
36
case "sse" :
37
- srv := server .NewSSEServer (s , "http://" + addr )
38
- srv .SetContextFunc (mcpgrafana .ComposedSSEContextFunc )
37
+ url := "http://" + addr
38
+ srv := server .NewSSEServer (s ,
39
+ server .WithBaseURL (url ),
40
+ server .WithSSEContextFunc (mcpgrafana .ComposedSSEContextFunc ),
41
+ )
39
42
log .Printf ("SSE server listening on %s" , addr )
40
43
if err := srv .Start (addr ); err != nil {
41
44
return fmt .Errorf ("Server error: %v" , err )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require (
7
7
github.com/grafana/grafana-openapi-client-go v0.0.0-20250108132429-8d7e1f158f65
8
8
github.com/grafana/incident-go v0.0.0-20250211094540-dc6a98fdae43
9
9
github.com/invopop/jsonschema v0.13.0
10
- github.com/mark3labs/mcp-go v0.8.5
10
+ github.com/mark3labs/mcp-go v0.13.0
11
11
github.com/prometheus/client_golang v1.21.0
12
12
github.com/prometheus/common v0.62.0
13
13
github.com/stretchr/testify v1.10.0
@@ -62,6 +62,3 @@ require (
62
62
gopkg.in/yaml.v2 v2.4.0 // indirect
63
63
gopkg.in/yaml.v3 v3.0.1 // indirect
64
64
)
65
-
66
- // Use a fork until https://github.com/mark3labs/mcp-go/pull/32 is merged.
67
- replace github.com/mark3labs/mcp-go => github.com/grafana/mcp-go v0.8.6-0.20250226194234-5e1fa6f6f8af
Original file line number Diff line number Diff line change @@ -46,8 +46,6 @@ github.com/grafana/grafana-openapi-client-go v0.0.0-20250108132429-8d7e1f158f65
46
46
github.com/grafana/grafana-openapi-client-go v0.0.0-20250108132429-8d7e1f158f65 /go.mod h1:hiZnMmXc9KXNUlvkV2BKFsiWuIFF/fF4wGgYWEjBitI =
47
47
github.com/grafana/incident-go v0.0.0-20250211094540-dc6a98fdae43 h1:+MCsOKi5BJ1wO3PRj3eDNxCScYwE2IcKNW1t8OcTarE =
48
48
github.com/grafana/incident-go v0.0.0-20250211094540-dc6a98fdae43 /go.mod h1:3QDfdZOWKRxNhMJFL+0C/+12+jLNHDlt0VKNr/i9Daw =
49
- github.com/grafana/mcp-go v0.8.6-0.20250226194234-5e1fa6f6f8af h1:SwCTIu0dpOapmOc+3HQtC5VM7CUimW0r83u+5fCgQTU =
50
- github.com/grafana/mcp-go v0.8.6-0.20250226194234-5e1fa6f6f8af /go.mod h1:cjMlBU0cv/cj9kjlgmRhoJ5JREdS7YX83xeIG9Ko/jE =
51
49
github.com/invopop/jsonschema v0.13.0 h1:KvpoAJWEjR3uD9Kbm2HWJmqsEaHt8lBUpd0qHcIi21E =
52
50
github.com/invopop/jsonschema v0.13.0 /go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0 =
53
51
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY =
@@ -64,6 +62,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
64
62
github.com/kr/text v0.2.0 /go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE =
65
63
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0 =
66
64
github.com/mailru/easyjson v0.7.7 /go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc =
65
+ github.com/mark3labs/mcp-go v0.13.0 h1:HP+cJaE9KjWufUF9FxN/XgcXE6LVSebFZLiZYPmFbGU =
66
+ github.com/mark3labs/mcp-go v0.13.0 /go.mod h1:cjMlBU0cv/cj9kjlgmRhoJ5JREdS7YX83xeIG9Ko/jE =
67
67
github.com/matryer/is v1.4.1 h1:55ehd8zaGABKLXQUe2awZ99BD/PTc2ls+KV/dXphgEQ =
68
68
github.com/matryer/is v1.4.1 /go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU =
69
69
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY =
You can’t perform that action at this time.
0 commit comments