Back to Browse

Grant MCP Server

Developer ToolsModerate6.9MCP RegistryRemote
Free

Server data from the Official MCP Registry

Human approvals, atomic escrow, affect guardrails, scoped delegation, and Ctrl+Z rewind.

About

Human approvals, atomic escrow, affect guardrails, scoped delegation, and Ctrl+Z rewind.

Remote endpoints: streamable-http: https://grant-approve.vercel.app/api/mcp

Security Report

6.9
Moderate6.9Moderate Risk

Valid MCP server (1 strong, 1 medium validity signals). 6 known CVEs in dependencies (0 critical, 2 high severity) Imported from the Official MCP Registry.

12 tools verified · Open access · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

file_system

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-theoccomputationsmain-grant-consent": {
      "url": "https://grant-approve.vercel.app/api/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Grant

Consent infrastructure for AI agents.

When an agent acts on someone’s behalf — sends a message, refunds an order, writes a record, publishes content, spends budget — Grant appears with one quiet question:

Allow this, or not?

The human gets one link. The agent gets a signed permission. Grant keeps the audit trail.

Grant v2.5.1 unifies five services behind that one checkpoint: approvals, atomic escrow, affect guardrails, scoped sub-agent delegation chains, and Ctrl+Z rewind with autonomous self-correction. Try all five without an account at https://grant-approve.vercel.app/try.

This is a new product with its own brand, repository, database, and deployment. It is not a feature of AgentGrid or TraceLock.


The idea

People do not install HTTPS. They encounter it exactly when trust matters.

Grant works the same way, but the primary integration is invisible:

  1. An MCP client or agent sends a tool call.
  2. Its URL points at Grant Gateway instead of the upstream tool server.
  3. Grant matches the call against policy and pauses it.
  4. The human gets one approval page: Approve once, Always allow, or Reject.
  5. Grant releases the original call and returns the normal upstream response.

No agent code change is required for gateway users. The Python SDK exists for agents that want explicit control.

Every approval link is an invitation to understand the product. No cold outreach required.

The hosted service lives at https://grant-approve.vercel.app. The approval popup uses plain language ("Who's asking", "Expires — In 29m (9:21 AM international time)") and keeps account creation and sign-in inside the popup itself. Public pages are indexed through public/robots.txt and public/sitemap.xml; private approval, workspace, and ops paths are not.


Quickstart

Grant is a hosted Remote MCP server. There is nothing to install: point an MCP client at https://grant-approve.vercel.app/api/mcp, or read the OpenAPI 3.1 contract at https://grant-approve.vercel.app/openapi.json.

curl -sS https://grant-approve.vercel.app/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

curl -sS https://grant-approve.vercel.app/openapi.json | head -c 400

The optional Python SDK and grantctl are available from this repository only; Grant is not published to PyPI.

cd Grant
pip install -e .

python -c "import grant; print(grant.__version__)"  # 2.5.1
grantctl doctor --url https://grant-approve.vercel.app
from grant import Grant, GrantDenied

grant = Grant("https://grant-approve.vercel.app", workspace="support")

ask = grant.request(
    agent="support-agent",
    action="refund_order",
    summary="Refund order ord_42 for $48.00",
    scope={"order_id": "ord_42", "amount": 48},
    ttl_minutes=30,
)

print(ask.message)  # put this where your agent normally talks to the human

try:
    permission = grant.wait(ask.id, timeout=300)
    print(permission.policy, permission.signature)
except GrantDenied:
    print("The human said no. Do not run the action.")

The approval URL is a capability link. No account is required to approve.


What ships in this repository

