MCP

MCP Overview

What the Panoptes MCP server is, and how an AI agent uses it.

Panoptes serves a Model Context Protocol server so an AI agent — Claude, ChatGPT, Cursor or your own — can answer questions about a restaurant from real numbers and, when you allow it, take actions.

URLhttps://api.panoptesos.com/api/v1/mcp (staging: https://staging-api.panoptesos.com/api/v1/mcp)
TransportStreamable HTTP, stateless JSON-RPC
AuthX-Api-Key header, or an OAuth bearer from the Panoptes OAuth issuer
Admissioncap:view_reports (or the legacy read:reports)

In the dashboard, Settings → Developers → MCP / AI shows the URL for your install, ready-to-paste client configs and the tool list.

How an agent works with it

  1. get_business_context first. It names the branch the credential is bound to, the currency every amount is in, today's business date and the grounding rules.
  2. Facts answer the common questions — sales against last week, recent orders, the menu, who is at work, who owes whom, unanswered messages, prime cost, COGS, loss, shrinkage, reorder, payroll — with numbers computed by the server; the agent never does the arithmetic. get_business_context also lists the plan's features, so the agent knows up front what the branch has.
  3. Tables let it look further: list, read, count and aggregate the readable tables.
  4. Actions let it change data: list_actions finds what the credential may call, call_action performs it through the REST pipeline.

Guarantees

  • Same permissions as the REST API. Effective access is the owner's role AND the credential's scopes. Each fact tool keeps its own capability; payroll, the books, the audit log and the inbox reach an API key only when its scopes name them, and an OAuth connector only when the person who approved it ticked those areas.
  • Reads cannot write. Fact and table tools run in a READ ONLY transaction; call_action is the only write path.
  • Writes are the real thing. call_action runs in-process through the console pipeline: validation, separation of duties, period locks, idempotency and the audit chain all apply.
  • The model is told to ask. The server instructs the agent to confirm any money or stock movement with the user, and to pass an idempotencyKey on every write.

Next: Connect a client · Tool reference · Actions