### Install and Compile Project Source: https://github.com/klievan/jlink-mcp/blob/main/CLAUDE.md Installs project dependencies and compiles the TypeScript code into JavaScript. ```bash npm install npm run compile ``` -------------------------------- ### Build and Run jlink-mcp from Source Source: https://github.com/klievan/jlink-mcp/blob/main/README.md Clone the repository, install dependencies, compile the project, and run the standalone MCP server. Set the JLINK_DEVICE environment variable before execution. ```bash git clone https://github.com/Klievan/jlink-mcp.git cd jlink-mcp npm install npm run compile JLINK_DEVICE=nRF52840_XXAA node out/mcp/standalone.js ``` -------------------------------- ### Select Probe Backend Source: https://github.com/klievan/jlink-mcp/blob/main/README.md Configure the debug probe type and associated settings when starting the jlink-mcp standalone script. The default is J-Link. ```bash # J-Link (default) PROBE_TYPE=jlink JLINK_DEVICE=nRF52840_XXAA node out/mcp/standalone.js ``` ```bash # OpenOCD with ST-Link PROBE_TYPE=openocd \ OPENOCD_INTERFACE=interface/stlink.cfg \ OPENOCD_TARGET=target/stm32f4x.cfg \ node out/mcp/standalone.js ``` ```bash # Black Magic Probe PROBE_TYPE=blackmagic \ BMP_SERIAL_PORT=/dev/ttyACM0 \ node out/mcp/standalone.js ``` -------------------------------- ### Run Standalone MCP Server Source: https://github.com/klievan/jlink-mcp/blob/main/CLAUDE.md Starts the standalone MCP server, specifying the J-Link device. Environment variables can configure other J-Link parameters. ```bash JLINK_DEVICE=nRF5340_xxAA_APP node out/mcp/standalone.js ``` -------------------------------- ### Configure jlink-mcp in VSCode Settings Source: https://github.com/klievan/jlink-mcp/blob/main/README.md Install the jlink-mcp VSCode extension and configure the target device in your VSCode settings using the 'jlinkMcp.jlink.device' setting. ```plaintext jlinkMcp.jlink.device = "nRF52840_XXAA" ``` -------------------------------- ### Configure jlink-mcp for Claude Code Source: https://github.com/klievan/jlink-mcp/blob/main/README.md Create a .mcp.json file in your project root to configure jlink-mcp for Claude Code. Ensure the 'cwd' points to the jlink-mcp installation directory and set the JLINK_DEVICE environment variable. ```json { "mcpServers": { "jlink": { "command": "node", "args": ["out/mcp/standalone.js"], "cwd": "/path/to/jlink-mcp", "env": { "JLINK_DEVICE": "nRF52840_XXAA" } } } } ``` -------------------------------- ### Configure jlink-mcp for Claude Desktop Source: https://github.com/klievan/jlink-mcp/blob/main/README.md Add this JSON configuration to your Claude Desktop settings file to enable jlink-mcp as an MCP server. Specify the JLINK_DEVICE environment variable for your target hardware. ```json { "mcpServers": { "jlink": { "command": "node", "args": ["/path/to/jlink-mcp/out/mcp/standalone.js"], "env": { "JLINK_DEVICE": "nRF52840_XXAA" } } } } ``` -------------------------------- ### Manual MCP Server Configuration Source: https://github.com/klievan/jlink-mcp/blob/main/CLAUDE.md Manually configures MCP servers, including the J-Link server, for use with clients like Claude Desktop. Specifies command, arguments, working directory, and environment variables. ```json { "mcpServers": { "jlink": { "command": "node", "args": ["out/mcp/standalone.js"], "cwd": "/path/to/mcpserver", "env": { "JLINK_DEVICE": "nRF5340_xxAA_APP" } } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.