Get Started
Integrating the Pieces MCP with Amazon Q Developer brings your workflow context directly into AWS's AI assistant, available both as a CLI and an IDE plugin. You can ask Q about past implementations, similar code, and historical debugging context.
Prerequisites
There are two prerequisites for integrating Pieces with Amazon Q as an MCP—an active instance of PiecesOS and the fully-enabled Long-Term Memory engine.
Installing PiecesOS & Configuring Permissions
Follow the instructions below for a detailed guide on setting up and configuring PiecesOS to correctly pass captured workflow context to the Pieces MCP server.
Setting Up Amazon Q Developer
Amazon Q supports both IDE plugin and CLI configurations. The IDE uses ~/.aws/amazonq/default.json (or the legacy mcp.json). Workspace settings take precedence over global settings.
IDE Plugin Setup (Local)
Edit ~/.aws/amazonq/default.json:
{
"servers": {
"pieces": {
"type": "http",
"url": "http://localhost:39300/model_context_protocol/2025-03-26/mcp",
"timeout": 60
}
}
}
CLI Setup
Configure the MCP server in the CLI:
q mcp add --name pieces --type http --url http://localhost:39300/model_context_protocol/2025-03-26/mcp
Tool Permissions
Amazon 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
Using Pieces MCP Server in Amazon Q
Once integrated, you can utilize Pieces LTM directly in Amazon Q.
Updating
Edit ~/.aws/amazonq/default.json, update the url, and restart Amazon Q or start a new session.
Troubleshooting
If you're experiencing issues integrating Pieces MCP with Amazon Q Developer:
Verify PiecesOS Status: Ensure PiecesOS is actively running on your system.
Config Directory Doesn't Exist: Create
~/.aws/amazonq/manually.Legacy vs Current Config: Both
default.jsonandmcp.jsonare supported;default.jsontakes precedence.MCP Not Loading: Ensure you have a recent version of Amazon Q Developer.
OAuth Prompt: Pieces does not require OAuth. Use no-auth configuration.
You're now set to enhance your Amazon Q Developer workflow with powerful context retrieval through Pieces MCP. Happy coding!