mcp-server-ssh 1.0.0__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.
- mcp_server_ssh/__init__.py +6 -0
- mcp_server_ssh/__main__.py +38 -0
- mcp_server_ssh/server.py +1085 -0
- mcp_server_ssh-1.0.0.dist-info/METADATA +362 -0
- mcp_server_ssh-1.0.0.dist-info/RECORD +9 -0
- mcp_server_ssh-1.0.0.dist-info/WHEEL +5 -0
- mcp_server_ssh-1.0.0.dist-info/entry_points.txt +2 -0
- mcp_server_ssh-1.0.0.dist-info/licenses/LICENSE +21 -0
- mcp_server_ssh-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Entry point for SSH MCP Server
|
|
4
|
+
Usage: uvx mcp-server-ssh | python -m mcp_server_ssh
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import asyncio
|
|
8
|
+
import os
|
|
9
|
+
import sys
|
|
10
|
+
|
|
11
|
+
# Add the original server directory to path for ssh_activity_logger
|
|
12
|
+
_server_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
13
|
+
if os.path.exists(os.path.join(_server_dir, "ssh_activity_logger.py")):
|
|
14
|
+
sys.path.insert(0, _server_dir)
|
|
15
|
+
|
|
16
|
+
from .server import SSHMCPServer
|
|
17
|
+
from mcp.server.stdio import stdio_server
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
async def main():
|
|
21
|
+
"""Main entry point for the SSH MCP server"""
|
|
22
|
+
ssh_server = SSHMCPServer()
|
|
23
|
+
|
|
24
|
+
async with stdio_server() as (read_stream, write_stream):
|
|
25
|
+
await ssh_server.server.run(
|
|
26
|
+
read_stream,
|
|
27
|
+
write_stream,
|
|
28
|
+
ssh_server.server.create_initialization_options()
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def run():
|
|
33
|
+
"""Synchronous wrapper for the async main function"""
|
|
34
|
+
asyncio.run(main())
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == "__main__":
|
|
38
|
+
run()
|