PathWhat it is
main.pyFastAPI service: approval pages, gateway proxy, HTTP API, stats, health checks
grant/Python SDK with no third-party imports, plus local proxy daemon
grant/cli.pygrantctl gateway, proxy, request, status, and verify commands
grant/db.pyNeon Postgres primary adapter with pooled retries for transient OperationalError/InterfaceError; production refuses ephemeral storage
grant/telemetry.pyPrivacy-preserving login/pop-up telemetry, aggregate policy history, and privacy-safe resilience counters
grant/policy_compiler.pyDeterministic stdlib-only policy compiler (<5 ms, zero network, no raw arguments)
grant/login_library.pyRead-only login/reach library: users, logins, pop-ups, computers, sanitized history
grant/assets/grant-inject.jsInjectable browser interceptor for fetch/XHR and risky clicks
grant/policies/oauth_scopes.jsonZero-custody OAuth scope → gateway rule templates
migrations/001_neon_schema.sqlDurable Neon schema, applied automatically when DATABASE_URL is set
migrations/003_rewind_resilience.sqlRewind receipts, resilience counters, and policy decisions (hashes/counts only)
grant/emailer.pyResend / SMTP / dev-console magic-link delivery with no third-party SDK
scripts/verify_cashfree.pyCheckout, simulated webhook, and tier-activation verification CLI
tests/test_v2_5_resilience.pyFive live pop-ups, idempotency, payload cap, Neon retry, deterministic compiler, and structured errors
tests/Launch tests covering consent, gateway, popup, magic receipt, A2A, browser inject, identity, API keys, gates, billing, telemetry, login library, and policy flows
integrations/starter-kits/Strict-opt-in Python/TypeScript examples for upstream gateway adapters
docs/GATEWAY.mdMCP gateway, local proxy, and OAuth policy templates
docs/Quickstart, framework examples, deployment, brand system
vercel.jsonVercel function configuration

Grant covers four interception choke points: (1) the MCP/API tool gateway, (2) the outbound HTTP/local proxy with a 460×640 approval pop-up and validated postMessage handshake, (3) the injectable browser script that pauses fetch/XHR and risky DOM clicks, and (4) the agent-to-agent message bus gate. OAuth scope templates map provider scopes to per-action rules without token custody, and the approval card itself is the discovery surface: the persistent “● Protected by Grant · Zero-custody consent infrastructure” watermark sits on every card, and the post-approval Magic Receipt offers a passwordless dashboard link alongside the builder CTA.


HTTP API

MethodPathPurpose
POST/v1/requestsCreate an approval request
GET/v1/requests/{id}Read status and signed permission
GET/v1/permissions/{agent}List active permissions
POST/v1/permissions/verifyVerify a signed permission
POST/v1/gatewaysRegister a zero-code MCP/HTTP gateway
GET/g/http/{token}/{path}Approval-gated HTTP reverse proxy
POST/g/mcp/{token}Approval-gated MCP JSON-RPC proxy
GET/statsPublic, readable activity totals (cached 60 seconds)
GET/stats.jsonAggregate usage + live reach metrics only
GET/login-historyToken-gated login/pop-up history space
GET/login-history.jsonToken-gated login/reach library report
POST/v1/a2a/gateHold an agent-to-agent handoff until a human signs it
GET/openapi.json, /api/openapi.jsonOpenAPI 3.1 contract (public CORS)
POST / GET/api/mcpMCP JSON-RPC (initialize, tools/list, tools/call); browser GET setup card
GET/tryFive no-account demo tabs that open every service-specific pop-up
POST/v1/try/{service}Demo-only staging for approval, escrow, affect, delegation, rewind (and robotics compat)
POST/v1/gate/webhookWebhook approval gate with rules-first decisions and signed callbacks
POST/v1/approvalsUnified approval checkpoint with Idempotency-Key replay
GET/receipt/{req_id}Public signed receipt page
POST/v1/auth/otp, /v1/auth/otp/verifyEmail OTP sign-in alongside magic links
POST/api/webhooks/cashfreeAlias of /v1/billing/webhook (same Cashfree signature)
GET/manifest.webmanifest, /sw.js, /icons/icon-{192,512}.svgPWA assets
GET/approve/{req_id}, /signup, /accountCheckpoint, sign-up, and standalone account app
POST/v1/escrow/bundlesStage an atomic multi-agent escrow bundle
POST/v1/escrow/bundles/{id}/joinAdd a conditional step before human approval
GET/v1/escrow/bundles/{id}Read bundle status and committed signed receipts
POST/v1/affect/stateRequest a signed or human-gated behavioral state
POST/v1/delegation/mintMint a monotonically attenuated, time-boxed child-agent delegation token
POST/v1/delegation/verifyVerify a child action; escalate to a human checkpoint on bound violations
POST/v1/robotics/envelopeMint an offline-verifiable physical capability envelope (compatibility)
POST/v1/robotics/overrideSafe-hold an actuator and request a scoped override (compatibility)
POST/v1/robotics/verify-offline-specPublish public offline verification parameters (cached, compatibility)
POST/v1/policy/compileDeterministic, zero-network cap and auto-repair recommendation
POST/v1/rewind/previewRedacted before/after diff + reversibility timer (Idempotency-Key)
GET/v1/rewind/{receipt_id}Rewind receipt status and undo window
POST/v1/rewind/{receipt_id}/undoOne-tap Ctrl+Z compensating undo (Idempotency-Key)
POST/v1/rewind/{receipt_id}/auto-repairEmit deterministic repair blueprint (Idempotency-Key)
GET/v1/policies/oauth-scopesZero-custody OAuth scope templates
GET/grant-popup.jsSingle-source pop-up postMessage handshake
GET/grant-inject.jsInjectable browser interceptor (fetch, XHR, risky clicks)
GET/health/liveProcess check
GET/health/readyDatabase and signing check

