File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 21
21
Use : "server" ,
22
22
Short : "GitHub MCP Server" ,
23
23
Long : `A GitHub MCP server that handles various tools and resources.` ,
24
- PersistentPreRun : func (cmd * cobra.Command , args []string ) {
25
- // Bind flag to viper
26
- viper .BindPFlag ("log-file" , cmd .PersistentFlags ().Lookup ("log-file" ))
27
- },
28
24
}
29
25
30
26
stdioCmd = & cobra.Command {
@@ -50,6 +46,9 @@ func init() {
50
46
// Add global flags that will be shared by all commands
51
47
rootCmd .PersistentFlags ().String ("log-file" , "" , "Path to log file" )
52
48
49
+ // Bind flag to viper
50
+ viper .BindPFlag ("log-file" , rootCmd .PersistentFlags ().Lookup ("log-file" ))
51
+
53
52
// Add subcommands
54
53
rootCmd .AddCommand (stdioCmd )
55
54
}
Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ module github.com/github/github-mcp-server
3
3
go 1.23.7
4
4
5
5
require (
6
+ github.com/aws/smithy-go v1.22.3
6
7
github.com/google/go-github/v69 v69.2.0
7
8
github.com/mark3labs/mcp-go v0.11.2
8
9
github.com/sirupsen/logrus v1.9.3
9
10
github.com/spf13/cobra v1.9.1
10
11
github.com/spf13/viper v1.19.0
11
- github.com/aws/smithy-go v1.22.3
12
+ golang.org/x/exp v0.0.0-20230905200255-921286631fa9
12
13
)
13
14
14
15
require (
@@ -29,7 +30,6 @@ require (
29
30
github.com/subosito/gotenv v1.6.0 // indirect
30
31
go.uber.org/atomic v1.9.0 // indirect
31
32
go.uber.org/multierr v1.9.0 // indirect
32
- golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
33
33
golang.org/x/sys v0.18.0 // indirect
34
34
golang.org/x/text v0.14.0 // indirect
35
35
gopkg.in/ini.v1 v1.67.0 // indirect
You can’t perform that action at this time.
0 commit comments