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.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Fortune
3
+ Copyright (c) 2026 Fortune Osokor
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,9 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: termigent
3
- Version: 0.1.0
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
+ ![Termigent terminal showing the green prompt, white command, and light-gray output](https://raw.githubusercontent.com/Re4lLife/Termigent/main/assets/terminal.png)
72
77
 
73
78
  ## Tool
74
79
 
@@ -84,39 +89,15 @@ agent@termigent:~$ pwd
84
89
 
85
90
  ## Connect Claude Desktop
86
91
 
87
- Claude Desktop brokers remote connectors through Anthropic's cloud, so a connector URL cannot reach your loopback address. Bridge the SSE endpoint through `mcp-remote` in the Desktop config instead. This requires Node.js, which provides `npx`.
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 --port 8000
96
+ termigent --host 0.0.0.0
106
97
  ```
107
98
 
108
- Then, on the machine running Claude Desktop, point the bridge at the server:
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
+ ![Termigent terminal showing the green prompt, white command, and light-gray output](https://raw.githubusercontent.com/Re4lLife/Termigent/main/assets/terminal.png)
43
45
 
44
46
  ## Tool
45
47
 
@@ -55,39 +57,15 @@ agent@termigent:~$ pwd
55
57
 
56
58
  ## Connect Claude Desktop
57
59
 
58
- Claude Desktop brokers remote connectors through Anthropic's cloud, so a connector URL cannot reach your loopback address. Bridge the SSE endpoint through `mcp-remote` in the Desktop config instead. This requires Node.js, which provides `npx`.
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 --port 8000
64
+ termigent --host 0.0.0.0
77
65
  ```
78
66
 
79
- Then, on the machine running Claude Desktop, point the bridge at the server:
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
 
@@ -54,7 +54,7 @@ def _silence_network_logs() -> None:
54
54
 
55
55
  async def _serve(host: str, port: int) -> None:
56
56
  config = uvicorn.Config(
57
- build_app(),
57
+ build_app(host),
58
58
  host=host,
59
59
  port=port,
60
60
  log_config=None,
@@ -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
- def build_app():
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.0
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
+ ![Termigent terminal showing the green prompt, white command, and light-gray output](https://raw.githubusercontent.com/Re4lLife/Termigent/main/assets/terminal.png)
72
77
 
73
78
  ## Tool
74
79
 
@@ -84,39 +89,15 @@ agent@termigent:~$ pwd
84
89
 
85
90
  ## Connect Claude Desktop
86
91
 
87
- Claude Desktop brokers remote connectors through Anthropic's cloud, so a connector URL cannot reach your loopback address. Bridge the SSE endpoint through `mcp-remote` in the Desktop config instead. This requires Node.js, which provides `npx`.
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 --port 8000
96
+ termigent --host 0.0.0.0
106
97
  ```
107
98
 
108
- Then, on the machine running Claude Desktop, point the bridge at the server:
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.
@@ -2,6 +2,7 @@
2
2
  LICENSE
3
3
  README.md
4
4
  pyproject.toml
5
+ assets/terminal.png
5
6
  termigent/__init__.py
6
7
  termigent/__main__.py
7
8
  termigent/cli.py
@@ -3,6 +3,7 @@
3
3
  ".gitignore",
4
4
  "LICENSE",
5
5
  "README.md",
6
+ "assets/terminal.png",
6
7
  "pyproject.toml",
7
8
  "termigent/__init__.py",
8
9
  "termigent/__main__.py",
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.1.1",
3
+ "distance": 0,
4
+ "node": "gb5e05645379758b946a5011d5771e1e1d75914a1",
5
+ "dirty": false,
6
+ "branch": "main",
7
+ "node_date": "2026-11-01"
8
+ }
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "0.1.0",
3
- "distance": 0,
4
- "node": "gec7fb0b710404805ab8fc9aebee7f0d8a038f69b",
5
- "dirty": false,
6
- "branch": "main",
7
- "node_date": "2026-10-22"
8
- }
File without changes
File without changes