Example request:

curl -X POST https://grant-approve.vercel.app/v1/requests \
  -H "Content-Type: application/json" \
  -d '{
    "agent": "support-agent",
    "action": "refund_order",
    "summary": "Refund order ord_42 for $48.00",
    "scope": {"order_id": "ord_42", "amount": 48},
    "workspace": "support",
    "ttl_minutes": 30
  }'

The response includes approval_url and a ready-to-send message.

Grant v2.5 services

All five services keep zero custody: identifiers, hashes, and redacted summaries only — no raw PII, passwords, or payment secrets. Plan gates are enforced server-side via the effective workspace plan (escrow: Pro, affect: Plus, delegation: Autonomous Agents). The /try page and /v1/try/{service} demo routes stage the five showcase flows with skip_gate=True without changing those public plan rules.

# Pillar 1 — atomic multi-agent intent escrow
curl -X POST https://grant-approve.vercel.app/v1/escrow/bundles \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Vendor onboarding chain",
    "workspace": "ops",
    "ttl_minutes": 30,
    "steps": [
      {"agent": "scout", "action": "fetch_terms", "summary": "Fetch vendor terms", "scope_hash": "9f2c…"},
      {"agent": "buyer", "action": "issue_po", "summary": "Issue purchase order", "scope_hash": "a41d…"}
    ]
  }'

# Add a counterparty commitment before approval
curl -X POST https://grant-approve.vercel.app/v1/escrow/bundles/bnd_abc/join \
  -H "Content-Type: application/json" \
  -d '{"agent":"legal","action":"review_terms","summary":"Review terms","workspace":"ops"}'

# Pillar 2 — low/moderate tone signs in under 100 ms; coercive tone escalates to 202
curl -X POST https://grant-approve.vercel.app/v1/affect/state \
  -H "Content-Type: application/json" \
  -d '{"agent":"support-agent","tone":"de-escalating","intensity":0.4,"context_summary":"Angry thread","workspace":"support"}'

# Pillar 3 — scoped sub-agent delegation, monotonically attenuated and time-boxed
curl -X POST https://grant-approve.vercel.app/v1/delegation/mint \
  -H "Content-Type: application/json" \
  -d '{"parent_agent":"planner","child_agent":"researcher","allowed_actions":["search_docs","summarize"],"max_spend_usd":2.0,"max_depth":1,"ttl_minutes":30,"workspace":"ops"}'

curl -X POST https://grant-approve.vercel.app/v1/delegation/verify \
  -H "Content-Type: application/json" \
  -d '{"delegation_token":"<token>","child_agent":"researcher","action":"purchase_api","spend_usd":5.0,"depth":2,"workspace":"ops"}'

