### Setup and development commands Source: https://github.com/heypcb/heypcb-mcp/blob/main/CONTRIBUTING.md Run these commands after cloning the repository. Requires Node.js 18 or newer and pnpm 9 (corepack enable provides the version named in package.json). The test command runs node --test against a fake HeyPCB host, and test:smoke runs the built file over stdio. ```sh pnpm install --ignore-workspace --frozen-lockfile ``` ```sh pnpm run typecheck ``` ```sh pnpm run test # node --test against a fake HeyPCB host ``` ```sh pnpm run build # dist/cli.js, one bundled file ``` ```sh pnpm run test:smoke # the built file over stdio ``` -------------------------------- ### Sign in to local HeyPCB MCP server with a code Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Starts the local MCP server and opens heypcb.ai/connect to display a sign-in code. The sign-in is stored in ~/.config/heypcb/credentials.json (or %APPDATA%\heypcb\credentials.json on Windows) and is picked up on the next server call without restart. ```sh npx @heypcb/mcp login ``` -------------------------------- ### Get full path to npx with which npx Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Run this command to find the full path to npx. Use that path in the `command` field of your agent configuration when Claude Desktop cannot find npx because it starts servers with a short PATH. ```bash which npx ``` -------------------------------- ### Add remote HeyPCB MCP server to Claude Code Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Adds the hosted HeyPCB MCP server (Streamable HTTP with OAuth) to Claude Code. No installation is required; the server runs at https://api.heypcb.ai/mcp. ```sh claude mcp add --transport http heypcb https://api.heypcb.ai/mcp ``` -------------------------------- ### Configure HeyPCB MCP server in Claude Desktop Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Adds the local HeyPCB MCP server to Claude Desktop by editing claude_desktop_config.json (Settings → Developer → Edit Config). Includes the HEYPCB_API_KEY environment variable for personal-key authentication. ```json { "mcpServers": { "heypcb": { "command": "npx", "args": ["-y", "@heypcb/mcp"], "env": { "HEYPCB_API_KEY": "hpcb_pk_…" } } } } ``` -------------------------------- ### Configure HeyPCB MCP server in Cursor Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Adds the local HeyPCB MCP server to Cursor by editing .cursor/mcp.json in the project or ~/.cursor/mcp.json. Uses the npx command with the -y and @heypcb/mcp arguments. ```json { "mcpServers": { "heypcb": { "command": "npx", "args": ["-y", "@heypcb/mcp"] } } } ``` -------------------------------- ### Configure HeyPCB MCP server in Codex Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Adds the local HeyPCB MCP server to Codex by editing ~/.codex/config.toml. The commented env line shows how to set HEYPCB_API_KEY for personal-key authentication. ```toml [mcp_servers.heypcb] command = "npx" args = ["-y", "@heypcb/mcp"] # env = { HEYPCB_API_KEY = "hpcb_pk_…" } ``` -------------------------------- ### HeyPCB MCP CLI Commands Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Commands to run the MCP server on stdio, sign in, sign out, and check status. The --max-spend flag blocks potentially charged calls until server-side caps are supported; --no-browser prints the login link only. ```text npx -y @heypcb/mcp run the MCP server on stdio (what your agent runs) --max-spend block potentially charged calls until server-side caps are supported npx @heypcb/mcp login sign in with a code (--no-browser prints the link only) npx @heypcb/mcp logout sign out here and end that sign-in on HeyPCB npx @heypcb/mcp status who this computer is signed in as ``` -------------------------------- ### Check login status with npx @heypcb/mcp status Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Use this command to verify whether you are signed in, especially after running the login command or setting HEYPCB_API_KEY. ```bash npx @heypcb/mcp status ``` -------------------------------- ### Add local HeyPCB MCP server to Claude Code Source: https://github.com/heypcb/heypcb-mcp/blob/main/README.md Registers the local stdio MCP server with Claude Code. The commented line shows how to use a personal key (HEYPCB_API_KEY) instead of the stored sign-in. ```sh claude mcp add heypcb -- npx -y @heypcb/mcp # or with a personal key instead of `login`: claude mcp add heypcb -e HEYPCB_API_KEY=hpcb_pk_… -- npx -y @heypcb/mcp ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.