🏕️
Amazon Q Developer CLIがMCPサポートしたとのことで触って見た
Amazon Q Developer CLIがMCPサポートしたとのことで触って見た
公式記事
本日、Amazon Q Developer は、Amazon Q Developer コマンドラインインターフェイス (CLI) でモデルコンテキストプロトコル (MCP) のサポートを発表しました。
Doc
既に触っている方が多数ですが、折角なのでスクショとって文字にしていきます。
q update
No updates available,
1.9.1 is the latest version.
まずは対応Verにあげました。
設定ファイル
Amazon Q 開発者 CLI は、次の 2 つのレベルの MCP 構成をサポートしています。
グローバル設定: ~/.aws/amazonq/mcp.json- すべてのワークスペースに適用されます
ワークスペース構成: .amazonq/mcp.json- 現在のワークスペースに固有
両方のファイルが存在する場合、それらの内容が結合されます。競合が発生した場合は、ワークスペースの設定が優先されます。
mkdir -p .amazonq && vim .amazonq/mcp.json
なんでも良いのでplaywrightMCPで試します
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}
確認
cat .amazonq/mcp.json
q chat
To learn more about MCP safety, see https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command-line-mcp-security.html
✓ playwright loaded in 9.48 s
✓ 1 of 1 mcp servers initialized
Welcome to
█████╗ ███╗ ███╗ █████╗ ███████╗ ██████╗ ███╗ ██╗ ██████╗
██╔══██╗████╗ ████║██╔══██╗╚══███╔╝██╔═══██╗████╗ ██║ ██╔═══██╗
███████║██╔████╔██║███████║ ███╔╝ ██║ ██║██╔██╗ ██║ ██║ ██║
██╔══██║██║╚██╔╝██║██╔══██║ ███╔╝ ██║ ██║██║╚██╗██║ ██║▄▄ ██║
██║ ██║██║ ╚═╝ ██║██║ ██║███████╗╚██████╔╝██║ ╚████║ ╚██████╔╝
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚══▀▀═╝
╭───────────────────────── Did you know? ─────────────────────────╮
│ │
│ You can use /editor to edit your prompt with a │
│ vim-like experience │
│ │
╰─────────────────────────────────────────────────────────────────╯
/help all commands • ctrl + j new lines • ctrl + k fuzzy search
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
>
MCPの安全性の詳細については、以下を参照してください。
とのこと
MCP Security
✓ playwright loaded in 9.48 s
✓ 1 of 1 mcp servers initialized
ちゃんと読み込まれていそう
> PlaywriteMCPを使ってAWS WhatsNewの一番上の記事のタイトルをとってきてください
I'll help you use Playwright to retrieve the title of the latest article from AWS What's New. Let me navigate to the AWS What's New page and extract that information for you.
🛠️ Using tool: browser_navigate from mcp server playwright
⋮
● Running browser_navigate with the param:
⋮ {
⋮ "arguments": {
⋮ "url": "https://aws.amazon.com/new/"
⋮ },
⋮ "name": "browser_navigate"
⋮ }
Allow this action? Use 't' to trust (always allow) this tool for the session. [y/n/t]:
> y
⋮
● Completed in 5.431s
🛠️ Using tool: browser_snapshot from mcp server playwright
⋮
● Running browser_snapshot with the param:
⋮ {
⋮ "arguments": {},
⋮ "name": "browser_snapshot"
⋮ }
Allow this action? Use 't' to trust (always allow) this tool for the session. [y/n/t]:
> y
⋮
● Completed in 0.106s
AWS What's Newページから最新記事のタイトルを取得しました。現在の一番上の記事のタイトルは:
「Amazon S3 Tables がカスタマーマネージドキーを使用した AWS KMS によるサーバー側の暗号化をサポート」
この記事は2025年4月17日に公開されたもので、AWS S3 Tablesの新機能に関する発表です。この機能により、ユーザーはAWS KMSを使用してカスタマーマネージドキーによるサーバー側の暗号化を実装できるようになりました。
ちゃんと動いてます
以上でした
有難うございました。
Discussion