From network-cups
Use when the user installs the plugin and needs to configure it for the first time.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin network-cupsThis skill uses the workspace's default tool permissions.
Configure the network-cups plugin for first-time use. Check system dependencies, elicit the CUPS server hostname, and write config to the plugin data directory.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Configure the network-cups plugin for first-time use. Check system dependencies, elicit the CUPS server hostname, and write config to the plugin data directory.
cups.lan)Check dependencies. Run:
for cmd in avahi-browse arp-scan ufw nc node npm; do command -v $cmd >/dev/null 2>&1 || echo "missing: $cmd"; done
Offer to install missing ones:
sudo apt-get install avahi-utils arp-scan ufw cups-client nodejs npm
Verify Node.js ≥18:
node --version
If below 18, direct user to upgrade or use nvm.
Elicit CUPS server hostname/IP. Ask the user for the CUPS host (e.g. "cups.lan" or "192.168.1.100"). Confirm reachability:
nc -zv <MCP_CUPS_SERVER> 631
If timeout, stop and suggest checking the hostname/network or CUPS service on the server.
Elicit optional settings. Ask for default printer name and max copies limit; accept empty responses.
Write config.json. Create or overwrite:
${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/network-cups/config.json
with:
{
"cups_server": "<hostname-or-ip>",
"cups_port": 631,
"default_printer": "<name-or-empty>",
"max_copies": <number-or-null>
}
Set environment variables. Show the user this snippet and instruct them to add it to their shell rc (.bashrc, .zshrc, etc.):
export MCP_CUPS_SERVER="<hostname>"
export MCP_CUPS_PORT=631
export MCP_CUPS_DEFAULT_PRINTER="<printer-name>"
export MCP_CUPS_MAX_COPIES=10
Explain: "The MCP server (lan-mcp-cups) reads these env vars at startup. Without them in your shell, the plugin will not connect to CUPS."
Optional smoke test. Ask if the user wants to run list-printers to verify the connection. If yes, call list-printers skill.
${CLAUDE_USER_DATA}/network-cups/config.json created with user-supplied CUPS server, port, and optional defaults.nc may not report timeouts clearly on all systems; if in doubt, ask the user to ping the server manually.