SSH access to TrueNAS covers all Docker management needs (docker compose, logs, restarts) making a dedicated Docker MCP redundant. - Add ssh-mcp (port 8600): execute shell commands, read files, list dirs, tail logs, find files, check disk usage on the TrueNAS host via asyncssh - Remove docker-mcp (port 9000): redundant given SSH access to the host - Update docker-compose.yml: wire in ssh-mcp service, remove docker-mcp service and its MCP_BACKEND_DOCKER gateway env var
12 lines
360 B
Python
Executable file
12 lines
360 B
Python
Executable file
import os
|
|
from ssh_mcp import mcp
|
|
from mcp.server.fastmcp.server import TransportSecuritySettings
|
|
|
|
mcp.settings.host = "0.0.0.0"
|
|
mcp.settings.port = int(os.environ.get("PORT", "8600"))
|
|
mcp.settings.transport_security = TransportSecuritySettings(
|
|
enable_dns_rebinding_protection=False,
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
mcp.run(transport="streamable-http")
|