Configuring Model Context Protocol (MCP) Servers
Administrators can connect Augment Code Review to external context sources through Model Context Protocol (MCP). MCP servers provide additional context to the code review agent, such as access to documentation, APIs, databases, or other external systems that can help improve review quality. To configure MCP servers, visit MCP for Code Review.Types of MCP Servers
Augment Code Review supports both remote and local MCP servers:- Remote MCP servers run remotely and are hosted by providers. Once you add a remote MCP server, you may need to complete an OAuth flow to authenticate before it can be used by the code review agent.
- Local MCP servers run in their own environment within the code review agent’s workspace. You can specify environment variables for local servers when adding them. Environment variables are write-only and can only be overwritten or removed (not viewed) after the server has been added.
Adding MCP Servers
There are three ways to add MCP servers to Code Review:1. Add Local MCP Server (+ MCP)
To add a local MCP server:- Navigate to MCP for Code Review
- Click + MCP to add a local server
- Enter the following information:
- Name: A descriptive name for your MCP server
- Command: The executable command to run the server
- Arguments: Command-line arguments (optional)
- Add environment variables if needed:
- Click + Environment Variable
- Enter the variable name and value
- Repeat for additional variables
- Click Add Server to save
Environment variables for local MCP servers are stored securely and cannot be viewed after saving. You can only overwrite or remove them.
2. Add Remote MCP Server (+ Remote MCP)
To add a remote MCP server:- Navigate to MCP for Code Review
- Click + Remote MCP to add a remote server
- Enter the following information:
- Name: A descriptive name for your MCP server
- URL: The full URL of the remote MCP server (e.g.,
https://mcp.example.com)
- Click Add Server
- If the server requires OAuth authentication, you’ll be redirected to complete the authentication flow
- After successful authentication, you’ll be redirected back to the settings page
- Connected (green): Server is authenticated and ready to use
- Authenticate (yellow): Server needs authentication or re-authentication
3. Import from JSON
To import MCP server configurations from a JSON file:- Navigate to MCP for Code Review
- Click Import from JSON
- Paste your JSON configuration in the format:
- Click Import to add the servers
The JSON format matches the structure used in Augment’s settings.json file, making it easy to share configurations across your team.
Managing MCP Servers
Once added, MCP servers appear in the “Configured MCP Servers” list. For each server, you can:- View status: See if the server is connected or needs authentication
- Re-authenticate: Click the Authenticate button for remote servers that need re-authentication
- Remove: Click the trash icon to remove a server from Code Review