QRTap

io.github.IlyaShurf由 GitHub 账号 IlyaShurf 发布v1.0.4更新于 Oct 25, 2026

Editable QR codes, short links, public pages, reviews and bookings as tools for AI agents.

概览

AI 生成的概览

本地 MCP 服务器,让助手管理 QRTap 工作区:可编辑二维码、短链接、公开页面、评价、预订和条件跳转。

可以做什么
创建、列出、查看并重新指向二维码和短链接,支持批量创建和设计模板,并可查看变更历史与按二维码或分组的扫码统计。创建、读取和更新公开页面,读取或整体替换 Smart Link 条件跳转规则。列出访客评价并进行审核,列出预订或更改预订状态。读取聚合扫码分析,不含个人访客记录。
适用场景
适合让助手处理 QRTap 的日常事务:为菜单、价目表或门店生成二维码,把已印刷的二维码改指向新地址,编辑公开页面,处理评价和预订收件箱,或查看扫码数据。
运行要求
需要 Node.js 20 或更高版本,通过 npx 以 stdio 在本地运行。需要工作区所有者在 QRTap 后台签发、仅显示一次的 QRTAP_API_KEY。QRTAP_API_URL 可选,默认指向 QRTap 主机。需要访问 QRTap API 的网络。批量创建需要付费套餐。
安装前请注意
QRTAP_API_KEY 拥有整个工作区的权限,应放在客户端的 env 配置中,不要写入提示词或代码仓库。多个工具会改变真实客户看到的内容:更改二维码目标、审核评价、设置预订状态和设置 Smart Link 规则。页面更新和 Smart Link 规则更新会整体替换内容,省略的部分会被清除。调用受套餐设定的每分钟和每日额度限制。

安装

在 SourceWeft 中

  1. 打开 控制台中的 QRTap,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

qrtap-mcp — QRTap for AI agents

An MCP stdio server that lets Claude, or any MCP-compatible assistant, run a QRTap workspace: editable QR codes and short links, public pages, guest reviews, booking requests and conditional redirects.

Русская версия: README.ru.md.

Why it exists

A QRTap code encodes a permanent short link, and the destination behind that link stays editable forever. Print a code on a menu, a price list, a shop window or a business card once — then change where it leads as often as you need. Nothing is reprinted.

That makes the product a good fit for an agent: "put a QR on the summer menu", "point the sticker at the new price list", "issue 120 codes for the branches, one per branch", "are there new bookings?" are all one or two tool calls.

Install

bash
npx -y qrtap-mcp        # run the stdio servernpm i -g qrtap-mcp      # or install the qrtap-mcp binary

Node 20 or newer, and nothing else: the package is compiled JavaScript with zero runtime dependencies, so npx fetches about 22 kB and the server is up — no toolchain download on first run. It speaks MCP on stdin/stdout and logs to stderr only.

Configuration

VariableMeaning
QRTAP_API_KEYRequired. Workspace API key.
QRTAP_API_URLAPI base. Default https://app.qrtap.kg.

Where to get a key. The workspace owner issues it in the QRTap cabinet at app.qrtap.kg/workspace/api. The key is shown once, carries the rights of the whole workspace, and can be revoked there at any time. A key can be issued on any plan, including the free one — you can try the integration before paying. What the plan changes is the budget and the batch endpoints, not the door; see Limits and plans below and app.qrtap.kg/pricing.

Treat the key like a password: keep it in the MCP client's env block, not in a prompt, a repository or a shared document.

Claude Desktop

Settings → Developer → Edit Config, then add to claude_desktop_config.json:

json
{  "mcpServers": {    "qrtap": {      "command": "npx",      "args": ["-y", "qrtap-mcp"],      "env": { "QRTAP_API_KEY": "qrtap_key_XXXX" }    }  }}

Claude Code

bash
claude mcp add qrtap --env QRTAP_API_KEY=qrtap_key_XXXX -- npx -y qrtap-mcp

Cursor, Windsurf, VS Code and other MCP clients

The same entry works anywhere that accepts the standard mcpServers shape — .cursor/mcp.json, .mcp.json at a project root, or the client's own settings file:

json
{  "mcpServers": {    "qrtap": {      "command": "npx",      "args": ["-y", "qrtap-mcp"],      "env": { "QRTAP_API_KEY": "qrtap_key_XXXX" }    }  }}

Tools

Twenty tools over the public REST API v1. Read operations are safe to call freely; the four marked public effect change what real customers see, and their descriptions tell the agent to confirm with the user first.

Codes and short links

ToolMaps to
qrtap_create_code(url, title?, external_ref?, group?, design_template_id?)POST /api/v1/codes
qrtap_create_codes_bulk(items[])POST /api/v1/codes/bulk — up to 500, per-item results
qrtap_list_codes(group?, external_ref?, include_stats?, limit?, offset?)GET /api/v1/codes
qrtap_get_code(codeId)GET /api/v1/codes/{id}
qrtap_change_destination(codeId, url) — public effectPATCH /api/v1/codes/{id}
qrtap_code_history(codeId)GET /api/v1/codes/{id}/history
qrtap_create_short_link(url)POST /api/v1/codes
qrtap_list_design_templates()GET /api/v1/design-templates

Analytics

ToolMaps to
qrtap_code_stats(codeId, from?, to?)GET /api/v1/codes/{id}/stats
qrtap_group_stats(group, from?, to?)GET /api/v1/groups/{group}/stats

Scan analytics are anonymous and aggregate by design: totals, a per-day series and a device split. Bots are excluded, and no visitor IPs or user-agents are stored, so there are no per-person records for an agent to ask for.

Public pages (/a/{slug})

ToolMaps to
qrtap_list_pages()GET /api/v1/pages
qrtap_get_page(slug)GET /api/v1/pages/{slug}
qrtap_create_page(content)POST /api/v1/pages
qrtap_update_page(slug, content)PATCH /api/v1/pages/{slug}

Reviews and bookings

ToolMaps to
qrtap_list_reviews(status?)GET /api/v1/reviews (default pending)
qrtap_moderate_review(reviewId, action) — public effectPOST /api/v1/reviews/{id}/moderate
qrtap_list_bookings(status?)GET /api/v1/bookings
qrtap_set_booking_status(bookingId, status) — public effectPOST /api/v1/bookings/{id}/status

Smart Links (conditional redirects)

ToolMaps to
qrtap_get_smart_rules(codeId)GET /api/v1/codes/{id}/smart-rules
qrtap_set_smart_rules(codeId, rules) — public effectPUT /api/v1/codes/{id}/smart-rules

Two rules an agent should know

Read before you overwrite. qrtap_update_page and qrtap_set_smart_rules replace their payload wholesale — anything you omit is erased. Fetch the current state with qrtap_get_page / qrtap_get_smart_rules, merge your change into it, send the whole object back.

Set external_ref on batches. Creation is idempotent by external_ref, so a retried call returns the existing code instead of minting a duplicate. It is what makes a partly failed batch safe to re-run.

Printable artifacts

png_url and svg_url come back on every code. For a print shop, request a PDF directly — artifact endpoints need the same Bearer key:

bash
curl -H "Authorization: Bearer $QRTAP_API_KEY" \  "https://app.qrtap.kg/api/v1/codes/$CODE_ID/qr?format=pdf" -o code.pdf

format is png | svg | pdf; size sets PNG width (256–3000, ~2000 for print). PNG output is decode-verified before it is returned. Rendering is not exposed as a tool because the result is a binary file rather than text an agent can reason over.

Ready-made agent skills

Step-by-step recipes for the common jobs — a menu you can change without reprinting, a specialist's page in five minutes, one QR for reviews on 2GIS/Google/Yandex, issuing a batch of codes, working the booking inbox — live in skills/ in the repository. Each one is a single self-contained markdown file you can hand to an assistant.

Limits and plans

Two budgets apply to every /api/v1 call: a per-minute brake and a per-day quota, both set by the workspace plan.

