Feature Request: Integrate mozilla-ai/cq as native agent knowledge layer
Category: Agent / AI
Repo: mozilla-ai/cq
The Problem
Every time Cursor’s agent resolves an error or architectural decision, that knowledge vanishes at session end. The next session — or a teammate — starts from zero and makes the same mistake again. There’s no institutional memory across agent sessions or across team members.
What cq Does
cq (mozilla-ai/cq) is an open standard for shared agent learning. It lets AI agents persist, share, and query collective knowledge via an MCP server, backed by local SQLite with optional self-hosted team sync. Agents query before acting and record learnings after resolving problems.
It already works as a Claude Code plugin and an OpenCode MCP server. The MCP protocol is fully implemented — Cursor just needs to connect to it.
Requested Integration
- MCP server support in agent mode — allow registering
cq-mcp-servervia.cursor/mcp.json - Post-error hook — after resolving an error, auto-trigger
cq storewith context + fix - Pre-task knowledge query — inject relevant cq results into agent context before new tasks (opt-in)
- Team sync support — pass
CQ_TEAM_ADDR+CQ_TEAM_API_KEYenv vars through to the MCP server .cursor/rulesintegration — surface top cq learnings as dynamic additions to project rules
Why This Is Straightforward
cq already implements the full MCP protocol. The server runs locally via uv. No cloud dependency, no vendor lock-in. Minimal config:
// .cursor/mcp.json (proposed)
{
"cq": {
"type": "local",
"command": ["uv", "run", "--directory", "~/.cq/server", "cq-mcp-server"],
"environment": {
"CQ_TEAM_ADDR": "http://your-team-api:8742",
"CQ_TEAM_API_KEY": "your-key"
}
}
}
Impact
For teams using Cursor for agent-driven development on complex codebases, this turns every solved problem into permanent institutional knowledge. The agent gets smarter per-project over time — not just per-session. Especially valuable for distributed teams and projects with non-obvious domain rules.
Reference: GitHub - mozilla-ai/cq: An open standard for shared agent learning. Agents persist, share, and query collective knowledge so they stop rediscovering the same failures independently. · GitHub (Apache 2.0 · v0.4.0, March 2026)