- packages/queue: ioredis singleton + BullMQ Queue/Worker (prefix mcpedia:
on shared imrnes Redis :6379); apps/worker runs startWorker()
- @mcpedia/core: indexContentFile/runFullIndex (single indexing entry point
shared by script/worker/hook) + revision.service (list/get/restore)
- document_revisions table (migration 0002) — snapshots only on body change
- apps/api: POST /hooks/reindex + /hooks/index webhooks; tRPC revisions,
getRevision, restoreRevision, jobStatus, queueStatus
- apps/mcp: register MCP Resources mcpedia://docs{/,+slug/chunks/revisions}
({+slug} RFC6570 reserved expansion for slugs containing /)
- apps/mcp zod pinned to ^4 to match MCP SDK 1.30 compiled types
(resolves registerTool TS2589/ShapeOutput skew)
- scripts/enqueue.ts one-shot job enqueue helper; indexer refactored to runFullIndex
- PHASES.md/README/.env.example/docs updated
30 lines
704 B
JSON
30 lines
704 B
JSON
{
|
|
"name": "mcpedia",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"packageManager": "bun@1.3.14",
|
|
"workspaces": [
|
|
"apps/*",
|
|
"packages/*",
|
|
"scripts"
|
|
],
|
|
"scripts": {
|
|
"dev": "turbo run dev",
|
|
"build": "turbo run build",
|
|
"lint": "turbo run lint",
|
|
"typecheck": "turbo run typecheck",
|
|
"index": "bun run scripts/indexer.ts",
|
|
"enqueue": "bun run scripts/enqueue.ts",
|
|
"worker": "bun --cwd apps/worker run start",
|
|
"mcp": "bun --cwd apps/mcp run start",
|
|
"api": "bun --cwd apps/api run dev"
|
|
},
|
|
"devDependencies": {
|
|
"@trpc/client": "^11.18.0",
|
|
"@types/node": "^26.2.0",
|
|
"prettier": "^3.3.0",
|
|
"turbo": "^2.5.0",
|
|
"typescript": "^5.6.0"
|
|
}
|
|
}
|