PlanPer minutePer dayActive keysBulk and scan webhooks
Free601001no
Standard1205,0003yes
Full30050,00010yes

The free tier exists so a developer or an agent can try the integration before buying: 100 calls a day is enough to build and demo, not to run a business on.

Over a budget the API answers 429 and says which one ran out — {"error":"rate_limited", "scope":"minute"} means wait seconds, {"error":"quota_exceeded","scope":"day"} means wait for UTC midnight. Both carry Retry-After and the X-RateLimit-Limit / -Remaining / -Reset headers, and the tool result surfaces all of it verbatim so an agent can back off instead of hammering.

Two calls are worth preferring on any plan: qrtap_create_codes_bulk over a loop, and qrtap_list_codes(include_stats=true) over per-code stats requests.

qrtap_create_codes_bulk needs a paid plan. On a free workspace it answers 402 plan_required with the current plan and an upgrade URL; the fallback is a loop of qrtap_create_code within the daily quota. Current plan limits live in one place in the platform — API_PLAN_LIMITS — and the table above tracks it.

Errors

API failures come back as ordinary tool results with isError: true, carrying the HTTP status and the response body as text, so the agent can read and explain them rather than crash. Only an unknown tool name is a JSON-RPC error (-32602).

StatusMeaning
401Key missing, invalid or revoked
402 plan_requiredThe request is valid, the plan does not cover it (bulk, scan webhooks)
404No such object in your workspace — another tenant's id looks identical to a typo, deliberately
422Content rejected: a page with no contact, or a QR caption with promo wording
429Budget exhausted; read scope and honour Retry-After

Licence and terms — where the line is

The client code in this package is MIT-licensed: read it, fork it, vendor it, ship it inside your own product. The LICENSE file is the whole of the grant.

That licence covers this thin client and nothing else. Access to the QRTap API is a separate matter, governed by your QRTap plan and the QRTap terms of use: the service, the hosted platform and the data in your workspace remain QRTap's. An MIT licence on the client is not an entitlement to the API — you still need a valid key on a plan that includes API access, and the usual limits and terms apply.

Development

All commands run from this package directory, in the monorepo and in the public mirror alike:

bash
npm install          # first time onlynpm test             # vitest: tool→HTTP mapping and MCP dispatchnpm run typecheck

Smoke test by hand — one JSON-RPC message per line:

bash
npm run build    # dist/ must exist firstQRTAP_API_KEY=qrtap_key_XXXX node bin/qrtap-mcp.mjs <<'EOF'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}{"jsonrpc":"2.0","method":"notifications/initialized"}{"jsonrpc":"2.0","id":2,"method":"tools/list"}EOF

The published package is compiled JavaScript in dist/ and has zero runtime dependencies — npx -y qrtap-mcp downloads about 22 kB and starts on plain Node, with no toolchain to fetch first. prepack rebuilds dist/ on every npm pack and npm publish, so an unbuilt or stale package cannot be shipped.

bash
npm run build     # tsc -p tsconfig.build.json → dist/

TypeScript sources live in src/ in the repository (MIT, see below) but are not in the tarball. The MCP stdio protocol is implemented directly in src/server.ts; imports carry explicit .js extensions because tsc does not rewrite specifiers and the emitted ESM has to resolve under plain Node.

About this repository

This is the published source of the qrtap-mcp npm package: the server, its tests and the agent skills. The rest of the QRTap platform (web app, API, database) is closed and lives in a private repository, so the history here starts at the first public release rather than at the first commit.

One test is intentionally absent. plan-limits.test.ts reads the plan grid out of the platform's database package and checks that the numbers in this README match what is actually sold; it can only run where both halves exist, so it stays in the private repository.

Issues and pull requests about the server, the skills or the docs are welcome here.

Links

MIT © 2026 QRTap (ИП Шуренков И.П., Kyrgyz Republic)

来源:README.md,提交 2288971

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v1.0.4最新Oct 16, 2026
  2. v1.0.3Oct 16, 2026
  3. v1.0.2Oct 15, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分