Va preview

From jazzenchen/VibeAround · View interactive version

Va preview is an AI agent skill from the GitHub repository jazzenchen/VibeAround. Start a VibeAround Preview for either a running local web server or a Markdown file. Use after starting a dev server, after creating or updating Markdown, or when the user asks to preview a browsable artifact. Only available when the VibeAround MCP server is connected.

How to use this skill

Skill file

VibeAround Preview

Preview exactly one local source through VibeAround: a running web server or a Markdown file.

Workflow

1. Prepare one source

VibeAround never restores a Preview after restart; call va_mcp_preview again when needed. Registered Server ports are cleaned at shutdown and again at the next startup if shutdown was interrupted.

2. Add optional conversation identity

Pass $VIBEAROUND_THREAD_ID when present. If an exact current session ID is readily available, pass it with the current agent ID. Both are optional; do not delay or block Preview when either is unavailable.

These fields only let Preview chat inherit the current task as context. They never control Preview or server lifetime.

3. Call `va_mcp_preview`

Pass exactly one of port or file, plus cwd.

For a server:

Tool: va_mcp_preview
Server: vibearound
Arguments:
  port: <local server port>
  cwd: "<current working directory>"
  thread_id: "<value of $VIBEAROUND_THREAD_ID if present>"
  agent_kind: "<current VibeAround agent ID>"  (pass with session_id)
  session_id: "<exact current session ID if available>"
  title: "<short title>"  (optional)

For Markdown:

Tool: va_mcp_preview
Server: vibearound
Arguments:
  file: "<absolute path, or path relative to cwd>"
  cwd: "<current working directory>"
  thread_id: "<value of $VIBEAROUND_THREAD_ID if present>"
  agent_kind: "<current VibeAround agent ID>"  (pass with session_id)
  session_id: "<exact current session ID if available>"
  title: "<document title>"  (optional)

If the workspace is not registered, call va_mcp_register_workspace with cwd, then retry.

4. Relay returned links

Present every owner and Share URL returned by the tool. Include the six-digit access code and exact remaining lifetime with a Share. The Share URL and code expire together and the code can be reused by multiple viewers until expiry. Do not construct URLs yourself.

Server consent and transport

Do not add an agent-side risk preflight. Before a Server iframe is created, the Preview page itself asks the user once per Preview and browser session to acknowledge that the local server may contain unknown code.

Remote owner traffic is forwarded only to 127.0.0.1:<registered-port>, including ordinary HTTP methods, request bodies, and WebSocket/HMR traffic. The public Share remains a narrower read-only view.

Optional server review bridge

Only when the user asks to review or comment on a server preview, add the exact dev-only <script> tag returned by the tool. Do not add it proactively or ship it in a production build.

Errors

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.