termigent 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- {termigent-0.1.0 → termigent-0.1.1}/LICENSE +1 -1
- {termigent-0.1.0/termigent.egg-info → termigent-0.1.1}/PKG-INFO +11 -30
- {termigent-0.1.0 → termigent-0.1.1}/README.md +7 -29
- termigent-0.1.1/assets/terminal.png +0 -0
- {termigent-0.1.0 → termigent-0.1.1}/pyproject.toml +5 -0
- {termigent-0.1.0 → termigent-0.1.1}/termigent/cli.py +1 -1
- {termigent-0.1.0 → termigent-0.1.1}/termigent/server.py +9 -1
- {termigent-0.1.0 → termigent-0.1.1/termigent.egg-info}/PKG-INFO +11 -30
- {termigent-0.1.0 → termigent-0.1.1}/termigent.egg-info/SOURCES.txt +1 -0
- {termigent-0.1.0 → termigent-0.1.1}/termigent.egg-info/scm_file_list.json +1 -0
- termigent-0.1.1/termigent.egg-info/scm_version.json +8 -0
- termigent-0.1.0/termigent.egg-info/scm_version.json +0 -8
- {termigent-0.1.0 → termigent-0.1.1}/.gitignore +0 -0
- {termigent-0.1.0 → termigent-0.1.1}/setup.cfg +0 -0
- {termigent-0.1.0 → termigent-0.1.1}/termigent/__init__.py +0 -0
- {termigent-0.1.0 → termigent-0.1.1}/termigent/__main__.py +0 -0
- {termigent-0.1.0 → termigent-0.1.1}/termigent.egg-info/dependency_links.txt +0 -0
- {termigent-0.1.0 → termigent-0.1.1}/termigent.egg-info/entry_points.txt +0 -0
- {termigent-0.1.0 → termigent-0.1.1}/termigent.egg-info/requires.txt +0 -0
- {termigent-0.1.0 → termigent-0.1.1}/termigent.egg-info/top_level.txt +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: termigent
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Universal MCP server that exposes a system terminal over SSE.
|
|
5
5
|
Author: Fortune
|
|
6
6
|
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Re4lLife/Termigent
|
|
8
|
+
Project-URL: Repository, https://github.com/Re4lLife/Termigent
|
|
9
|
+
Project-URL: Issues, https://github.com/Re4lLife/Termigent/issues
|
|
7
10
|
Keywords: mcp,model-context-protocol,sse,terminal,shell,ai,llm
|
|
8
11
|
Classifier: Development Status :: 4 - Beta
|
|
9
12
|
Classifier: Environment :: Console
|
|
@@ -68,7 +71,9 @@ termigent --host 0.0.0.0 --port 8000
|
|
|
68
71
|
|
|
69
72
|
The MCP endpoint is `http://<host>:<port>/sse`.
|
|
70
73
|
|
|
74
|
+
## Preview
|
|
71
75
|
|
|
76
|
+

|
|
72
77
|
|
|
73
78
|
## Tool
|
|
74
79
|
|
|
@@ -84,39 +89,15 @@ agent@termigent:~$ pwd
|
|
|
84
89
|
|
|
85
90
|
## Connect Claude Desktop
|
|
86
91
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
**On the local machine** — start `termigent`, then add this to `claude_desktop_config.json`:
|
|
90
|
-
|
|
91
|
-
```json
|
|
92
|
-
{
|
|
93
|
-
"mcpServers": {
|
|
94
|
-
"termigent": {
|
|
95
|
-
"command": "npx",
|
|
96
|
-
"args": ["-y", "mcp-remote", "http://127.0.0.1:8000/sse"]
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**On a remote server** — install termigent there and bind it to all interfaces:
|
|
92
|
+
**On the local machine** — start `termigent`,
|
|
103
93
|
|
|
94
|
+
**On a remote server** — install termigent and bind to 0.0.0.0:
|
|
104
95
|
```bash
|
|
105
|
-
termigent --host 0.0.0.0
|
|
96
|
+
termigent --host 0.0.0.0
|
|
106
97
|
```
|
|
107
98
|
|
|
108
|
-
Then, on the machine running Claude Desktop,
|
|
109
|
-
|
|
110
|
-
```json
|
|
111
|
-
{
|
|
112
|
-
"mcpServers": {
|
|
113
|
-
"termigent": {
|
|
114
|
-
"command": "npx",
|
|
115
|
-
"args": ["-y", "mcp-remote", "http://SERVER_IP:8000/sse"]
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
```
|
|
99
|
+
Then, on the machine running Claude Desktop, open settings and add to connectors;
|
|
100
|
+
`http://<host>:<port>/sse`.
|
|
120
101
|
|
|
121
102
|
|
|
122
103
|
Restart Claude Desktop after changing its config so it initializes a new MCP session.
|
|
@@ -39,7 +39,9 @@ termigent --host 0.0.0.0 --port 8000
|
|
|
39
39
|
|
|
40
40
|
The MCP endpoint is `http://<host>:<port>/sse`.
|
|
41
41
|
|
|
42
|
+
## Preview
|
|
42
43
|
|
|
44
|
+

|
|
43
45
|
|
|
44
46
|
## Tool
|
|
45
47
|
|
|
@@ -55,39 +57,15 @@ agent@termigent:~$ pwd
|
|
|
55
57
|
|
|
56
58
|
## Connect Claude Desktop
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
**On the local machine** — start `termigent`, then add this to `claude_desktop_config.json`:
|
|
61
|
-
|
|
62
|
-
```json
|
|
63
|
-
{
|
|
64
|
-
"mcpServers": {
|
|
65
|
-
"termigent": {
|
|
66
|
-
"command": "npx",
|
|
67
|
-
"args": ["-y", "mcp-remote", "http://127.0.0.1:8000/sse"]
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
**On a remote server** — install termigent there and bind it to all interfaces:
|
|
60
|
+
**On the local machine** — start `termigent`,
|
|
74
61
|
|
|
62
|
+
**On a remote server** — install termigent and bind to 0.0.0.0:
|
|
75
63
|
```bash
|
|
76
|
-
termigent --host 0.0.0.0
|
|
64
|
+
termigent --host 0.0.0.0
|
|
77
65
|
```
|
|
78
66
|
|
|
79
|
-
Then, on the machine running Claude Desktop,
|
|
80
|
-
|
|
81
|
-
```json
|
|
82
|
-
{
|
|
83
|
-
"mcpServers": {
|
|
84
|
-
"termigent": {
|
|
85
|
-
"command": "npx",
|
|
86
|
-
"args": ["-y", "mcp-remote", "http://SERVER_IP:8000/sse"]
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
```
|
|
67
|
+
Then, on the machine running Claude Desktop, open settings and add to connectors;
|
|
68
|
+
`http://<host>:<port>/sse`.
|
|
91
69
|
|
|
92
70
|
|
|
93
71
|
Restart Claude Desktop after changing its config so it initializes a new MCP session.
|
|
Binary file
|
|
@@ -34,6 +34,11 @@ dependencies = [
|
|
|
34
34
|
[project.optional-dependencies]
|
|
35
35
|
dev = ["build>=1.0", "twine>=5.0"]
|
|
36
36
|
|
|
37
|
+
[project.urls]
|
|
38
|
+
Homepage = "https://github.com/Re4lLife/Termigent"
|
|
39
|
+
Repository = "https://github.com/Re4lLife/Termigent"
|
|
40
|
+
Issues = "https://github.com/Re4lLife/Termigent/issues"
|
|
41
|
+
|
|
37
42
|
[project.scripts]
|
|
38
43
|
termigent = "termigent.cli:main"
|
|
39
44
|
|
|
@@ -4,6 +4,7 @@ import subprocess
|
|
|
4
4
|
import sys
|
|
5
5
|
|
|
6
6
|
from mcp.server.fastmcp import FastMCP
|
|
7
|
+
from mcp.server.transport_security import TransportSecuritySettings
|
|
7
8
|
|
|
8
9
|
GREEN = "\033[32m"
|
|
9
10
|
WHITE = "\033[97m"
|
|
@@ -45,6 +46,13 @@ def run_command(command: str) -> str:
|
|
|
45
46
|
return output
|
|
46
47
|
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
_LOOPBACK_HOSTS = {"127.0.0.1", "localhost", "::1"}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def build_app(host: str = "127.0.0.1"):
|
|
49
53
|
"""Return the Starlette app exposing the SSE MCP endpoint."""
|
|
54
|
+
if host not in _LOOPBACK_HOSTS:
|
|
55
|
+
mcp.settings.transport_security = TransportSecuritySettings(
|
|
56
|
+
enable_dns_rebinding_protection=False
|
|
57
|
+
)
|
|
50
58
|
return mcp.sse_app()
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: termigent
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Universal MCP server that exposes a system terminal over SSE.
|
|
5
5
|
Author: Fortune
|
|
6
6
|
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Re4lLife/Termigent
|
|
8
|
+
Project-URL: Repository, https://github.com/Re4lLife/Termigent
|
|
9
|
+
Project-URL: Issues, https://github.com/Re4lLife/Termigent/issues
|
|
7
10
|
Keywords: mcp,model-context-protocol,sse,terminal,shell,ai,llm
|
|
8
11
|
Classifier: Development Status :: 4 - Beta
|
|
9
12
|
Classifier: Environment :: Console
|
|
@@ -68,7 +71,9 @@ termigent --host 0.0.0.0 --port 8000
|
|
|
68
71
|
|
|
69
72
|
The MCP endpoint is `http://<host>:<port>/sse`.
|
|
70
73
|
|
|
74
|
+
## Preview
|
|
71
75
|
|
|
76
|
+

|
|
72
77
|
|
|
73
78
|
## Tool
|
|
74
79
|
|
|
@@ -84,39 +89,15 @@ agent@termigent:~$ pwd
|
|
|
84
89
|
|
|
85
90
|
## Connect Claude Desktop
|
|
86
91
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
**On the local machine** — start `termigent`, then add this to `claude_desktop_config.json`:
|
|
90
|
-
|
|
91
|
-
```json
|
|
92
|
-
{
|
|
93
|
-
"mcpServers": {
|
|
94
|
-
"termigent": {
|
|
95
|
-
"command": "npx",
|
|
96
|
-
"args": ["-y", "mcp-remote", "http://127.0.0.1:8000/sse"]
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**On a remote server** — install termigent there and bind it to all interfaces:
|
|
92
|
+
**On the local machine** — start `termigent`,
|
|
103
93
|
|
|
94
|
+
**On a remote server** — install termigent and bind to 0.0.0.0:
|
|
104
95
|
```bash
|
|
105
|
-
termigent --host 0.0.0.0
|
|
96
|
+
termigent --host 0.0.0.0
|
|
106
97
|
```
|
|
107
98
|
|
|
108
|
-
Then, on the machine running Claude Desktop,
|
|
109
|
-
|
|
110
|
-
```json
|
|
111
|
-
{
|
|
112
|
-
"mcpServers": {
|
|
113
|
-
"termigent": {
|
|
114
|
-
"command": "npx",
|
|
115
|
-
"args": ["-y", "mcp-remote", "http://SERVER_IP:8000/sse"]
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
```
|
|
99
|
+
Then, on the machine running Claude Desktop, open settings and add to connectors;
|
|
100
|
+
`http://<host>:<port>/sse`.
|
|
120
101
|
|
|
121
102
|
|
|
122
103
|
Restart Claude Desktop after changing its config so it initializes a new MCP session.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|