rigout 0.1.0__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.
@@ -0,0 +1,73 @@
1
+ # Sensitive local configuration
2
+ .env
3
+ .env.*
4
+ !.env.example
5
+ *.key
6
+ *.pem
7
+ *_key
8
+ *_key.pub
9
+ *_rsa
10
+ *_rsa.pub
11
+ *.token
12
+ *.secret
13
+ mcp-server-config.json
14
+ cloudflare-config.json
15
+ ai_agent_connection.*
16
+ connection_info.*
17
+ configs/
18
+
19
+ # Runtime state and logs
20
+ *.log
21
+ .rigout.pid
22
+ .rigout.log
23
+ .rigout_stdout.log
24
+ .rigout_stderr.log
25
+ logs/
26
+ production_validation_report.json
27
+ .workspace_state.json
28
+ bin/
29
+
30
+ # Python build/test artifacts
31
+ __pycache__/
32
+ *.py[cod]
33
+ *$py.class
34
+ .Python
35
+ .pytest_cache/
36
+ .mypy_cache/
37
+ .ruff_cache/
38
+ .coverage
39
+ coverage.xml
40
+ htmlcov/
41
+ .tox/
42
+ .cache/
43
+ .hypothesis/
44
+ build/
45
+ dist/
46
+ *.egg-info/
47
+ wheels/
48
+
49
+ # Virtual environments
50
+ .venv/
51
+ venv/
52
+ env/
53
+ ENV/
54
+
55
+ # Generated project exports
56
+ generated_files/
57
+ generated_repo_files/
58
+
59
+ # Editor and OS files
60
+ .vscode/
61
+ .idea/
62
+ .kiro/
63
+ *.swp
64
+ *.swo
65
+ *~
66
+ .DS_Store
67
+ Thumbs.db
68
+
69
+ # Temporary files
70
+ *.tmp
71
+ *.temp
72
+ tmp/
73
+ temp/
rigout-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the LICENSE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 The Rigout Authors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
rigout-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,176 @@
1
+ Metadata-Version: 2.4
2
+ Name: rigout
3
+ Version: 0.1.0
4
+ Summary: Let AI agents use your computer through MCP.
5
+ Project-URL: Homepage, https://github.com/melbinjp/rigout
6
+ Project-URL: Repository, https://github.com/melbinjp/rigout
7
+ Author: The Rigout Authors
8
+ License: Apache-2.0
9
+ License-File: LICENSE
10
+ Keywords: ai-agents,automation,developer-tools,mcp,remote-control
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: cryptography>=3.4.8
23
+ Requires-Dist: mcp>=1.0.0
24
+ Requires-Dist: paramiko>=3.0.0
25
+ Requires-Dist: pyyaml>=6.0
26
+ Requires-Dist: requests>=2.28.0
27
+ Requires-Dist: starlette>=0.37.0
28
+ Requires-Dist: uvicorn>=0.29.0
29
+ Provides-Extra: dev
30
+ Requires-Dist: build>=1.2.0; extra == 'dev'
31
+ Requires-Dist: mypy>=1.10.0; extra == 'dev'
32
+ Requires-Dist: pre-commit>=3.7.0; extra == 'dev'
33
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
34
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
35
+ Requires-Dist: pytest-timeout>=2.3.1; extra == 'dev'
36
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
37
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
38
+ Requires-Dist: twine>=5.0.0; extra == 'dev'
39
+ Description-Content-Type: text/markdown
40
+
41
+ # Rigout
42
+
43
+ Let AI agents use your computer through MCP.
44
+
45
+ Rigout runs a Streamable HTTP MCP server on a device so an AI agent can control that device through MCP tools. Start Rigout on the machine, give the agent the generated MCP URL, and the agent can run commands, inspect the system, manage files, use Docker, and prepare development environments.
46
+
47
+ Use Rigout only on hardware, VMs, or containers you are willing to let an agent control.
48
+
49
+ ## Quick Start
50
+
51
+ Install from PyPI:
52
+
53
+ ```bash
54
+ pip install rigout
55
+ ```
56
+
57
+ Start a local MCP server:
58
+
59
+ ```bash
60
+ rigout
61
+ ```
62
+
63
+ This serves MCP at:
64
+
65
+ ```text
66
+ http://127.0.0.1:8765/mcp
67
+ ```
68
+
69
+ It also writes `ai_agent_connection.json`. Give the agent the `mcp.url` and, if present, `mcp.headers` values from that file.
70
+
71
+ For a cloud agent, expose the server with a Cloudflare quick tunnel:
72
+
73
+ ```bash
74
+ rigout --tunnel cloudflare
75
+ ```
76
+
77
+ Public/tunnel mode automatically generates a bearer token and writes it into the connection file.
78
+
79
+ ## Source Checkout
80
+
81
+ From a cloned repo:
82
+
83
+ ```bash
84
+ python -m pip install -e .
85
+ rigout --tunnel cloudflare
86
+ ```
87
+
88
+ The shell helpers are optional:
89
+
90
+ ```bash
91
+ ./rigout.sh --background
92
+ ./rigout.sh status
93
+ ./rigout.sh stop
94
+ ```
95
+
96
+ ```powershell
97
+ .\rigout.ps1 -Background
98
+ .\rigout.ps1 status
99
+ .\rigout.ps1 stop
100
+ ```
101
+
102
+ ## MCP Tools
103
+
104
+ Rigout exposes:
105
+
106
+ - `execute_command`: run shell commands with timeout, working directory, environment variables, and optional security bypass.
107
+ - `file_operations`: read, write, append, delete, copy, move, chmod, and chown files.
108
+ - `bulk_file_transfer`: upload, download, or sync content and paths.
109
+ - `system_monitoring`: inspect CPU, memory, disk, network, processes, and GPU where available.
110
+ - `docker_operations`: list, run, exec, stop, remove, build, pull, logs, and inspect containers.
111
+ - `environment_setup`: create Python, Node, Docker, or Conda workspaces.
112
+ - `manage_tunnels`: add, list, test, and fail over to SSH endpoints.
113
+ - `connect_hardware` and `get_hardware_info`: verify available hardware.
114
+ - `create_terminal_session`, `execute_in_terminal`, `list_terminal_sessions`, `close_terminal_session`: persistent SSH-backed terminal sessions.
115
+
116
+ If no SSH endpoint is configured, Rigout uses a local-device endpoint. That makes a fresh one-command server immediately useful on the machine running Rigout.
117
+
118
+ ## Security Model
119
+
120
+ Rigout is powerful by design. Treat the MCP URL and bearer token like remote shell credentials.
121
+
122
+ Default controls:
123
+
124
+ - Public/tunnel mode generates bearer auth unless `--no-auth` is passed.
125
+ - Localhost mode has no bearer auth unless `--auth-token` is passed.
126
+ - Command validation blocks common destructive patterns unless the caller explicitly uses `bypass_security`.
127
+ - Outputs are sanitized for common secret patterns before returning to the agent.
128
+ - Command activity and security events are written to `mcp-hardware-server.log`.
129
+ - Per-endpoint command rate limiting is enabled.
130
+
131
+ Do not expose Rigout publicly with `--no-auth` unless the network is private and trusted. For serious agent work, run Rigout inside an isolated VM or container.
132
+
133
+ ## Public URL Reliability
134
+
135
+ Cloudflare quick tunnels are useful for one-command setup and testing, but their public URLs are ephemeral. For long-running or production use, put Rigout behind a stable tunnel or gateway such as a named Cloudflare Tunnel, Tailscale, a reverse proxy, or a dedicated VM with explicit network controls.
136
+
137
+ ## Validation
138
+
139
+ Run the test suite:
140
+
141
+ ```bash
142
+ python -m pytest -q
143
+ ```
144
+
145
+ Run the readiness check:
146
+
147
+ ```bash
148
+ python production_validation.py
149
+ ```
150
+
151
+ Build the package:
152
+
153
+ ```bash
154
+ python -m build
155
+ ```
156
+
157
+ Check the package metadata:
158
+
159
+ ```bash
160
+ python -m twine check dist/rigout-*
161
+ ```
162
+
163
+ Development standards for future contributors and agents are in [DEVELOPMENT_STANDARDS.md](DEVELOPMENT_STANDARDS.md).
164
+
165
+ ## Project Layout
166
+
167
+ ```text
168
+ src/rigout/
169
+ server.py # MCP tool definitions and stdio transport
170
+ mcp_http_server.py # Streamable HTTP MCP server
171
+ mcp_url_launcher.py # one-command server/tunnel launcher
172
+ ssh_manager.py # SSH endpoints and local fallback execution
173
+ tools/ # command, file, Docker, environment, monitoring tools
174
+ tests/ # pytest unit and integration coverage
175
+ .github/workflows/ # CI and tagged release publishing
176
+ ```
rigout-0.1.0/README.md ADDED
@@ -0,0 +1,136 @@
1
+ # Rigout
2
+
3
+ Let AI agents use your computer through MCP.
4
+
5
+ Rigout runs a Streamable HTTP MCP server on a device so an AI agent can control that device through MCP tools. Start Rigout on the machine, give the agent the generated MCP URL, and the agent can run commands, inspect the system, manage files, use Docker, and prepare development environments.
6
+
7
+ Use Rigout only on hardware, VMs, or containers you are willing to let an agent control.
8
+
9
+ ## Quick Start
10
+
11
+ Install from PyPI:
12
+
13
+ ```bash
14
+ pip install rigout
15
+ ```
16
+
17
+ Start a local MCP server:
18
+
19
+ ```bash
20
+ rigout
21
+ ```
22
+
23
+ This serves MCP at:
24
+
25
+ ```text
26
+ http://127.0.0.1:8765/mcp
27
+ ```
28
+
29
+ It also writes `ai_agent_connection.json`. Give the agent the `mcp.url` and, if present, `mcp.headers` values from that file.
30
+
31
+ For a cloud agent, expose the server with a Cloudflare quick tunnel:
32
+
33
+ ```bash
34
+ rigout --tunnel cloudflare
35
+ ```
36
+
37
+ Public/tunnel mode automatically generates a bearer token and writes it into the connection file.
38
+
39
+ ## Source Checkout
40
+
41
+ From a cloned repo:
42
+
43
+ ```bash
44
+ python -m pip install -e .
45
+ rigout --tunnel cloudflare
46
+ ```
47
+
48
+ The shell helpers are optional:
49
+
50
+ ```bash
51
+ ./rigout.sh --background
52
+ ./rigout.sh status
53
+ ./rigout.sh stop
54
+ ```
55
+
56
+ ```powershell
57
+ .\rigout.ps1 -Background
58
+ .\rigout.ps1 status
59
+ .\rigout.ps1 stop
60
+ ```
61
+
62
+ ## MCP Tools
63
+
64
+ Rigout exposes:
65
+
66
+ - `execute_command`: run shell commands with timeout, working directory, environment variables, and optional security bypass.
67
+ - `file_operations`: read, write, append, delete, copy, move, chmod, and chown files.
68
+ - `bulk_file_transfer`: upload, download, or sync content and paths.
69
+ - `system_monitoring`: inspect CPU, memory, disk, network, processes, and GPU where available.
70
+ - `docker_operations`: list, run, exec, stop, remove, build, pull, logs, and inspect containers.
71
+ - `environment_setup`: create Python, Node, Docker, or Conda workspaces.
72
+ - `manage_tunnels`: add, list, test, and fail over to SSH endpoints.
73
+ - `connect_hardware` and `get_hardware_info`: verify available hardware.
74
+ - `create_terminal_session`, `execute_in_terminal`, `list_terminal_sessions`, `close_terminal_session`: persistent SSH-backed terminal sessions.
75
+
76
+ If no SSH endpoint is configured, Rigout uses a local-device endpoint. That makes a fresh one-command server immediately useful on the machine running Rigout.
77
+
78
+ ## Security Model
79
+
80
+ Rigout is powerful by design. Treat the MCP URL and bearer token like remote shell credentials.
81
+
82
+ Default controls:
83
+
84
+ - Public/tunnel mode generates bearer auth unless `--no-auth` is passed.
85
+ - Localhost mode has no bearer auth unless `--auth-token` is passed.
86
+ - Command validation blocks common destructive patterns unless the caller explicitly uses `bypass_security`.
87
+ - Outputs are sanitized for common secret patterns before returning to the agent.
88
+ - Command activity and security events are written to `mcp-hardware-server.log`.
89
+ - Per-endpoint command rate limiting is enabled.
90
+
91
+ Do not expose Rigout publicly with `--no-auth` unless the network is private and trusted. For serious agent work, run Rigout inside an isolated VM or container.
92
+
93
+ ## Public URL Reliability
94
+
95
+ Cloudflare quick tunnels are useful for one-command setup and testing, but their public URLs are ephemeral. For long-running or production use, put Rigout behind a stable tunnel or gateway such as a named Cloudflare Tunnel, Tailscale, a reverse proxy, or a dedicated VM with explicit network controls.
96
+
97
+ ## Validation
98
+
99
+ Run the test suite:
100
+
101
+ ```bash
102
+ python -m pytest -q
103
+ ```
104
+
105
+ Run the readiness check:
106
+
107
+ ```bash
108
+ python production_validation.py
109
+ ```
110
+
111
+ Build the package:
112
+
113
+ ```bash
114
+ python -m build
115
+ ```
116
+
117
+ Check the package metadata:
118
+
119
+ ```bash
120
+ python -m twine check dist/rigout-*
121
+ ```
122
+
123
+ Development standards for future contributors and agents are in [DEVELOPMENT_STANDARDS.md](DEVELOPMENT_STANDARDS.md).
124
+
125
+ ## Project Layout
126
+
127
+ ```text
128
+ src/rigout/
129
+ server.py # MCP tool definitions and stdio transport
130
+ mcp_http_server.py # Streamable HTTP MCP server
131
+ mcp_url_launcher.py # one-command server/tunnel launcher
132
+ ssh_manager.py # SSH endpoints and local fallback execution
133
+ tools/ # command, file, Docker, environment, monitoring tools
134
+ tests/ # pytest unit and integration coverage
135
+ .github/workflows/ # CI and tagged release publishing
136
+ ```
@@ -0,0 +1,111 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "rigout"
7
+ version = "0.1.0"
8
+ description = "Let AI agents use your computer through MCP."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = {text = "Apache-2.0"}
12
+ keywords = ["mcp", "ai-agents", "remote-control", "automation", "developer-tools"]
13
+ authors = [
14
+ {name = "The Rigout Authors"}
15
+ ]
16
+ classifiers = [
17
+ "Development Status :: 4 - Beta",
18
+ "Intended Audience :: Developers",
19
+ "License :: OSI Approved :: Apache Software License",
20
+ "Operating System :: OS Independent",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Topic :: Software Development :: Libraries :: Python Modules",
27
+ ]
28
+ dependencies = [
29
+ "mcp>=1.0.0",
30
+ "starlette>=0.37.0",
31
+ "uvicorn>=0.29.0",
32
+ "paramiko>=3.0.0",
33
+ "requests>=2.28.0",
34
+ "cryptography>=3.4.8",
35
+ "pyyaml>=6.0",
36
+ ]
37
+
38
+ [project.optional-dependencies]
39
+ dev = [
40
+ "build>=1.2.0",
41
+ "pytest>=7.0.0",
42
+ "pytest-asyncio>=0.21.0",
43
+ "pytest-timeout>=2.3.1",
44
+ "pytest-cov>=4.0.0",
45
+ "ruff>=0.4.0",
46
+ "mypy>=1.10.0",
47
+ "pre-commit>=3.7.0",
48
+ "twine>=5.0.0",
49
+ ]
50
+
51
+ [project.urls]
52
+ Homepage = "https://github.com/melbinjp/rigout"
53
+ Repository = "https://github.com/melbinjp/rigout"
54
+
55
+ [project.scripts]
56
+ rigout = "rigout.mcp_url_launcher:main"
57
+ rigout-stdio = "rigout.server:stdio_main"
58
+
59
+ [tool.hatch.build.targets.wheel]
60
+ packages = ["src/rigout"]
61
+
62
+ [tool.hatch.build.targets.sdist]
63
+ include = [
64
+ "/src/rigout",
65
+ "/README.md",
66
+ "/LICENSE",
67
+ "/pyproject.toml",
68
+ ]
69
+
70
+ [tool.pytest.ini_options]
71
+ testpaths = ["tests"]
72
+ python_files = ["test_*.py"]
73
+ python_classes = ["Test*"]
74
+ python_functions = ["test_*"]
75
+ markers = [
76
+ "unit: Unit tests (no external dependencies)",
77
+ "integration: Integration tests (require running services)",
78
+ "slow: Tests that take more than 10 seconds",
79
+ ]
80
+ asyncio_mode = "auto"
81
+ addopts = "--strict-markers -v --tb=short"
82
+
83
+ [tool.ruff]
84
+ line-length = 120
85
+ target-version = "py310"
86
+ exclude = ["production_validation.py"]
87
+
88
+ [tool.ruff.lint]
89
+ select = ["E", "F", "W", "I", "UP", "B", "SIM", "N"]
90
+ ignore = ["SIM117", "E501", "B904"]
91
+
92
+ [tool.ruff.format]
93
+ quote-style = "double"
94
+ indent-style = "space"
95
+
96
+ [tool.mypy]
97
+ python_version = "3.10"
98
+ warn_return_any = true
99
+ warn_unused_configs = true
100
+ files = ["src"]
101
+
102
+ [[tool.mypy.overrides]]
103
+ module = ["paramiko.*", "mcp.*"]
104
+ ignore_missing_imports = true
105
+
106
+ [[tool.mypy.overrides]]
107
+ module = [
108
+ "rigout.mcp_workspace_manager",
109
+ "rigout.config_manager"
110
+ ]
111
+ ignore_errors = true