# Service 4 — deterministic self-study, under 5 ms and no network calls
curl -X POST https://grant-approve.vercel.app/v1/policy/compile \
  -H "Content-Type: application/json" \
  -d '{"tool_schema":{"type":"object","properties":{"amount":{"type":"number","maximum":60}}},"workspace":"ops"}'

# Service 5 — redacted Ctrl+Z rewind + machine-readable repair plan
curl -X POST https://grant-approve.vercel.app/v1/rewind/preview \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: undo-refund-ord_42" \
  -d '{"service_type":"approval","source_id":"req_abc","action":"refund_order","summary":"Rewind one scoped refund","scope":{"order_id":"ord_42"},"before":{"status":"pending"},"after":{"status":"refunded"},"reversibility_minutes":60}'

The unified /approve/{bundle_or_req_id} pop-up adapts by service_type. Approvals show Approve once / Always allow / Reject; escrow renders a numbered pipeline with Commit All Atomically / Roll Back Bundle; affect shows a tone/intensity meter with Authorize Tone / Cap Intensity; delegation shows parent/child bounds with Grant Scoped Exception / Hold Sub-Agent on a Delegation Escalation; rewind shows the before→after digest, reversibility timer, 1-Tap Ctrl+Z Rewind, and Emit Auto-Repair Blueprint.

MCP exposes create_escrow_bundle, request_affect_state, mint_subagent_delegation, verify_subagent_delegation, compile_policy, preview_rewind, undo_rewind, and emit_auto_repair at /api/mcp with explicit annotations and no raw arguments.


Zero-wrapper integrations

No SDK is required for these surfaces, and they send permissive CORS headers:

  • GET /openapi.json and GET /api/openapi.json publish the OpenAPI 3.1 contract.
  • POST /api/mcp accepts JSON-RPC initialize, tools/list, and tools/call; GET /api/mcp shows a browser setup card with the same URLs.
  • POST /v1/gate/webhook evaluates matching auto-approve rules first, then falls back to a human checkpoint. Decisions are delivered as signed HMAC callbacks with at most 2 retries (GRANT_CALLBACK_MAX_RETRIES).
  • GET /receipt/{req_id} is a public signed receipt page; no sign-in required.

