Connect to an MCP server in Rovo Dev CLI
Rovo Dev CLI supports Model Context Protocol (MCP) servers to extend its capabilities with external data sources and tools.
What is MCP?
MCP is a standardized framework that lets AI large language models connect to external data, tools, and services like databases, APIs, file systems, and other external resources.
By using MCP to connect Rovo Dev to other data sources, you can enhance the quality of AI-generated code by providing the model with rich, relevant context from outside your Atlassian site.
Make sure you have all the necessary consents and rights to enable Atlassian to use these connected data sources. You are responsible for complying with all applicable terms and policies governing the use of these connected data sources.
More about how Rovo Dev CLI uses MCP
More about MCP and potential security risks
Manage MCP servers
Interactive mode
Use /mcp
in interactive mode to manage MCP servers.
This opens an interactive interface where you can view your MCP servers, see their status and available tools, and enable or disable specific servers.
MCP configuration file
Rovo Dev CLI stores MCP server configurations in ~/.rovodev/mcp.json
. Run acli rovodev mcp
to edit in your default editor.
Structure
{
"mcpServers": {
"server-name": {
"command": "command-to-run",
"args": ["arg1", "arg2"],
"env": {
"ENV_VAR": "value"
},
"transport": "stdio"
},
"http-server": {
"url": "https://example.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
},
"transport": "http"
},
"sse-server": {
"url": "https://example.com/mcp/sse",
"transport": "sse"
}
}
}
Transports
MCP supports three transport methods:
stdio: Communication via standard input/output (most common)
http: Communication via HTTP requests
sse: Communication via Server-Sent Events
Disable specific MCP servers
Disable specific MCP servers in your main configuration file (~/.rovodev/config.yml
):
mcp:
# Path to MCP configuration file
mcpConfigPath: "~/.rovodev/mcp.json"
# List of globally disabled MCP server signatures
disabledMcpServers:
- "server-name-to-disable"
Was this helpful?