Skip to main content
Glama
Rill MCP
by rillongit

Rill MCP

Agent tools for Rill payments (Accept / Spend / Network).

Portable marketplace packaging (Agent Plugins 1.0 + Cursor/Codex manifests) lives in rillongit/agent-plugin.

Tool results wrap { ok, status, body } and append next-step hints (fund checkout, Connect URLs, receipts, shared error hints).

Transports

Mode

Entry

Default

stdio

rill-mcp / pnpm dev

Cursor local

HTTP

rill-mcp-http / pnpm dev:http

Railway / hosted

HTTP routes: /mcp, /mcp/guest, /health, /ready.

Related MCP server: Parly MCP Server

Env

See .env.example.

Variable

Purpose

RILL_API_URL

API base (default http://localhost:3001)

RILL_VW_KEY

Agent virtual wallet key rill_vw_* or rill_vw_test_*

RILL_SELLER_KEY

Seller key for resources/balance/Connect

RILL_OWNER_JWT

Supabase JWT for claim/fund/mint/seller/recycle

RILL_ENVIRONMENT

live (default) or test for owner JWT tools (X-Rill-Environment)

RILL_MCP_TRANSPORT

stdio (default) or http

RILL_MCP_PORT / PORT

HTTP port (default 3101)

RILL_MCP_REQUIRE_AUTH

Require transport bearer in production

RILL_MERCHANT_OAUTH_ENABLED

true to advertise https://api.userill.com as the authorization server

INTERNAL_API_KEY

Shared with the API for POST /oauth/introspect/mcp

Tools

Tool

Auth

Description

rill_search_tools

None

Catalog + happy path

rill_capabilities

None

Agent capabilities JSON

rill_resolve_handle

None

Resolve @handle / agent FQDN

rill_list_directory

None

List directory (defaults to payment_ready)

rill_discover

None

Curated can-pay gates (Accept + partners)

rill_register_agent

None (PoW)

Bootstrap rill_vw_* / rill_vw_test_* + handle (environment arg)

rill_claim_handle

Owner JWT

Claim handle + account wallet

rill_accounts

Owner JWT

List wallets / me

rill_create_wallet

Owner JWT

Create rill_vw_* wallet with budget

rill_verify_receipt

None

Verify receipt

rill_pay_url

VW

Pay any MPP/x402 HTTPS URL (primary)

rill_pay

VW

Background ledger: resource pay or FQDN transfer

rill_balance

Seller or VW

Balances + Connect flags / VW allowance

rill_fund

VW or owner JWT

action: checkout | intent | mock (auto-registers on guest)

rill_resources

Seller

action: list | create | update | deactivate

rill_create_pay_link

Seller

Create gate_url (agents pay); pay_page_url for humans

rill_enable_payments

Seller

Enable MPP/x402 on gate URLs

rill_webhooks

Owner JWT

payment.succeeded unlocks your product (create | list | test | delete)

rill_sellers

Owner JWT / seller

action: create | list | me | update | rotate. Session adopts rill_sk_* on create/rotate

rill_connect

Seller

action: status | onboard | link | oauth | sync | login

rill_withdraw

Seller

Transfer seller balance via Connect

rill_recycle

Owner JWT

Seller balance → account wallet

rill_sync_directory

Owner JWT

Refresh + probe MPP/x402 directory

Resources: rill://docs/{authentication,money,idempotency,webhooks,errors,recipes}.

Guest HTTP (/mcp/guest): search, capabilities, resolve, list_directory, discover, register_agent, verify, fund, pay_url, pay, balance.

Hero loop (Accept × Spend)

  1. Seller go-live: rill_sellers list or create → rill_create_pay_link → rill_enable_payments → share gate_url → rill_webhooks payment.succeeded

  2. Buyer (guest): rill_fund action=checkout (auto-registers) → send checkout_url to a human → poll action=intent → rill_pay_url

  3. Buyer (owner): claim_handle → rill_fund → rill_create_wallet → rill_pay_url

  4. Optional reach: rill_discover (curated can-pay: Accept + partners) → rill_pay_url

Background ledger (seed / A2A):

  1. Fund → rill_pay with resource_id=SEED23 or to=<FQDN>

  2. rill_verify_receipt; unlock seed with GET /demo/echo + X-Rill-Receipt

Accept go-live

  1. rill_sellers action=list (or action=create) → rill_create_pay_link → share gate_url (agents pay this; pay_page_url is the same SKU for humans)

  2. rill_enable_payments, enables MPP + x402 (optional stripe_profile_id; defaults adopt platform profile for the seller environment)

  3. rill_webhooks action=create for payment.succeeded, unlocks your product (pass environment=test for Test; action=test sends a signed payment.succeeded sample)

  4. In Test, rill_pay_url against gate_url with a Test wallet (sample balance). In Live, fund first.

  5. To get paid without Stripe: rill_sellers action=update with payout_wallet_address. Otherwise rill_connect.

Connect recipe

  1. rill_sellers action=create → save rill_sk_*

  2. Earn via resources / pays

  3. rill_connect action=onboard → human opens onboard_url

  4. Poll rill_connect action=sync until connect.payouts_enabled

  5. If stuck: rill_connect action=login

  6. rill_withdraw (or owner rill_recycle)

Stripe model: platform Checkout on-ramp + Express Transfer off-ramp (separate charges and transfers). Optional payout_wallet_address sends x402/MPP USDC to the seller.

Examples

Run

pnpm --filter @rill/mcp dev
RILL_MCP_TRANSPORT=http pnpm --filter @rill/mcp dev:http
pnpm --filter @rill/mcp smoke:env
pnpm --filter @rill/mcp smoke:http

Deploy

Hosted HTTP: https://mcp.userill.com/mcp. Railway builds from the private monorepo using deploy/mcp/Dockerfile (clones this public repo at the SHA in deploy/mcp/submodule.sha, then builds @rill/shared + this package). apps/mcp/Dockerfile remains the local/submodule-checkout image.

Monorepo

This repo is the public submodule rillongit/mcp at apps/mcp. In the private monorepo, @rill/shared is resolved via the pnpm workspace.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Your agent takes a business live on payments: go_live creates a real merchant account (sandbox + production) the same day; create_checkout returns a payable link. Payments for AI builders, 3.9% flat.
      7
      70 npm
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to access Parly private-send tooling, including shielded payments, private balance operations, MPP session management, and optional Privacy Links and payment-route APIs, under AGENT key authority only.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to discover payable real-world services — such as EV charging and food — through a unified registry and downstream gateway, then complete payments via swappable rails. Exposes tools for listing services and federated downstream servers, searching nearby chargers, and obtaining payment quotes or card credentials for agent-driven checkout.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to set up CoinPay crypto payments in one idempotent pass: provisioning payout addresses, a business, payout wallets, webhooks, and supported coins. It also supports creating, checking, and verifying payments through the CoinPay API.
      863 npm
      MIT