Skip to content

Commit a89a590

Browse files
committed
Improve comments' readability.
1 parent 92ed41d commit a89a590

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mindmap_mcp_server/server.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
from pathlib import Path
1212
from mcp.server.fastmcp import FastMCP
1313

14-
# 解析命令行参数
14+
# Parse command line arguments
1515
def parse_arguments():
1616
parser = argparse.ArgumentParser(description='MCP Server for converting Markdown to mindmaps')
1717
parser.add_argument('--return-type', choices=['html', 'filePath'], default='html',
1818
help='Whether to return HTML content or file path. Default: html')
1919
return parser.parse_args()
2020

21-
# 全局配置
21+
# Global configuration
2222
args = parse_arguments()
2323
RETURN_TYPE = args.return_type
2424

@@ -103,7 +103,7 @@ def main():
103103
"""Entry point for the mindmap-mcp-server command."""
104104
global args, RETURN_TYPE
105105

106-
# 再次解析参数以确保在作为入口点运行时也能获取参数
106+
# Parse arguments again to ensure parameters are captured when running as an entry point
107107
args = parse_arguments()
108108
RETURN_TYPE = args.return_type
109109

0 commit comments

Comments
 (0)