Skip to content

Publish a dev-server port range and add a dev-server skill - #57

Closed
devbdavis wants to merge 1 commit into
mainfrom
workshop/dev-servers-7c6781
Closed

devbdavis wants to merge 1 commit into
mainfrom
workshop/dev-servers-7c6781

Conversation

@devbdavis

Copy link
Copy Markdown
Owner

Summary

In Docker, Workshop publishes only port 3002, so a dev server an agent starts inside the container can't be reached from a browser. This PR adds a fixed range of dev ports and an installable skill that tells agents how to use them.

  • docker-compose.yml and docs/unraid/workshop.xml publish 4100-4119 (host port = container port) and pass WORKSHOP_DEV_PORTS and WORKSHOP_DEV_HOST into the container. DEV_HOST / Dev server host sets the hostname that appears in reported URLs.
  • templates/skills/dev-server/SKILL.md: an agent picks a free port in the range, binds 0.0.0.0, and runs the server in a detached dev-<name> tmux session that keeps running after the agent ends. Output goes to a log in /tmp. The agent then reports the URL. The skill also lists and stops dev-* sessions. On a native install neither variable is set and any local port works.
  • docs/docker.md gets a "Dev servers" section. For remote access it recommends the Tailscale plugin on unraid instead of port-forwarding, because the dev ports have no Workshop auth in front of them.

Risk: the 20 host ports must be free on the unraid host. Dev servers stop when the container restarts, or when the worktree they serve from is removed.

Test plan

  • npx vitest run: 92 files and 870 tests pass
  • The unraid XML parses. The compose ports/env and the skill frontmatter parse with js-yaml.
  • Ran the /dev/tcp free-port probe in the container: 3002 reports taken, 4100 reports free
  • Not run: docker compose up with the new mapping, and an end-to-end Vite server reached from a LAN browser

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@devbdavis

Copy link
Copy Markdown
Owner Author

Superseded by #58: dev servers are now served per session through Workshop's own port behind a wildcard hostname with per-host auth, so publishing an unauthenticated port range is no longer needed.

@devbdavis devbdavis closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant