devcrumb
by ellemsoft
README.md
# devcrumb
Stop debugging errors that other developers already solved.
devcrumb is an MCP server that gives your AI coding tools access to a shared knowledge base of real-world fixes and gotchas, verified by usage. Fully automatic — no extra steps.
**[devcrumb.dev](https://devcrumb.dev)**
## Setup
```json
{
"mcpServers": {
"devcrumb": {
"url": "https://mcp.devcrumb.dev/mcp",
"type": "http"
}
}
}
```
Works in Claude Code, Cursor, Windsurf, and any MCP client. First connection opens GitHub login — automatic after that.
## How it works
Once installed, devcrumb is available to your AI coding tool via MCP. Compatible tools call it in the background.
**Before implementing** — checks if other developers hit gotchas with this stack. Warns you if relevant, stays silent if not.
**When an error occurs** — searches for verified fixes. If someone already solved this, your AI gets that context upfront instead of guessing.
**After fixing something** — contributes the fix back. Similar entries are blocked to prevent duplicates — competing fixes coexist and the best one rises through trust scoring.
**Ongoing** — confirms entries that helped, flags wrong ones. Trust scores rise and fall based on real usage. No human moderation needed.
## Self-hosting
devcrumb is open source (MIT). You can run your own instance:
1. Set up Postgres + pgvector + PostgREST on any server
2. Run `sql/schema.sql` to create the schema
3. Deploy the Worker to your Cloudflare account
4. Set secrets: `POSTGREST_URL`, `POSTGREST_API_KEY`, `GITHUB_CLIENT_ID`, `GITHUB_CLIENT_SECRET`, `COOKIE_ENCRYPTION_KEY`, `GEMINI_API_KEY`, `SCREENING_MODEL` (e.g. `gemini-2.5-flash-lite`)
5. Create a GitHub OAuth App pointing to your Worker URL
6. Create a KV namespace and update the ID in `wrangler.jsonc`
## Contributing
```
src/
├── index.ts # Worker entry + MCP server + OAuth + cron
├── app.ts # GitHub OAuth routes + health endpoint
├── tools/
│ ├── find.ts # find_crumb
│ └── contribute.ts # drop_crumb + confirm_crumb
└── lib/
├── embed.ts # Cloudflare Workers AI embeddings
├── screen.ts # Content screening via Gemini
├── rate-limit.ts # In-memory per-session rate limiting
└── db.ts # PostgREST client
```
## Licence
MIT
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues