Rovo Dev CLI で MCP サーバーに接続する

Rovo Dev CLI では、外部のデータ ソースやツールで機能を拡張することを目的として、Model Context Protocol (MCP) サーバーがサポートされています。
MCP とは
MCP は、AI 大規模言語モデルが外部データ、ツール、サービス (データベース、API、ファイル システム、その他の外部リソースなど) に接続できるようにする標準化されたフレームワークです。
MCP を使用して Rovo Dev を他のデータ ソースに接続することで、アトラシアン サイトの外部からの豊富で関連性の高いコンテキストをモデルに提供し、AI 生成コードの品質を向上させることができます。
アトラシアンがこれらの接続されたデータ ソースを使用できるように、必要なすべての同意と権利を取得していることを確認してください。これらの接続されたデータ ソースを使用する場合は、該当するすべての利用規約を遵守する必要があります。
MCP サーバーを管理する
インタラクティブ モード
インタラクティブ モードで MCP サーバーを管理するには、/mcp を使用します。
これにより、インタラクティブなインターフェイスが開き、MCP サーバーの表示、それらのステータスや利用可能なツールの確認、特定のサーバーの有効化/無効化の切り替えを行うことができます。
MCP 構成ファイル
Rovo Dev CLI では、~/.rovodev/mcp.json に MCP サーバー構成が保存されます。既定のエディタで編集するには、acli rovodev mcp を実行します。
構造
{
"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"
"enable_instructions": true
},
"sse-server": {
"url": "https://example.com/mcp/sse",
"transport": "sse"
}
}
}トランスポート
MCP supports three transport methods:
stdio: Communication via standard input/output (most common)
http: Communication via HTTP requests
sse: Communication via Server-Sent Events
特定の MCP サーバーを無効化する
メイン構成ファイル (~/.rovodev/config.yml) で特定の MCP サーバーを無効化します。
mcp:
# Path to MCP configuration file
mcpConfigPath: "~/.rovodev/mcp.json"
# List of globally disabled MCP server signatures
disabledMcpServers:
- "server-name-to-disable"MCP Server Instructions
The MCP protocol allows a server to return optional server-level instructions as part of its initialization response. These instructions are authored by the server to help agents understand how to use that server's tools correctly - for example, reading a required configuration resource before invoking tools, calling a setup tool once per session, or following a domain-specific workflow.
By default, Rovo Dev CLI does not surface a user-configured server's instructions into the agent's system prompt. Because these instructions are arbitrary text controlled by a third-party server, they are treated as untrusted and ignored unless you explicitly opt in.
To allow a specific server's instructions to be passed to the agent, set "enable_instructions": true on that server's entry in mcp.json:
{
"mcpServers": {
"my-trusted-server": {
"url": "https://example.com/mcp",
"transport": "http",
"enable_instructions": true
}
}
}
メモ:
enable_instructionsis configured per server, so you can trust one server's instructions while leaving others disabled.When the field is absent or set to
false, the server's instructions are not surfaced.Only enable this for MCP servers you trust, since the instructions become part of the agent's prompt and can influence its behavior.
Built-in, first-party Atlassian servers (such as Atlassian, Bitbucket, Compass, Rovo Dev, and Scout) are trusted and have their instructions enabled automatically - no configuration is required.
この内容はお役に立ちましたか?