feat(mcp-deploy): add public /mcp reverse-proxy route in Caddyfile, hyperstition-mcp.service systemd unit, and live GET/POST /mcp smoke tests (v2.0.10)

This commit is contained in:
Hermes Agent committed 2026-11-30 03:48:10 +00:00
1 parent c17f74097b
commit 0195496933
3 files changed
+55 -4

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# /etc/systemd/system/hyperstition-mcp.service
[Unit]
Description=Stateless Read-Only Model Context Protocol (MCP) HTTP Server for hyperstitionstud.io (127.0.0.1:8095)
After=network.target local-fs.target hyperstition-tmpfs-sync.service
Before=caddy.service
[Service]
Type=simple
WorkingDirectory=/srv/hyperstitionstud.io/repos
Environment="HYPERSTITIONSTUDIO_CONFIG=/srv/hyperstitionstud.io/repos/workspace.toml"
Environment="PYTHONPATH=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src"
ExecStart=/srv/hyperstitionstud.io/repos/.venv/bin/python3 /srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/server.py --transport http --host 127.0.0.1 --port 8095
Restart=always
RestartSec=2
NoNewPrivileges=true
ProtectSystem=strict
ReadOnlyPaths=/srv/hyperstitionstud.io/repos
[Install]
WantedBy=multi-user.target