Use RVBuilder with AI Agents
RVBuilder provides Model Context Protocol (MCP) servers that enable AI agents to streamline Andes RISC-V project setup, improve configuration accuracy, automate development workflows, and assist in resolving development issues.
These MCP servers expose a set of resource primitives, as shown below, that supply domain-specific reference knowledge for AI-assisted RVBuilder workflows. When handling requests or queries related to compiler options, linker scripts, debugger commands, or general RVBuilder project configuration, these resources provide the necessary context to generate accurate and relevant responses.
| Resource | Domain Knowledge / Reference |
|---|---|
rvbuilder-json |
Target and connection settings |
rvbuilder-examples |
Practical workflow examples |
gcc-riscv |
GCC/G++ compiler options for RISC-V and Andes extensions |
clang-riscv |
LLVM Clang compiler options for RISC-V |
gnu-ld-riscv |
GNU Linker (ld) options, linker scripts, relaxation |
binutils-riscv |
GNU Binutils (as, ar, objdump, objcopy, readelf, nm, size) |
gdb-riscv |
GDB debugger commands |
openocd-riscv |
OpenOCD/ICEman debug server setup and JTAG configuration |
The level of control available to AI agents depends on how the MCP servers are integrated. As shown below, AI agents such as GitHub Copilot, which directly interact with the MCP server integrated in RVBuilder, provides a higher level of automation across development workflow. In contrast, AI agents that communicate with the MCP server via standard input/output (STDIO), such as Codex or Claude Code, offer comparatively limited automation and primarily assist with project configuration and development queries.
| AI Agent | MCP Integration Mode | Capabilities for RVBuilder Projects | Requires VS Code |
|---|---|---|---|
| GitHub Copilot Chat | Integrated (in RVBuilder extension) | Assistance with project creation/import, configuration, building, debugging, and development queries | Yes |
| Codex Desktop/CLI | Standalone (STDIO via MCP server) | Assistance with project configuration and development queries | No |
| Claude Code Desktop/CLI | Standalone (STDIO via MCP server) | Assistance with project configuration and development queries | No |
This section outlines the requirements, installation, configuration, and usage of GitHub Copilot, Codex Desktop/CLI, and Claude Code Desktop/CLI for RVBuilder project development. Note that while RVBuilder workflows support both Linux and Windows environments, the instructions for Codex/Claude Code-assisted workflows below primarily use a Windows environment with PowerShell and AI CLI as examples.
GitHub Copilot Chat
Requirements
- Visual Studio Code (version 1.116 or later) with the RVBuilder extension installed. For installation instructions of the RVBuilder extension, see Install RVBuilder.
- GitHub Copilot Chat extension (version 0.41 or later)
- A GitHub account with an active Copilot subscription or a Copilot Free plan.
Installation and Setup
- In VS Code, click
in the Activity Bar. - Search for the GitHub Copilot Chat extension and install it. Restart VS Code after the installation.

- Open the Chat view (pressing Ctrl+Alt+I or clicking the Toggle Chat icon
near the search bar). Follow the prompts to sign in with your GitHub account and authorize VS Code in the browser.
RVBuilder Development with GitHub Copilot Chat
- Open the Chat view in the VS Code with the RVBuilder extension installed.
-
Call
@rvbuilderfollowed by your request or question for RVbuilder project development. GitHub Copilot supports automation for project creation/import, configuration, building, and debugging. For example,-
Request to import a project
@rvbuilder Import a demo from the RVbuilder package to the workspace -
Query about project configuration
@rvbuilder Read the build settings of the project -
Request to modify project settings
@rvbuilder Configure the project to improve performance -
Request to build and debug the project
@rvbuilder Start debugging and show CPU register values after the program suspends
-
Codex
Requirements
- Codex Desktop (version 26.421.11020 or later) or Codex CLI (version 0.122.0 or later)
Node.js(version 18 or later)- Existing RVBuilder project(s)
Installation and Setup
-
Download the RVBuilder MCP package
rvbuilder-mcp.zipfrom the RVBuilder MCP release page and extract it to a desired directory (e.g.D:/rvbuilder-mcp). The package contains the following components required for Codex to serve as an RVBuilder AI assistant: -
Install
Node.jsfrom the official Node.js Download page. Ensure that the installed version is 18 or later, and verify that bothNode.jsandnpmare successfully installed and accessible:node -v
npm -v -
Install the Codex CLI using:
npm install -g @openai/codex -
Set up the RVBuilder system prompt for Codex.
-
If a global
AGENTS.mddoes not exist in$HOME/.codex/, copyAGENTS.mdfrom the extracted RVBuilder MCP package to the user Codex directory. -
If a global
AGENTS.mdalready exists in$HOME/.codex/, append the RVBuilder system prompt to the existing file.
-
-
Edit the user configuration file
$HOME/.codex/config.tomland add a section as follows to configure Codex to use the standalone MCP server from the extracted RVBuilderMCP package:Restart the Codex CLI after the configuration.
RVBuilder Development with Codex CLI
-
Change the working directory to the desired RVBuilder project (e.g., D:/my-project).
-
Run
codexfollowed by your request or question. Codex primarily supports project configuration tasks and provides guidance for development queries. For example,
-codexList the current compiler and linker options for the project.
-codexChange the compiler from GCC to Clang.
Claude Code
Requirements
- Claude Code Desktop (version 1.3883.0 or later) or Claude Code CLI (version 2.1.112 or later)
Node.js(version 18 or later)- Existing RVBuilder project(s)
Installation and Setup
-
Download the RVBuilder MCP package
rvbuilder-mcp.zipfrom the RVBuilder MCP release page and extract it to a desired directory (e.g.,D:/rvbuilder-mcp). The package contains the following components required for Claude Code to serve as an RVBuilder AI assistant:
-
Install
Node.jsfrom the official Node.js Download page. Ensure that the installed version is 18 or later, and verify that bothNode.jsandnpmare successfully installed and accessible:node -v
npm -v -
Install the Claude Code globally.
npm install -g @anthropic-ai/claude-code -
Set up the RVBuilder system prompt for Claude Code.
- If a global
CLAUDE.mddoes not exist, copyCLAUDE.mdfrom the extracted RVBuilder MCP package to the user Claude directory.
- If a global
CLAUDE.mdexists in$HOME/.claude/, append the RVBuilder system prompt to the existing file.
- If a global
RVBuilder Development with Claude Code CLI
-
Change the working directory to the desired RVBuilder project (e.g., D:/my-project).
-
Register the standalone MCP server in the extracted RVBuilder MCP package for the project.
- Run
claudefollowed by your request or question. Claude Code primarily supports project configuration tasks and provides guidance for development queries. For example,
-claudeChange the project target to ADP-AE350-A45 and update build settings
-claudeEnable DSP for my project
-claudeWhat are the issues that might cause build failures?