SuperAPIAI Directory

paxaver-mcp

github.com · AI developer platforms

Paxaver school community platform: student lunch ordering with allergy and dietary checks, wallets, school calendars, volun

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

Paxaver MCP Server is the AI-facing adapter for the Paxaver school community platform. It enables AI assistants (ChatGPT, Claude, Perplexity, and any MCP-compatible client) to perform actions on behalf of Paxaver users, such as viewing lunch menus, ordering lunch, registering for fundraising events, and participating in volunteering; for school administrators, it can also manage restaurants, menu items, events, and daily orders.

Key Capabilities

  • Implements the Model Context Protocol (MCP), based on Cloudflare Workers, using RS256 JWT verification, capability-first authorization, and Streamable HTTP transport.
  • Exposes 27 tools, divided into five categories. Visibility in tools/list is filtered based on the caller's role; each call is reauthorized before dispatch, and the backend also rechecks data-level access permissions (defense in depth).
  • The ordering flow is draft → review → payment: create_lunch_order_draft, adjust with update_lunch_order_draft, then pay_lunch_order_draft.
  • Compatible with pre-2.5 tool names (get_menu, register_event, create_menu_item, etc.), which can still resolve to canonical tools but are no longer publicly listed. The deprecated order_lunch tool has been removed.
  • Financial and destructive tools are labeled and require user confirmation.

Usage

  • The local development server starts at http://localhost:8787。发现端点在 under /.well-known/; the MCP endpoint is POST /mcp.
  • Local development, when there are no PAXAVER_API_* service bindings, falls back to authenticated HTTPS against API_BASE_URL_CA, API_BASE_URL_US, and API_BASE_URL_MX (default http://localhost:8787)。完整集成测试需在本地运行 Paxaver backend worker; the default values already point to it.
  • Two environments, each an independent Worker with its own custom domain. The production worker serves CA, US, and MX users through a single endpoint (mcp.paxaver.com). The user region is resolved from the JWT issuer (iss), and the worker routes to the correct regional backend through service bindings (PAXAVER_API_CA, PAXAVER_API_US, PAXAVER_API_MX). Currency is determined by the user's school, not by the MCP endpoint.
  • The Dockerfile runs the worker locally via wrangler dev, proxying the production backend over HTTPS. The image sets REVOCATION_CHECK=skip because self-hosted servers do not have INTERNAL_SERVICE_SECRET. Tokens are still checked via signature, expiration time, and live user context loading, but the internal token revocation check does not run: revoked tokens remain valid until they expire. The container runs as a non-privileged node user. ALLOWED_ORIGINS retains the localhost default; browser clients need to add --var ALLOWED_ORIGINS:<origin>.
  • The Worker reads two Worker secrets: INTERNAL_SERVICE_SECRET and ALEXA_SKILL_ID.

Applicable Scenarios

  • AI assistants perform actions on behalf of users on the Paxaver platform, such as school lunch ordering, event registration, and volunteering.
  • School administrators manage restaurants, menu items, events, and daily orders through AI assistants.

Limitations

  • It is a thin adapter, contains no business logic, and does not directly touch databases, Stripe, or email. Every operation is delegated to the private Paxaver backend API through Cloudflare service bindings (same region, no public network hop).
  • The MCP server is only responsible for: MCP protocol handling (JSON-RPC 2.0, Streamable HTTP); RS256 JWT verification via JWKS from the centralized Paxaver auth worker; per-tool capability policy and role gating; sanitized, user-safe error mapping.
  • Authentication is provided by the districthandled by regional Paxaver auth servers (paxaver.ca/auth, paxaver.com/auth, paxaver.mx/auth), which issue OAuth 2.0 / OIDC tokens. The MCP server presents a facade authorization server on its own origin: the user selects the country where their account resides at login, and the facade routes each OAuth call to that region. The MCP server validates the resulting RS256 JWT and forwards it to the backend.
  • The MCP worker never binds D1, Stripe, or SES. Service bindings forward the caller's OAuth access token (RS256 JWT) as Authorization: Bearer; the backend validates it via JWKS and runs its own authorization pipeline, so every operation is attributed to an authenticated Paxaver user.
  • No personal contact information (email, phone, address) is collected or returned through MCP tools. The get_my_context tool returns only the user's name, school, student, and role. Student data is limited to ID, name, and school slug. Allergies, notes, birthdays, and other PII are not exposed in read responses. The MCP server does not log user data.

Tech Stack

  • Runtime: Cloudflare Workers (compatibility_date: 2026-09-15)
  • Framework: Hono v4
  • JWT: jose v6 (RS256 via JWKS)
  • Protocol: MCP 2025-06-18, Streamable HTTP
  • Auth: RS256 JWT validation via regional auth servers (paxaver.{ca,com,mx}/auth)
  • Build/Deploy: Wrangler v4
  • Testing: Vitest v2 (Workers pool + Node pool)
  • License: Apache-2.0. Copyright (c) 2026 Smartoire.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools