LAN Media Server — 技能工具
v1.0.0[自动翻译] Share images, screenshots, and files from the AI workspace to users on the local network via HTTP. Use when the agent needs to show images, browser sc...
详细分析 ▾
运行时依赖
版本
lan-media-server 1.0.0 - Initial release of a lightweight HTTP server to share agent-generated images, screenshots, and files over local network. - Includes setup script for installation and automatic systemd user service management. - Default configuration serves files from `$HOME/projects/shared-media` on port `18801`; customizable via environment variables. - Simple usage instructions: drop files in the shared directory, send a network-accessible link to users. - Focus on ease-of-use for channels that can’t display media inline, with built-in security features (LAN-only, path traversal prevention, no directory listing).
安装命令 点击复制
技能文档
Lightweight HTTP file server for sharing agent-generated media (screenshots, images, documents) with users on the local network.
Why
Many AI assistant channels (webchat, CLI, SSH) can't display inline images. This skill solves that by serving files over HTTP on your LAN — drop a file, send a link.
Quick Start
bash scripts/setup.sh
This creates the shared directory, installs the server script, creates a systemd user service, and starts it.
Default config:
- Port:
18801 - Serve directory:
$HOME/projects/shared-media - Accessible at:
http://:18801/
Override with environment variables:
MEDIA_PORT=9090 MEDIA_ROOT=/tmp/media bash scripts/setup.sh
Usage Pattern
When you need to show an image or file to the user:
- Save/copy the file to the shared media directory
- Send the user a link:
http://: /
Example for browser screenshots:
cp /path/to/screenshot.jpg ~/projects/shared-media/my-screenshot.jpg
# Then send: http://192.168.1.91:18801/my-screenshot.jpg
Use descriptive filenames — the directory is flat and user-visible.
Management
# Check status
systemctl --user status media-server# Restart
systemctl --user restart media-server
# View logs
journalctl --user -u media-server -f
# Stop and disable
systemctl --user stop media-server
systemctl --user disable media-server
Security Notes
- Serves files only on LAN (0.0.0.0 but typically behind NAT)
- No authentication — don't put sensitive files in the shared directory
- Path traversal is blocked (files must be under MEDIA_ROOT)
- No directory listing — must know the exact filename
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制