winterm-mcp 0.1.7__py3-none-any.whl → 0.1.8__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/__main__.py +4 -0
- winterm_mcp/constants.py +1 -1
- {winterm_mcp-0.1.7.dist-info → winterm_mcp-0.1.8.dist-info}/METADATA +44 -3
- {winterm_mcp-0.1.7.dist-info → winterm_mcp-0.1.8.dist-info}/RECORD +8 -8
- {winterm_mcp-0.1.7.dist-info → winterm_mcp-0.1.8.dist-info}/WHEEL +0 -0
- {winterm_mcp-0.1.7.dist-info → winterm_mcp-0.1.8.dist-info}/entry_points.txt +0 -0
- {winterm_mcp-0.1.7.dist-info → winterm_mcp-0.1.8.dist-info}/licenses/LICENSE +0 -0
- {winterm_mcp-0.1.7.dist-info → winterm_mcp-0.1.8.dist-info}/top_level.txt +0 -0
winterm_mcp/__main__.py
CHANGED
|
@@ -30,6 +30,10 @@ def main():
|
|
|
30
30
|
f"WINTERM_POWERSHELL_PATH: "
|
|
31
31
|
f"{os.environ.get('WINTERM_POWERSHELL_PATH', '(not set)')}"
|
|
32
32
|
)
|
|
33
|
+
logger.info(
|
|
34
|
+
f"WINTERM_PYTHON_PATH: "
|
|
35
|
+
f"{os.environ.get('WINTERM_PYTHON_PATH', '(not set)')}"
|
|
36
|
+
)
|
|
33
37
|
logger.info("=" * 60)
|
|
34
38
|
|
|
35
39
|
service = CommandService()
|
winterm_mcp/constants.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winterm-mcp
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.8
|
|
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
|
|
@@ -28,8 +28,8 @@ Dynamic: license-file
|
|
|
28
28
|
|
|
29
29
|
# winterm-mcp
|
|
30
30
|
|
|
31
|
-
**更新日期**: 2026-
|
|
32
|
-
**版本**: 0.1.
|
|
31
|
+
**更新日期**: 2026-02-05
|
|
32
|
+
**版本**: 0.1.8
|
|
33
33
|
|
|
34
34
|
Windows Terminal MCP Service - 专门支持 Windows 终端的异步命令执行工具。
|
|
35
35
|
|
|
@@ -56,6 +56,8 @@ pip install -e .
|
|
|
56
56
|
|
|
57
57
|
在 MCP 客户端配置中添加:
|
|
58
58
|
|
|
59
|
+
**基础配置**:
|
|
60
|
+
|
|
59
61
|
```json
|
|
60
62
|
{
|
|
61
63
|
"mcpServers": {
|
|
@@ -69,6 +71,27 @@ pip install -e .
|
|
|
69
71
|
}
|
|
70
72
|
```
|
|
71
73
|
|
|
74
|
+
**推荐配置(带环境变量)**:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"mcpServers": {
|
|
79
|
+
"winterm": {
|
|
80
|
+
"command": "uvx",
|
|
81
|
+
"args": [
|
|
82
|
+
"winterm-mcp"
|
|
83
|
+
],
|
|
84
|
+
"env": {
|
|
85
|
+
"WINTERM_POWERSHELL_PATH": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
|
|
86
|
+
"WINTERM_CMD_PATH": "C:\\Windows\\System32\\cmd.exe",
|
|
87
|
+
"WINTERM_PYTHON_PATH": "C:\\Python310\\python.exe",
|
|
88
|
+
"WINTERM_LOG_LEVEL": "DEBUG"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
72
95
|
### 环境配置
|
|
73
96
|
|
|
74
97
|
#### PowerShell 路径配置
|
|
@@ -108,6 +131,24 @@ $env:WINTERM_POWERSHELL_PATH = "D:\CustomPath\powershell.exe"
|
|
|
108
131
|
}
|
|
109
132
|
```
|
|
110
133
|
|
|
134
|
+
#### Python 路径配置
|
|
135
|
+
|
|
136
|
+
如果需要指定命令执行时使用的 Python 解释器,可以通过 `WINTERM_PYTHON_PATH` 环境变量指定 `python.exe` 的路径。winterm-mcp 会将该路径所在的目录添加到执行环境的 `PATH` 最前面。
|
|
137
|
+
|
|
138
|
+
```json
|
|
139
|
+
{
|
|
140
|
+
"mcpServers": {
|
|
141
|
+
"winterm": {
|
|
142
|
+
"command": "uvx",
|
|
143
|
+
"args": ["winterm-mcp"],
|
|
144
|
+
"env": {
|
|
145
|
+
"WINTERM_PYTHON_PATH": "D:\\Dev\\Python310\\python.exe"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
111
152
|
### 工具接口
|
|
112
153
|
|
|
113
154
|
#### run_command
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
winterm_mcp/__init__.py,sha256=y-6DZGsz4wX5rCZPBH5uQv0S3RYlxt2bB5RyiEe1ts8,859
|
|
2
|
-
winterm_mcp/__main__.py,sha256=
|
|
3
|
-
winterm_mcp/constants.py,sha256
|
|
2
|
+
winterm_mcp/__main__.py,sha256=2ZLPkiaahUISIw4jLgv4mOuu9TcyrWBezSQeZngs6M8,1168
|
|
3
|
+
winterm_mcp/constants.py,sha256=xfF5pWK00HVi0aNFwm7QYbTugCOJJn4JnbHO_k-36GE,647
|
|
4
4
|
winterm_mcp/models.py,sha256=zfzAd7k2a8nTmyM3QWuqPFr2ArELf5SgNyjTeWKcgAQ,1721
|
|
5
5
|
winterm_mcp/server.py,sha256=tz3JT6jpko-tv34rSIRLunLl1z5sZInT9wdmkDM2zNs,7613
|
|
6
6
|
winterm_mcp/service.py,sha256=HO1rPL4UyG2XxdT1rVdrs203tFd6FY-6S2pbhFYEPtg,22370
|
|
7
7
|
winterm_mcp/store.py,sha256=obHzcTP1c7_6r2DzgbUBysx2XpA7Esfl00wLsPSOqS4,2421
|
|
8
8
|
winterm_mcp/utils.py,sha256=uIjNFKP3T3q5ztNtxtquWKFhiWo4gjecOdHl8X3pXxA,5763
|
|
9
|
-
winterm_mcp-0.1.
|
|
10
|
-
winterm_mcp-0.1.
|
|
11
|
-
winterm_mcp-0.1.
|
|
12
|
-
winterm_mcp-0.1.
|
|
13
|
-
winterm_mcp-0.1.
|
|
14
|
-
winterm_mcp-0.1.
|
|
9
|
+
winterm_mcp-0.1.8.dist-info/licenses/LICENSE,sha256=GPZ4VAbf_gxeFMSUHCmNQING30GK0kNduK8EJIO5-gc,1081
|
|
10
|
+
winterm_mcp-0.1.8.dist-info/METADATA,sha256=ihUXNySB5S3DV7Ip9v8SpiuEGH69QaU-Wxw0M1Q7hGo,6113
|
|
11
|
+
winterm_mcp-0.1.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
12
|
+
winterm_mcp-0.1.8.dist-info/entry_points.txt,sha256=0OGioH1DKGxuxvSFD1OCRcbLoutfqdEPmJy_j2GhJTA,113
|
|
13
|
+
winterm_mcp-0.1.8.dist-info/top_level.txt,sha256=S7w96DR3MB-CMIuXLnrMOvs5ApqPF-2PsAcfVCphCHw,12
|
|
14
|
+
winterm_mcp-0.1.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|