Invented rules
Models hallucinate UX guidance, spacing, and accessibility advice with no source.
Cloud MCP knowledge base · v1.0.0-rc.1
A versioned, queryable UI/UX knowledge base delivered over the Model Context Protocol. 73 cited topic docs, 6 workflow stage packs, session-scoped retrieval, and citation verification — so proposals rest on fetched rules instead of invented ones.
Generic AI UI looks like a template because the model is guessing.
Models hallucinate UX guidance, spacing, and accessibility advice with no source.
Pasting an entire style guide into every prompt wastes tokens and drifts over time.
Reviewers cannot tell which rules a design actually followed.
Four steps, one session, every claim traceable.
Call start_session with the feature. The server returns a session ID, the KB version, and feature-routed doc IDs.
Call get_stage_pack before each stage. Core rules plus stage docs, within a token budget.
Use search_kb and get_doc for extra topics. Only fetched IDs can be cited.
Call verify_citations before submitting. It flags unfetched, unknown, and deprecated IDs.
Domains: visual, components, interaction, accessibility, responsive, information architecture, UX writing, design systems, evaluation, SaaS patterns.
Seven tools, three resources. Search returns metadata; retrieve the full doc before relying on a rule.
feature
sessionId, stage
sessionId, id
query, domain?, limit?
ids[]
sessionId, citedIds[]
topic, context
Resources: kb://doc/{id}, kb://pack/{stage}, kb://core.
claude mcp add ux-kb -- node --import tsx \
/absolute/path/to/ux-kb/apps/stdio/src/index.ts{
"mcpServers": {
"ux-kb": {
"command": "node",
"args": ["--import", "tsx", "/absolute/path/to/ux-kb/apps/stdio/src/index.ts"]
}
}
}# create a key at https://ux-kb-site.vercel.app/dashboard/keys
claude mcp add --transport http ux-kb https://ux-kb-site.vercel.app/api/mcp \
--header "Authorization: Bearer <your-key>"stdio needs no API key — it provisions an internal stdio-local key. HTTP requires a Bearer key and enforces revocation, version pinning, and a per-key rate limit.
verify_citations flags unfetched, unknown, and deprecated IDs before submission.SESSION_FORBIDDEN.409.Agent -> MCP Server (stdio / HTTP)
-> Core Services
-> Content Repository -> Markdown content/
-> KbStore
-> MemoryStore (dev/tests)
-> PrismaStore (Postgres)
-> Auth, rate limit, sessions, citations, gapsCore owns the logic; MCP, REST, and admin are thin wrappers over the same services.
pnpm lint:kb:strict # 0 errors, 0 warnings across 73 docs
pnpm typecheck # tsc, both packages
pnpm test # 35 core unit tests
pnpm build # builds stdio + web
pnpm smoke # stdio end-to-end (7 tools + 3 resources)
pnpm smoke:http # HTTP auth, pinning, revocation, 429See docs/testing.md for the full manual guide.
No. Project design-system files override the KB on tokens, brand, components, and voice. UX-KB supplies general UX rules.
No. The server reads Markdown directly. Postgres persists API keys, sessions, usage, compliance, and gaps.
Yes. MIT licensed. Run it locally over stdio or HTTP, or host the Node server yourself.
It is instructed to cite fetched IDs and to call report_gap instead of inventing rules for missing topics.