Tool type: AI assistant (CLI and IDE plugin) Website: aws.amazon.com/q/developer Transport support: stdio, Streamable HTTP
| Interface | Current path | Legacy path (still supported) |
|---|---|---|
| IDE (global) | ~/.aws/amazonq/default.json |
~/.aws/amazonq/mcp.json |
| IDE (workspace) | .amazonq/default.json at project root |
.amazonq/mcp.json |
| CLI | ~/.aws/amazonq/cli-agents/ (directory) |
— |
Workspace settings take precedence over global settings.
Recommended when PiecesOS and Amazon Q are on the same machine.
Edit ~/.aws/amazonq/default.json:
{
"servers": {
"pieces": {
"type": "http",
"url": "http://localhost:39300/model_context_protocol/2025-03-26/mcp",
"timeout": 60
}
}
}Use this when Amazon Q is running on a different machine from PiecesOS. For setup, see: Connecting to PiecesOS from the Outside World via Ngrok.
{
"servers": {
"pieces": {
"type": "http",
"url": "https://YOUR_NGROK_URL.ngrok.app/model_context_protocol/2025-03-26/mcp",
"timeout": 60
}
}
}Configure a remote MCP server in the CLI using:
q mcp add --name pieces --type http --url http://localhost:39300/model_context_protocol/2025-03-26/mcpAmazon Q allows per-tool permission levels. You can configure these in the IDE settings UI after adding the server:
- Ask — prompts before each use
- Always allow — runs without prompting
- Deny — blocked entirely
Edit ~/.aws/amazonq/default.json, update the url, and restart Amazon Q or start a new session.
- Start Amazon Q (CLI or IDE)
- MCP servers load in the background; tools become available progressively
- Ask Q: "What Pieces tools are available?"
| Issue | Solution |
|---|---|
| Config directory doesn't exist | Create ~/.aws/amazonq/ manually |
| Legacy vs current config | Both default.json and mcp.json are supported; default.json takes precedence |
| MCP not loading | Ensure you have a recent version of Amazon Q Developer |
| OAuth prompt | Pieces doesn't require OAuth; use no-auth configuration |
- Pieces MCP and LTM Tools Reference — Complete reference for all 39 tools available to your agents
- Connecting to PiecesOS via Ngrok — Expose your local Pieces server for remote access
| ← Back to All Agent Setup Guides |