You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mcp_github/issues_pr_analyser.py
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@
31
31
logging.getLogger(__name__)
32
32
logging.basicConfig(level=logging.WARNING)
33
33
34
+
PORT=int(getenv("PORT", 8081))
35
+
HOST=getenv("HOST", "localhost")
36
+
34
37
classPRIssueAnalyser:
35
38
"""
36
39
PRIssueAnalyser is a class that provides an interface for analyzing GitHub Pull Requests (PRs) and managing GitHub Issues, Tags, and Releases, as well as retrieving IP information. It integrates with GitHub and an MCP (Multi-Component Platform) server to expose a set of tools for PR and issue management, and can be run as an MCP server using either SSE or stdio transport.
@@ -92,6 +95,8 @@ def __init__(self):
92
95
- Use get_ipv4_info and get_ipv6_info for IP information
93
96
- Always maintain a professional, clear and concise tone
This method checks the 'MCP_ENABLE_REMOTE' environment variable to determine the transport mechanism for
113
-
the MCP server. If 'MCP_ENABLE_REMOTE' is set, it uses Server-Sent Events (SSE) transport; otherwise, it defaults to standard input/output (stdio) transport
114
-
Returns:
115
-
None
116
-
Error Handling:
117
-
Logs any exceptions that occur during server execution and prints the traceback
118
-
to standard error for debugging purposes.
117
+
Uses HTTP transport if MCP_ENABLE_REMOTE is set, otherwise uses stdio.
0 commit comments