File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Gitee MCP Server is a Model Context Protocol (MCP) server implementation for Git
10
10
- Supports both personal, organization, and enterprise operations
11
11
12
12
<details >
13
- <summary ><b >Practical scenario: Obtain Issue from the warehouse , implement and create a Pull Requestb >summary >
13
+ <summary ><b >Practical scenario: Obtain Issue from the repository , implement and create a Pull Requestb >summary >
14
14
15
15
1 . Get repository Issues
16
16
![ get_repo_issues] ( ./docs/images/get_repo_issues.jpg )
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
+ "context"
4
5
"flag"
5
6
"fmt"
6
7
"log"
@@ -70,12 +71,18 @@ func run(transport, addr string) error {
70
71
switch transport {
71
72
case "stdio" :
72
73
if err := server .ServeStdio (s ); err != nil {
74
+ if err == context .Canceled {
75
+ return nil
76
+ }
73
77
return err
74
78
}
75
79
case "sse" :
76
80
srv := server .NewSSEServer (s , "http://" + addr )
77
81
log .Printf ("SSE server listening on %s" , addr )
78
82
if err := srv .Start (addr ); err != nil {
83
+ if err == context .Canceled {
84
+ return nil
85
+ }
79
86
return fmt .Errorf ("server error: %v" , err )
80
87
}
81
88
default :
You can’t perform that action at this time.
0 commit comments