Skip to content

Add a setup guide for connecting a local AI agent - #28

Merged
jaak0b merged 1 commit into
masterfrom
agent-setup-guide
Nov 22, 2026
Merged

jaak0b merged 1 commit into
masterfrom
agent-setup-guide

Conversation

@jaak0b

@jaak0b jaak0b commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What

The Settings dialog gets a "Setup guide" button next to Close. It expands a box that explains how to connect a local AI agent to StoreForge:

  1. Install the WebMCP local relay once: the Claude Code command (Windows or macOS and Linux toggle) and the MCP server JSON entry for other agents, each with a Copy button, plus the Node.js 22 requirement.
  2. Turn on "Allow a local AI agent to connect" and keep exactly one StoreForge tab open.
  3. Ask the agent in plain words, with an example request.
  4. What the agent cannot do (downloads, print batches, traced and cutout bins).

Why

Turning the switch on did nothing for a visitor who did not know a relay is needed on their machine.

Notes for review

  • The relay package name and version live in one constant in agentTools/localRelay.ts; the Vite asset plugin and the setup text both read it, and a test fails if it drifts from the version pinned in package.json.
  • The command and JSON text come from a pure builder (agentTools/relaySetup.ts) with unit tests for both systems.
  • A failed clipboard write shows an error asking to copy manually. Copying was checked only in an embedded browser that blocks clipboard writes, where the error path appeared as intended.
  • npm run build and npm test green (1554 tests).

🤖 Generated with Claude Code

…log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jaak0b
jaak0b merged commit 6a6e793 into master Nov 22, 2026
1 check passed
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