winterm-mcp 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
winterm_mcp/service.py CHANGED
@@ -88,7 +88,16 @@ class RunCmdService:
88
88
  encoding = "gbk"
89
89
 
90
90
  if shell_type == "powershell":
91
- cmd_args = ["powershell", "-NoProfile", "-NonInteractive", "-Command", command]
91
+ # 添加 -ExecutionPolicy Bypass 避免执行策略阻塞
92
+ # 添加 -NoLogo 减少启动输出
93
+ cmd_args = [
94
+ "powershell",
95
+ "-NoProfile",
96
+ "-NoLogo",
97
+ "-NonInteractive",
98
+ "-ExecutionPolicy", "Bypass",
99
+ "-Command", command
100
+ ]
92
101
  else:
93
102
  cmd_args = ["cmd", "/c", command]
94
103
 
@@ -99,6 +108,7 @@ class RunCmdService:
99
108
  timeout=timeout,
100
109
  cwd=working_directory,
101
110
  encoding=encoding,
111
+ stdin=subprocess.DEVNULL, # 防止等待输入导致挂起
102
112
  )
103
113
 
104
114
  execution_time = time.time() - start_time
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winterm-mcp
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A Model Context Protocol (MCP) service for executing Windows terminal commands asynchronously
5
5
  Author-email: winterm-mcp contributors <maintainer@example.com>
6
6
  License: MIT
@@ -0,0 +1,10 @@
1
+ winterm_mcp/__init__.py,sha256=2Z5_ooE56FyBhidVPwkvcWPyl4ONfzi5ZRmmg2RvUm4,120
2
+ winterm_mcp/__main__.py,sha256=aCm888vzPOYtBDLtV02zAKkjIhrFAd2xB-TZAl4qHCc,300
3
+ winterm_mcp/server.py,sha256=JEZc6NJeOrMuZejV6aho1UINZEOTDWNor3YYEdzPWCI,3204
4
+ winterm_mcp/service.py,sha256=x0Ve8VS_ZodSNaZbDkO-pkFGui_6v_ooam_3WezcKxc,5995
5
+ winterm_mcp-0.1.3.dist-info/licenses/LICENSE,sha256=GPZ4VAbf_gxeFMSUHCmNQING30GK0kNduK8EJIO5-gc,1081
6
+ winterm_mcp-0.1.3.dist-info/METADATA,sha256=43DUZ9PYyPZXGJ4Qo8_0CiH8YwBNLH80NN7jjHDdcKg,4052
7
+ winterm_mcp-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ winterm_mcp-0.1.3.dist-info/entry_points.txt,sha256=0OGioH1DKGxuxvSFD1OCRcbLoutfqdEPmJy_j2GhJTA,113
9
+ winterm_mcp-0.1.3.dist-info/top_level.txt,sha256=S7w96DR3MB-CMIuXLnrMOvs5ApqPF-2PsAcfVCphCHw,12
10
+ winterm_mcp-0.1.3.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- winterm_mcp/__init__.py,sha256=2Z5_ooE56FyBhidVPwkvcWPyl4ONfzi5ZRmmg2RvUm4,120
2
- winterm_mcp/__main__.py,sha256=aCm888vzPOYtBDLtV02zAKkjIhrFAd2xB-TZAl4qHCc,300
3
- winterm_mcp/server.py,sha256=JEZc6NJeOrMuZejV6aho1UINZEOTDWNor3YYEdzPWCI,3204
4
- winterm_mcp/service.py,sha256=MJ8j11kJsWmnlhgQkhT8B5vvOvutNmF7_aHoUXZjQPo,5614
5
- winterm_mcp-0.1.2.dist-info/licenses/LICENSE,sha256=GPZ4VAbf_gxeFMSUHCmNQING30GK0kNduK8EJIO5-gc,1081
6
- winterm_mcp-0.1.2.dist-info/METADATA,sha256=YOnugwqGbpdrXSPyjHquNwhO0y7uxmaxcar6HWwyL_E,4052
7
- winterm_mcp-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- winterm_mcp-0.1.2.dist-info/entry_points.txt,sha256=0OGioH1DKGxuxvSFD1OCRcbLoutfqdEPmJy_j2GhJTA,113
9
- winterm_mcp-0.1.2.dist-info/top_level.txt,sha256=S7w96DR3MB-CMIuXLnrMOvs5ApqPF-2PsAcfVCphCHw,12
10
- winterm_mcp-0.1.2.dist-info/RECORD,,