Skip to content

Commit e5a767e

Browse files
committed
remove gotoon dep
1 parent 770da43 commit e5a767e

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/github/github-mcp-server
33
go 1.24.0
44

55
require (
6-
github.com/alpkeskin/gotoon v0.1.1
76
github.com/google/go-github/v79 v79.0.0
87
github.com/josephburnett/jd v1.9.2
98
github.com/mark3labs/mcp-go v0.36.0

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
github.com/alpkeskin/gotoon v0.1.1 h1:GQOVwMfWKINnfEA6slrXHJaJYDwnUFmrPlXOtnuja1w=
2-
github.com/alpkeskin/gotoon v0.1.1/go.mod h1:XRTz8RM4tz8M2nB37MNRN8rHF4YgeYd8nIXmoU0B0+M=
31
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
42
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
53
github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk=

pkg/github/response_formatter.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@ import (
77
"reflect"
88
"strings"
99

10-
"github.com/alpkeskin/gotoon"
1110
"github.com/mark3labs/mcp-go/mcp"
1211
)
1312

1413
// FormatResponse is an universal response formatter with optional pagination metadata.
1514
func FormatResponse(data interface{}, flags FeatureFlags, dataKey string, metadata ...interface{}) (*mcp.CallToolResult, error) {
1615
// TOON format
17-
if flags.TOONFormat {
18-
output, err := gotoon.Encode(data)
19-
if err != nil {
20-
return nil, fmt.Errorf("failed to encode as TOON: %w", err)
21-
}
22-
return mcp.NewToolResultText(string(output)), nil
23-
}
16+
// if flags.TOONFormat {
17+
// output, err := gotoon.Encode(data)
18+
// if err != nil {
19+
// return nil, fmt.Errorf("failed to encode as TOON: %w", err)
20+
// }
21+
// return mcp.NewToolResultText(string(output)), nil
22+
// }
2423

2524
// JSON format - this is just the original behaviour when JSONFormat is enabled
2625
if flags.JSONFormat {

0 commit comments

Comments
 (0)