Every POST body is capped at 64 KiB. Idempotency-Key is accepted on /v1/approvals, /v1/escrow/bundles, and all /v1/rewind/* writes; retries replay the original response instead of duplicating work. Errors are structured JSON (400/401/402/404/409/413/422/429/500) with stable codes and no traceback or submitted value. /openapi.json, /health/ready, and /v1/robotics/verify-offline-spec are cached public reads.

Without an Authorization header these integration endpoints run in demo mode: 20 requests/hour per hashed IP (GRANT_DEMO_LIMIT_PER_HOUR). A valid Authorization: Bearer gr_live_… key is exempt from the demo limiter. Raw IPs and callback secrets are never exposed in public docs or logs.

Native ecosystem plumbing

Distribution is shared plumbing, not individual end-user templates:

  • integrations/n8n-node/ is the zero-runtime-dependency n8n-nodes-grant community node. It exposes Human Approval Checkpoint, Atomic Multi-Agent Escrow, Affect Anti-Manipulation Check, and Robotics Safety Envelope directly in the native n8n palette. npm run build passes cleanly.
  • Upstream core-layer PRs wire exactly one relevant endpoint each: /v1/approvals into LangChain BaseTool.invoke()/ainvoke(), /v1/escrow/bundles into CrewAI Crew.kickoff(), /v1/affect/state into Pipecat's shared TTS service, and /v1/robotics/envelope into the ROS 2 controller spawner.
  • modelcontextprotocol/servers does not accept pull requests, so the shared tool-approval gate is contributed through LangChain's BaseTool execution layer instead.

All four patches are zero-dependency and send redacted hashes instead of values. The three open core-layer patches (CrewAI #9928, Pipecat #7051, and ROS 2 #3834) are strictly opt-in and refuse redirects, cap response reads at 64 KiB, and fail open on any network error. CrewAI additionally requires an explicit HTTPS GRANT_BASE_URL before any request, attaches Authorization: Bearer only to that operator-selected host, defaults keyed requests to a private workspace, and uses the import-time machine proxy/CA pin so a project .env cannot steer the request. LangChain #42159 was auto-closed by the repository's approved-issue assignment gate and can be reopened once a maintainer assigns an approved issue.

The upstream gateway adapters follow the same v2.5 security standard: LiteLLM #54800 and Portkey #1922 act only when GRANT_API_KEY or an explicit GRANT_BASE_URL is configured, require HTTPS (except exact localhost), refuse redirects, cap response reads at 64 KiB before parsing, catch broad exceptions, and never send raw argument keys, values, credentials, or PII. Integer 0 is treated as a real value. Opt-in auto-repair attaches only sanitized repair plans from /v1/rewind/{receipt_id}/auto-repair.


CLI

grantctl request \
  --agent support-agent \
  --action refund_order \
  --summary "Refund ord_42" \
  --scope '{"order_id":"ord_42"}' \
  --url https://grant-approve.vercel.app

grantctl status req_abc123 --url https://grant-approve.vercel.app
grantctl permissions support-agent --url https://grant-approve.vercel.app
grantctl doctor --url https://grant-approve.vercel.app

Zero-code gateway

grantctl gateway \
  --name "Payments API" \
  --upstream https://api.example.com \
  --workspace support \
  --paths "/transfer,/payment,/refund" \
  --body-keys "amount,recipient" \
  --url https://grant-approve.vercel.app

Point the agent at the returned http_url or mcp_url. Sensitive calls pause for approval; routine calls pass through.

For local or computer-use agents:

grantctl proxy \
  --upstream https://api.example.com \
  --port 8787 \
  --open \
  --url https://grant-approve.vercel.app

Then point the local agent at http://127.0.0.1:8787/.

For browser/web agents, load the injectable script on the page the agent operates in:

<script src="https://grant-approve.vercel.app/grant-inject.js"
  data-grant-url="https://grant-approve.vercel.app"
  data-agent="web-agent"
  data-workspace="public"
  data-sensitive-paths="stripe.com,googleapis.com"
  data-risky-clicks="send,pay,delete,transfer,publish"></script>

It pauses matching fetch/XHR calls and high-risk clicks, opens the 460×640 hosted card, and resolves on a validated postMessage or a signed status poll. It never reads host-page credentials. For multi-agent systems, grant.a2a_gate(sender=..., receiver=..., task=..., payload=...) or POST /v1/a2a/gate holds the handoff until a human decides. The public request and A2A endpoints allow cross-origin calls with Access-Control-Allow-Origin: *; no credentials are accepted. See docs/GATEWAY.md.


Magic Receipt

Every approval card carries the persistent watermark ● Protected by Grant · Zero-custody consent infrastructure, and every UI screen shows “Grant never sees your credentials or payment details. It only records what you allowed.” Once a human chooses Continue (approve once), Always allow, or an auto-approve rule, the card becomes a receipt:

  • Approved. Receipt req_... recorded. — a signed receipt, never a blank close screen.
  • Path A: Want to see every AI agent you've authorized—or revoke Always allow anytime? → Open Your Free Grant Dashboard →.
  • Path B: Building AI agents? Protect your own users' actions in 2 minutes. → Get Your Free API Key → (starts at /start?from=receipt, then the workspace dashboard mints a real gr_live_… key after a one-time email sign-in).

A signed, HttpOnly grant_dashboard cookie silently creates or reuses a workspace on approval, so the dashboard link is one click with no password form and no email capture. Billing email stays optional and is only used to match Cashfree payments. The receipt remains visible until the person chooses a path. The standalone public receipt lives at /receipt/{req_id}.


Checkpoint, signup, and the installed account

  • /approve/{req_id} is the checkpoint: Continue, Always allow, and a subtle Cancel. A decision writes a signed receipt and, if registered, fires the signed callback.
  • /signup is the sign-up flow. Add Shortcut installs the PWA and is mandatory before continuing to /account.
  • PWA assets: /manifest.webmanifest, /sw.js, /icons/icon-192.svg, /icons/icon-512.svg. The manifest uses start_url: /account, display: standalone, and colors #FAF8F5 / #6d2038.
  • /account is the standalone app: profile and plan, usage meter, Cashfree links, claim payment, rule kill switches and spend/scope cap editor, audit trail, login/device history, API-key minting, and the OpenAPI/MCP URLs.

Exact copy, pricing, and palette live in docs/BRAND.md; production configuration is in docs/DEPLOYMENT.md.


Trust model

  • Scope values that look like keys, tokens, passwords, or email addresses are redacted before storage and display.
  • Permissions are HMAC-signed. A permission can be verified through POST /v1/permissions/verify.
  • Approval links are unguessable capability URLs. They are private pages and excluded from search indexing.
  • Public /stats and /stats.json are aggregate-only. They never return IDs, emails, scope values, or URLs; both public HTML pages (/docs, /stats) are cached for 60 seconds.
  • Private /ops shows aggregate user and live-reach counts behind a token; no IDs, emails, or raw stats are public.
  • Private /login-history is a dedicated token-gated space for login and pop-up history; grant/login_library.py is its read-only library (users, logins, pop-ups, computers). Both are excluded from search indexing.
  • Telemetry stores salted SHA-256 hashes and coarse device labels only — never raw IPs, device IDs, or approval tokens.
  • The Magic Receipt cookie (grant_dashboard) is an HttpOnly, SameSite=Lax signed workspace capability — no email, password, or OAuth token — and the signed receipt does not depend on it.
  • Gateway retries require a signed X-Grant-Receipt bound to the exact scope, workspace, gateway, and expiry.
  • Grant does not handle money, wallets, escrow, or in-app checkout. Payment links are hosted externally.
  • Workspaces are bookmarks. Optional renewal reminders are delivered only to the billing email saved for that workspace.

Product-led growth loop

  • Invite by action: the approval link is delivered inside the agent’s normal flow.
  • One-tap policy: “Always allow” turns a single decision into a reusable permission.
  • Workspace bookmark: the decision page leads to a quiet workspace with the install snippet.
  • Embeddable message: ask.message is designed to be pasted into agent output, Slack, or a tool result.
  • Popup triggers: OAuth-style window with postMessage auto-close, Shadow-DOM widget, injectable browser script, and mobile deep-link card.
  • Magic Receipt: the approval card is the landing page; the watermark builds builder trust, and the signed receipt turns a one-time approver into a passwordless workspace owner in one click.
  • Contextual guardrails: conditional auto-approve rules, Slack/webhook delivery, team routing, and audit retention are offered at the moment of risk. SMS/WhatsApp alerts are Pro-tier and coming soon — no provider is connected yet.
  • Public proof: aggregate stats show adoption without exposing private data.

No fake engagement, voting, upvotes, mass outreach, or purchased traffic is part of this system. There is no PyPI publish claim and no raw PII or secret in public docs.


Brand

Paper #FAF8F5, burgundy #6d2038, translucent glass surfaces, serif headlines, and faint circuit traces inspired by transparent hardware design. No neon, no cyberpunk glow, no “AI purple”. Every screen shows “Grant never sees your credentials or payment details. It only records what you allowed.” and the ● Protected by Grant · Zero-custody consent infrastructure watermark.

See docs/BRAND.md for the exact palette, motion rules, and non-negotiable copy.


Pricing

Four tiers at /pricing, with a monthly/annual toggle (20% off annual). Exact displayed prices: Free $0, Plus $20/mo / ₹2,400, Pro $150/mo, Enterprise $4,000/mo. Annual prices are display-only; hosted checkout is monthly-only. Cashfree phone uses the server-only placeholder 9999999999 — the UI never asks for a phone or card detail.

  • Free ($0) — Basic Approve once / Always allow pop-up, Email & Web links (1,000/mo), 7-day audit trail. Includes a 14-day Pro Guardrails reverse trial.
  • Plus ($20/mo or ₹2,400/mo) — For solo builders putting an agent into production with real users or money. Locks: auto-approve rules (spend/scope caps), Slack & Webhook instant approvals (15,000/mo), 30-day audit log retention.
  • Pro ($150/mo or ₹12,600/mo) — For teams running agents across departments with compliance needs. Locks: multi-approver routing & role rules, 1-year audit trail + CSV/JSON exports, and SMS / WhatsApp approval alerts (100,000/mo, coming soon — no provider connected).
  • Enterprise ($4,000/mo or ₹340,000/mo) — For large organizations and platforms embedding Grant at scale under strict security and legal procurement. Contact CTA with custom terms. Locks: white-label domain & custom branding, SSO / SAML & org directory sync, 99.99% SLA + real-time SIEM log streaming (with custom retention of 7+ years).

Plan positioning, feature bullets, and lock flags live in grant/plans.py; /pricing renders those exact bullets, and approval drawers surface the relevant Plus/Pro lock at the moment of risk. Gates are enforced server-side in every request-creating handler: an exhausted Free quota returns 402, and Plus/Pro-only features return 403 with tier upgrade metadata.

Cashfree-hosted monthly forms only. The signed webhook at POST /v1/billing/webhook (alias POST /api/webhooks/cashfree, same secret and signature) resolves the tier by permanent form/link ID or paid amount, matches the normalized billing email, sets a 32-day expiry, and resets the monthly quota. A different checkout email is stored as a verified row in unclaimed_payments; claim it by checkout email or Cashfree Payment ID from /account. Day-27 renewal reminders point back to the same static form and are sent only through an explicitly configured email webhook. Grant itself never takes payment or handles cards. Monthly quotas and plan-only features are enforced server-side: an exhausted Free quota returns 402, and Plus/Pro-only rules return 403, both with upgrade metadata.


Identity, keys, and launch gates

  • Passwordless identity: POST /v1/auth/magic-link sends a one-time link via Resend or SMTP (dev prints it to console), and GET /auth/verify creates or loads a durable users row, attaches anonymous claim_token rules, records login_history, and sets an HttpOnly grant_session cookie. Email OTP is also available through POST /v1/auth/otp and POST /v1/auth/otp/verify; only a code hash is stored (magic_links.otp_hash).
  • Real API keys: the workspace dashboard mints gr_live_… keys through POST /api/keys. Only the SHA-256 digest is stored in Neon; the raw key is displayed once. Send it as Authorization: Bearer gr_live_… to protected endpoints. GET/DELETE /api/keys manage live keys, and invalid or revoked keys return 401.
  • Hard gates: every request-creating handler shares enforce_request_gates(). Free quotas return 402; conditional rules (Plus) and multi-approver routing / mobile channels (Pro) return 403 with current_tier, required_tier, and upgrade_url.
  • Cashfree verification: python scripts/verify_cashfree.py --org ws_live --mode checkout prints the hosted monthly form. After paying, --mode verify polls ops-gated GET /api/billing/status until the Neon plan tier activates. --mode simulate posts to POST /api/webhooks/cashfree/test to exercise the same activation path without moving money.

Status that is still honest

SMS and WhatsApp approval alerts are Pro-tier features marked coming soon because Grant has no SMS provider integration. Annual pricing is display-only; hosted checkout is monthly-only. Enterprise is a contact CTA, not a payment link. The Chrome Web Store extension and custom LangGraph/CrewAI SDKs are deliberately out of scope — the inject script and /v1/a2a/gate HTTP endpoint are the supported browser and agent integrations. The zero-wrapper endpoints, checkpoint/signup, PWA account app, email OTP, and Cashfree webhook alias described above are part of the current uncommitted work; verify on the deployed preview before treating them as live.


Local development

python -m venv .venv
. .venv/Scripts/activate      # Windows
pip install -r requirements.txt
pip install -e .
uvicorn main:app --reload
python -m pytest tests -q

Current status: 101 passed.

Before public launch, set GRANT_PUBLIC_BASE_URL and GRANT_SIGNING_SECRET, and provision a Neon DSN (DATABASE_URL / NEON_DATABASE_URL / GRANT_NEON_DATABASE_URL) for durable storage — the schema in migrations/001_neon_schema.sql then applies automatically on boot. None of these deployments or schema applications happen without explicit authorization. See docs/DEPLOYMENT.md.

Reviews

No reviews yet

Be the first to review this server!