rightos-mcp

v0.5.1
io.github.suomimasuda/rightos-mcp Checked 2 days ago Published 1 month ago

RightOS MCP: privacy-first QR queue/EV/pickup.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_plans

List RightOS pricing plans (globally uniform pricing, free tier available).

get_token

Get a Right Token (digital QR ticket) by its tokenId. Never returns the secret verification code.

ParameterTypeDescription
tokenId *stringToken ID (tok_...)

verify_token

Verify a Right Token with its verification code. Result is success / failed / expired / cancelled / already_used / not_yet_valid (when enforceTimeWindow blocks verify before startTime). Rate limited (10/min per token).

ParameterTypeDescription
tokenId *stringToken ID (tok_...)
verificationCode *stringThe holder's verification code

transfer_token

Transfer a Right Token to a new holder (re-keying: a new verification code is issued and the old one is invalidated immediately). Only the current holder can transfer. May be rejected by the location's policy (policy_transfer_disabled / transfer_limit_reached).

ParameterTypeDescription
tokenId *stringToken ID (tok_...)
verificationCode *stringCurrent verification code, proving transfer authority

holder_cancel_token

Self-cancel a Right Token as its current holder (proven by the verification code). May be rejected by the location's policy (policy_cancel_disabled). Irreversible. Rate limited like verify.

ParameterTypeDescription
tokenId *stringToken ID (tok_...)
verificationCode *stringCurrent verification code, proving holder authority

get_location_policy

Get a location's effective policy (transferability, max transfers, default validity, holder self-cancellation). Resolution: industry preset -> country overlay -> location override. Public for transparency.

ParameterTypeDescription
locationId *stringLocation ID (loc_...)

list_policies

List the full policy knowledge base: industry presets per location type and country overlays (JP, US, GB, KR, TW, FR, DE, IT, ES, AU — informed by local ticket-resale laws). Useful when choosing a location type or proposing policy overrides. Defaults, not legal advice. Public.

get_location_queue

Public queue snapshot for a location (counts only, no PII). Optional tokenId adds aheadCount and queuePosition. Does not auto-call or assign staff (ADR-0024).

ParameterTypeDescription
locationId *stringLocation ID (loc_...)
tokenIdstringOptional token ID to include aheadCount and queuePosition

list_locations

List your organization's locations. Requires the RIGHTOS_API_KEY environment variable (operator API key).

list_tokens

List your organization's Right Tokens. Filter by locationId, status, and since (ISO 8601). Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
locationIdstringFilter by location ID
sincestringOnly tokens created at or after this ISO 8601 time
statusstringFilter by token status

create_location

Create a location (shop, clinic, ev_charging, event, logistics, pickup, other). Returns 402 if the plan's location limit is exceeded. Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
name *stringLocation name
addressstringAddress (optional)
timezonestringIANA timezone, e.g. Asia/Tokyo
typestringLocation type (determines the industry policy preset)

set_location_policy

Override a location's policy (partial update: transferable, maxTransfers, defaultValidityMinutes, verificationRequirement, holderCancellable, maxActiveTokens, enforceTimeWindow, requireVerifyBeforeUse, approachingThreshold). Set reset=true to restore the industry preset. Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
locationId *stringLocation ID (loc_...)
approachingThresholdqueue.approaching webhook threshold: notify the organization's webhooks once per token when aheadCount drops below this after a slot frees up; null = disabled
defaultValidityMinutesinteger
enforceTimeWindowbooleanBlock verify before startTime (not_yet_valid)
holderCancellablebooleanWhether the current holder can self-cancel the token
maxActiveTokensMax concurrent active queue tokens; null = unlimited
maxTransfersMax transfers; null = unlimited
requireVerifyBeforeUsebooleanRequire verify before mark-as-used (409 verify_required)
resetbooleantrue = reset to the industry preset (ignores other fields)
transferableboolean
verificationRequirementstring

issue_token

Issue a Right Token (digital QR ticket). The verification code and wallet URL are returned EXACTLY ONCE — hand the walletUrl to the end user. Returns 402 if the plan's monthly limit is exceeded. Returns 409 queue_full when maxActiveTokens is reached. Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
locationId *stringLocation ID (loc_...)
title *stringTicket title, e.g. 'Queue ticket'
descriptionstring
endTimestringISO 8601 expiry; defaults to the location policy's default validity
startTimestringISO 8601 start time

use_token

Mark a Right Token as used after service (own organization only). Returns 409 verify_required when requireVerifyBeforeUse policy is enabled and the token is not yet verified. Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
tokenId *stringToken ID (tok_...)

cancel_token

Cancel a Right Token (own organization only). Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
tokenId *stringToken ID (tok_...)

get_policy_history

Policy change audit log for a location (before/after overrides, newest first). Append-only. Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
locationId *stringLocation ID (loc_...)

export_data

Export all organization data (locations, tokens, verification logs, policy change history) as JSON. Contains no secret values. Requires the RIGHTOS_API_KEY environment variable (operator API key).

list_webhooks

List the organization's outbound webhooks (never includes signing secrets). Requires the RIGHTOS_API_KEY environment variable (operator API key).

create_webhook

Register an outbound webhook (up to 3 per organization, https only). Events: token.verified / token.used / token.cancelled / token.transferred / queue.approaching (defaults to all; queue.approaching fires only when the location policy sets approachingThreshold). The response includes the signing secret (whsec_...) EXACTLY ONCE — deliveries are signed via the x-rightos-signature header (t=<unix seconds>,v1=<hex HMAC-SHA256>). Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
url *stringhttps URL to receive signed POST deliveries
eventsarrayEvent types to subscribe to (defaults to all five)

delete_webhook

Delete an outbound webhook (own organization only). Requires the RIGHTOS_API_KEY environment variable (operator API key).

ParameterTypeDescription
webhookId *stringWebhook ID (wh_...)