KryMark
MCP server for collecting and resolving website feedback via AI; reviewers click elements and type requests, then AI agents pull fix prompts and resolve notes automatically.
README
◉ KryMark
Feedback on vibecoded websites that becomes an AI prompt — or gets pulled straight into your AI editor via MCP.
🔗 Live showcase · Docs · Self-hosting
You built a site with Lovable, Bolt, v0 or Cursor. Now the review round is chat screenshots and "make it pop". KryMark gives non-coders a way to click the exact element and say what they want — and gives you (or your AI agent) a DOM-rich, paste-ready fix prompt.
[reviewer on your site] [you / your AI]
click element → type feedback → dashboard · fix prompt · MCP tools
(one script tag, no login) screenshot + DOM + styles included
Features
- Embed widget — one
<script>tag, ~6KB gzip, Shadow DOM, no SDK. Reviewers click (or drag-select) an element, type in any language, hit send. Screenshot preview with a remove button; a "My notes" trail so they know what they've sent. - Frozen snapshots — every note stores the element's
outerHTML, computed styles, position, page meta and a screenshot at report time. Selectors drift after rebuilds; snapshots don't. - AI fix prompts — one note or a batch ("fix session") compiled into a single numbered prompt engineered for Cursor / Lovable / Claude: match by text & structure, smallest change, reconcile duplicates, flag what you can't find.
- MCP server built in — point Claude Code / Cursor at
/api/mcpwith an API key and the AI pulls feedback, fixes it, and resolves notes end-to-end. Six tools:list_projects,list_notes,get_fix_prompt,resolve_notes,set_status,add_comment. - Dashboard — dense dark UI: list / cards / kanban board (drag to change status), auto-tagging (layout / copy / style / bug / missing), filters, page grouping, duplicate clustering, bulk actions, team comments.
- Closed loop — resolving emails the reporter (one consolidated email per person) with "Fixed the way you wanted?" links; a "not quite" reply reopens the note.
- Multi-tenant — orgs, projects, invites, roles, per-org API keys. PocketBase API rules enforce isolation.
- Anti-spam by default — IP-hash rate limiting + per-project daily caps on the public report endpoint. Origin allow-list per project as a UX layer.
Quickstart (Docker)
git clone https://github.com/kryphan/krymark && cd krymark
cp .env.example .env # fill in NEXT_PUBLIC_APP_ORIGIN + IP_HASH_SALT
docker compose up -d --build
# 1) create the PocketBase superuser
docker exec krymark-pb /pb/pocketbase superuser upsert admin@example.com YOUR_PASSWORD --dir /pb/pb_data
# 2) create collections + multi-tenant rules (idempotent — rerun after upgrades)
PB_URL=http://127.0.0.1:8091 PB_ADMIN_EMAIL=admin@example.com PB_ADMIN_PASS=YOUR_PASSWORD npm run setup
# 3) generate the app's superuser token → put it in .env as PB_SUPERUSER_TOKEN
PB_URL=http://127.0.0.1:8091 PB_ADMIN_EMAIL=admin@example.com PB_ADMIN_PASS=YOUR_PASSWORD node pb/gen-superuser-token.mjs
docker compose up -d app # restart app with the token
Open http://localhost:3000 → sign up (your org is created automatically) → create a project → paste the snippet on any site:
<script src="https://your-krymark.example.com/w.js" data-key="YOUR_WIDGET_KEY" defer></script>
AI access (MCP)
Dashboard → Team → AI access → copy the config block into .mcp.json (Claude Code) or your editor's MCP settings:
{
"mcpServers": {
"krymark": {
"type": "http",
"url": "https://your-krymark.example.com/api/mcp",
"headers": { "Authorization": "Bearer km_live_YOUR_KEY" }
}
}
}
Then just ask: "Pull my new KryMark feedback and fix all of it, then resolve the notes."
Docs
- Self-hosting guide — install, reverse proxy, backups, upgrades, troubleshooting
- The widget — behavior, captures, screenshots, per-platform install, CSP
- HTTP API —
/api/reportcontract, health, re-review links - MCP — AI editor setup, tools, raw JSON-RPC usage
- Webhooks — outbound note events → any URL (n8n / Slack / ClickUp)
- Architecture — components, data model, multi-tenancy, design decisions
- Contributing
Configuration
Everything optional degrades gracefully — see .env.example for the full reference.
| Block | Needed for | Without it |
|---|---|---|
NEXT_PUBLIC_APP_ORIGIN, PB_SUPERUSER_TOKEN, IP_HASH_SALT |
core | required |
S3_* |
screenshots on public URLs (embedded in AI prompts) | screenshots stored in PocketBase, proxied by the app |
SES_* |
resolve/reset emails + the reporter re-review loop | emails silently skipped |
TG_BOT_TOKEN, TG_CHAT_ID |
Telegram ping on new notes | no pings |
Architecture
- Next.js 16 — dashboard, public APIs (
/api/report,/api/mcp,/api/rr), serves the widget (/w.js) and the self-hosted capture library (/vendor/snapdom.mjs). - PocketBase — auth, SQLite storage, multi-tenant API rules. Internal-only: the widget never talks to it directly; the admin UI binds to localhost.
- Widget — vanilla TS IIFE. Screenshots via snapdom (self-hosted, CDN fallback, 2-stage retry + re-compression).
Ops extras: /api/health (app + PocketBase, returns 503 when the DB is down), ops/backup-pb.sh (daily PocketBase backup via API, keeps 7), deploy.sh (optional git-push deploy — see deploy.env.example).
Development
npm install
# run PocketBase locally: download from pocketbase.io, then
./pocketbase serve --dir ./pb_data --hooksDir ./pb/pb_hooks
npm run setup # against http://127.0.0.1:8090
npm run dev
npm run build bundles the widget (esbuild) and builds Next. npm run typecheck before PRs.
License
MIT © KryPhan
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。