Get Started
Integrating the Pieces MCP with Cline brings your workflow context directly into VS Code. Cline is an AI coding agent extension that maintains its own MCP configuration—it does not read from .vscode/mcp.json.
Prerequisites
There are two prerequisites for integrating Pieces with Cline 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 Cline
Cline stores its MCP configuration in a separate file: ~/.cline/data/settings/cline_mcp_settings.json.
Setup via Extension UI
Manual JSON Config
Edit ~/.cline/data/settings/cline_mcp_settings.json:
{
"mcpServers": {
"pieces": {
"url": "http://localhost:39300/model_context_protocol/2024-11-05/sse",
"type": "sse",
"disabled": false,
"autoApprove": []
}
}
}
Auto-Approve Specific Tools
To skip confirmation prompts for specific Pieces tools:
{
"mcpServers": {
"pieces": {
"url": "http://localhost:39300/model_context_protocol/2024-11-05/sse",
"type": "sse",
"autoApprove": ["ask_pieces_ltm", "workstream_summaries_full_text_search"]
}
}
}
Using Pieces MCP Server in Cline
Once integrated, you can utilize Pieces LTM directly in Cline.
Updating
Edit the config JSON and save. Cline reloads the server list from disk without requiring a VS Code restart.
Troubleshooting
If you're experiencing issues integrating Pieces MCP with Cline:
Verify PiecesOS Status: Ensure PiecesOS is actively running on your system.
Cline Uses Its Own Config: Cline reads from
~/.cline/data/settings/cline_mcp_settings.json, not.vscode/mcp.json.Use SSE, Not Streamable HTTP: Cline has compatibility issues with Streamable HTTP—use the SSE endpoint (
/model_context_protocol/2024-11-05/sse).Use Agent Mode: Ensure Cline is in agent mode, not regular chat mode.
Server Disconnected: Restart VS Code if the server shows as disconnected.
You're now set to enhance your Cline workflow with powerful context retrieval through Pieces MCP. Happy coding!